Please help me with mailman with LDAP


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­min,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
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

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.
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
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives:

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

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 8 | next ›
Discussion Overview
groupmailman-users @
postedOct 10, '08 at 6:14p
activeOct 14, '08 at 4:27p



site design / logo © 2022 Grokbase