Hai!! This is my extend.py file. 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=ee,dc=iitm,dc=ac,dc=in" # your base DN ldap.ldapbinddn = 'cn=Admin,dc=ee,dc=iitm,dc=ac,dc=in' # bind DN that can access 'mail' field ldap.ldappasswd = 'xxx' # bind password for ldapbinddn ldap.LDAP_URL = "ldap://ldap.ee.iitm.ac.in:389/" ldap.LDAP_MAIL_ATTRS = ("mail",) ldap.LDAP_LOCALDOMAIN = "ee.iitm.ac.in" 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=posixGroup)(objectclass=top))" ldap.LDAP_BASE = "ou=Group,dc=ee,dc=iitm,dc=ac,dc=in" list._memberadaptor = ldap This an ldap record from my server. dn: uid=test6,ou=People,dc=ee,dc=iitm,dc=ac,dc=in uid: test6 cn: testuser6 sn: testuser6 mail: [EMAIL PROTECTED] objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: top loginShell: /bin/zsh uidNumber: 10006 gidNumber: 9002 homeDirectory: /home/staff/test6 gecos: testuser6 As Mark,said i know i don't have an entry/attr owner in my record i hashed that line and tried it still didn't work. Help Me please. Thank You ALL Kabilan.L Department of Electrical Engineering IIT Madras Chennai - 600 036 Tamil Nadu, INDIA "The secret to winning football games is working more as a team, less as individuals. I play not my 11 best, but my best 11." ->Knute Rockne ---------- Original Message ----------- From: Patrick Bogen <[EMAIL PROTECTED]> To: Kabilan L <[EMAIL PROTECTED]> Cc: mailman-users@python.org Sent: Mon, 13 Feb 2006 11:48:43 -0600 Subject: Re: [Mailman-Users] Help me on LDAPMEMBERADAPTOR-V3.0 very Urgent > Can you please send your configuration values to the list? Make sure > to censor any passwords that may be present. > (It looks like something is wrong with the 'LDAP_OWNER_ATTR' value) > > P.s., make sure to 'reply to all' so that the list gets your posts > as well. > > On 2/13/06, Kabilan L <[EMAIL PROTECTED]> wrote: > > Hai!!! > > Thank u Patrick.I changed the config to correct values still i have this problem > > > > admin(9022): File "/usr/lib/mailman/scripts/driver", line 101, in run_main > > admin(9022): main() > > admin(9022): File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 198, in > > main > > admin(9022): show_results(mlist, doc, category, subcat, cgidata) > > admin(9022): File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 498, in > > show_results > > admin(9022): form.AddItem(membership_options(mlist, subcat, cgidata, > > doc, > > form)) > > admin(9022): File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 870, in > > membership_options > > admin(9022): all = [_m.encode() for _m in mlist.getMembers()] > > admin(9022): File "/usr/lib/mailman/Mailman/LDAPMemberships.py", line 263, > > in getMembers > > admin(9022): return self.__ldap_get_members() > > admin(9022): File "/usr/lib/mailman/Mailman/LDAPMemberships.py", line 246, > > in __ldap_get_members > > admin(9022): self.__ldap_load_members_by_group() > > admin(9022): File "/usr/lib/mailman/Mailman/LDAPMemberships.py", line 231, > > in __ldap_load_members_by_group > > admin(9022): ownerdn = attrs[self.__mlist.LDAP_OWNER_ATTR][0] > > admin(9022): KeyError: 'owner' > > > > Any suggestion!! Thank You!! > > > > > > > > Kabilan.L > > Department of Electrical Engineering > > IIT Madras > > Chennai - 600 036 > > Tamil Nadu, INDIA > > > > > > "The secret to winning football games is working more as a team, less as > > individuals. I play not my 11 best, but my best 11." ->Knute Rockne > > > > > > ---------- Original Message ----------- > > From: Patrick Bogen <[EMAIL PROTECTED]> > > To: Kabilan L <[EMAIL PROTECTED]> > > Cc: mailman-users@python.org > > Sent: Mon, 13 Feb 2006 11:19:09 -0600 > > Subject: Re: [Mailman-Users] Help me on LDAPMEMBERADAPTOR-V3.0 very Urgent > > > > > The problem is that you need to replace the generic entries with the > > > correct values. I don't know what they are for you; you need to speak > > > with whomever set up the LDAP server in your organization, or at > > > least someone who knows about it. > > > > > > On 2/13/06, Kabilan L <[EMAIL PROTECTED]> wrote: > > > > Hai!! > > > > So u say my extend.py is problem,then please do give me the correct way > > > > of > > > > doing it.how to change things.so it works for me. > > > > > > > > Thanking You > > > > > > > > Kabilan.L > > > > Department of Electrical Engineering > > > > IIT Madras > > > > Chennai - 600 036 > > > > Tamil Nadu, INDIA > > > > > > > > > > > > "The secret to winning football games is working more as a team, less as > > > > individuals. I play not my 11 best, but my best 11." ->Knute Rockne > > > > > > > > > > > > ---------- Original Message ----------- > > > > From: Patrick Bogen <[EMAIL PROTECTED]> > > > > To: Kabilan L <[EMAIL PROTECTED]> > > > > Cc: mailman-users@python.org > > > > Sent: Mon, 13 Feb 2006 09:50:57 -0600 > > > > Subject: Re: [Mailman-Users] Help me on LDAPMEMBERADAPTOR-V3.0 very > > > > Urgent > > > > > > > > > On 2/13/06, Kabilan L <[EMAIL PROTECTED]> wrote: > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > If all of the above is *exactly* what is in your config file, then > > > > > this is part of your problem. > > > > > Specifically, ldapserver, ldapbasedn, ldapbinddn, ldappasswd, > > > > > LDAP_URP, and LOCALDOMAIN all contain 'generic' example settings > > > > > which almost certainly are incorrect. > > > > > > > > > > -- > > > > > - Patrick Bogen > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > -- > > > - Patrick Bogen > > ------- End of Original Message ------- > > > > > > -- > - Patrick Bogen ------- End of Original Message ------- ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp