[Mailman-Users] LDAP

Guilherme Funchal guilherme.funchal at gmail.com
Sun Oct 12 00:59:58 CEST 2008


Please help me with mailman with LDAP

http://sourceforge.net/tracker/index.php?func=detail&aid=871062&group_id=103&atid=300

===========================================================

My extend.py is :

from Mailman.LDAPMemberships import LDAPMemberships

def extend(list):
    ldap = LDAPMemberships(list)
    ldap.ldapsearch = "(uid=lista-teste)"   # your LDAP search here
    ldap.ldapserver = "localhost"  # your LDAP server
    ldap.ldapbasedn = "dc=simers,dc=org,dc=br" # your base DN
    ldap.LDAP_MAIL_ATTRS = ("mail","mailalternateaddress","cn")
    ldap.ldapbinddn = 'cn=admin,dc=simers,dc=org,dc=br'                 #
bind DN that can access 'mail' field
    ldap.LDAP_LIST_RDN_ATTR = "cn"
    ldap.ldappasswd = 'unitec_07'                 # bind password for
ldapbinddn
    ldap.ldaprefresh = 360              # OPTIONAL refresh time in seconds
    list._memberadaptor = ldap

===================================================
Ldap entry :

dn: uid=lista-teste,dc=simers,dc=org,dc=br
uid: lista-teste
givenName: MailList
sn: lista-teste
homeDirectory: /home/false
loginShell: /bin/false
objectClass: posixAccount
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: qmailUser
objectClass: phpgwAccount
objectClass: top
objectClass: person
objectClass: organizationalPerson
phpgwAccountExpires: -1
phpgwAccountType: l
uidNumber: 1790
gidNumber: 0
deliveryMode: forwardOnly
accountStatus: active
mailForwardingAddress: alexandre at simers.org.br
mailForwardingAddress: carlos at simers.org.br
mailForwardingAddress: informatica at simers.org.br
mailForwardingAddress: fabio at simers.org.br
mailForwardingAddress: helpdesk at simers.org.br
mailForwardingAddress: joaofrederico at simers.org.br
mailForwardingAddress: marcio.zamperetti at simers.org.br
mailForwardingAddress: rafael at simers.org.br
mail: lista-teste at simers.org.br
cn: lista-teste

But i use list_members command the mailman returns one
lista-teste at simers.org.br

Who can help me ?



2008/10/10 Mark Sapiro <mark at msapiro.net>

> Anne Anderson wrote:
>
> >Can LDAP be used to authenticate logins for mailman?
>
>
> Yes, but depending on what you actually want, there may be significant
> implimentation effort involved. This is not an out-of-box or turn-key
> installation.
>
> The LDAP MemberAdaptor linked below has several limitations. Quoting
> from the link below:
>
> Mailman lists with LDAP-based membership can still have moderators,
> list policies, and the other usual features of Mailman lists. There
> are a few missing features; notably:
>
> 1. There is no bounce processing.
> 2. There are no per-user preferences.
> 3. The Web interface still allows you to try setting user preferences,
> but if you do you will get a stack thrown at you. (Only the "readable"
> interface of MemberAdaptor is implemented.)
> 4. The LDAP settings of a list (e.g. LDAP server and search string) are
> only administrable by editing its "extend.py" file, not over the Web.
> 5. There is no digest mode.
>
> >> See
> >> <
> http://sourceforge.net/tracker/index.php?func=detail&aid=871062&group_id=103&atid=300103
> >.
> >>
>
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
>
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe:
> http://mail.python.org/mailman/options/mailman-users/guilherme.funchal%40gmail.com
>
> Security Policy: http://wiki.list.org/x/QIA9
>



-- 
"Há homens que lutam um dia e são bons;
há outros que lutam um ano e são melhores.
Há outros que lutam muitos anos e são muito bons.
Mas há os que lutam toda a vida, e estes são imprescindíveis."

==============================
Guilherme Funchal da Silva .`.
LPI Level 2 Certification


More information about the Mailman-Users mailing list