[Mailman-Users] Help me on LDAPMEMBERADAPTOR-V3.0 very Urgent

Kabilan L nlkabilan at ee.iitm.ac.in
Mon Feb 13 08:25:28 CET 2006


Hai!!!
The following is the error when in i put extend.py in
/var/lib/mailman/lists/listname/.

This is what in extend.py

from Mailman.LDAPMemberships import LDAPMemberships

def extend(list):
    ldap = LDAPMemberships(list)
    ldap.ldapsearch = "(uid=recipient)"   # your LDAP search here
    ldap.ldapserver = "127.0.0.1"  # your LDAP server
    ldap.ldapbasedn = "dc=domain dc=com" # your base DN
    ldap.ldapbinddn = 'cn=Manager,dc=domain,dc=com'   # bind DN that can
access 'mail' field
    ldap.ldappasswd = 'xxxx'                 # bind password for ldapbinddn
    ldap.LDAP_URL = "ldap://ldap.domain.com:389/"
    ldap.LDAP_MAIL_ATTRS = ("mail",)
    ldap.LDAP_LOCALDOMAIN = "domain.com"
    ldap.LDAP_REALNAME_ATTR = "cn"
    ldap.LDAP_MAILMEMBER_ATTRS = ("rfc822MailMember",)
    ldap.LDAP_MEMBER_ATTRS = ("uniqueMember","memberUID")
    ldap.LDAP_OWNER_ATTR = "owner"
    ldap.LDAP_LIST_RDN_ATTR = "cn"
    ldap.LDAP_LIST_CLASSFILTER =
"(|(objectclass=groupOfUniqueNames)(objectclass=nisMailAlias)(objectclass=groupOfNames))"
    ldap.LDAP_BASE = "cn=staff,ou=Group,dc=domain,dc=com"
    list._memberadaptor = ldap


admin(5563): [----- Mailman Version: 2.1.5 -----]
admin(5563): [----- Traceback ------]
admin(5563): Traceback (most recent call last):
admin(5563):   File "/usr/lib/mailman/scripts/driver", line 101, in run_main
admin(5563):     main()
admin(5563):   File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 198, in main
admin(5563):     show_results(mlist, doc, category, subcat, cgidata)
admin(5563):   File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 498, in
show_results
admin(5563):     form.AddItem(membership_options(mlist, subcat, cgidata, doc,
form))
admin(5563):   File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 870, in
membership_options
admin(5563):     all = [_m.encode() for _m in mlist.getMembers()]
admin(5563):   File "/usr/lib/mailman/Mailman/LDAPMemberships.py", line 263,
in getMembers
admin(5563):     return self.__ldap_get_members()
admin(5563):   File "/usr/lib/mailman/Mailman/LDAPMemberships.py", line 246,
in __ldap_get_members
admin(5563):     self.__ldap_load_members_by_group()
admin(5563):   File "/usr/lib/mailman/Mailman/LDAPMemberships.py", line 226,
in __ldap_load_members_by_group
admin(5563):     entry = l.search_st(self.__mlist.LDAP_BASE,
ldap.SCOPE_ONELEVEL ,filterstr=filter)[0]
admin(5563): IndexError: list index out of range
admin(5563): [----- Python Information -----]

So  what is the solution for this problem.

Thanking You All!!!

kabilan.L





More information about the Mailman-Users mailing list