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

Kabilan L nlkabilan at ee.iitm.ac.in
Mon Feb 13 18:19:26 CET 2006


HAI!!
Thanks Mark. I too found that the follwoing didn't work gave nothing in my case.
"(|(objectclass=groupOfUniqueNames)(objectclass=nisMailAlias)(objectclass=groupOfNames))"
So i changed it in extend.py
 "(|(objectclass=posixGroup)(objectclass=top))"

Now i could see the in openldap.log mailman is talking with ldap and has some
details like cn=staff,Group ... etc.But I face a new problem
that is 

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'

what is the solution?I have it like the below one.
I want to know what values can i give to the following.Is it correct to have
default onces.

ldap.LDAP_MEMBER_ATTRS = ("uniqueMember","memberUID")
ldap.LDAP_OWNER_ATTR = "owner"
Help me Please
Thanking 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: Mark Sapiro <msapiro at value.net>
To: "Kabilan L" <nlkabilan at ee.iitm.ac.in>, mailman-users at python.org
Sent: Mon, 13 Feb 2006 07:20:47 -0800
Subject: Re: [Mailman-Users] Help me on LDAPMEMBERADAPTOR-V3.0 very Urgent

> Kabilan L
> 
> >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
> 
> The search
> 
>   l.search_st(self.__mlist.LDAP_BASE,ldap.SCOPE_ONELEVEL
> ,filterstr=filter)
> 
> returned no items. Either it is correct that the LDAP has no entries
> that satisfy this search and the code doesn't anticipate this, or 
> your search parameters defined in extend.py are wrong.
> 
> See LDAPMemberships.py for the definition of 'filter' a few lines
> before the above search.
> 
> BTW, I can't speak for the others on this list, but I don't know LDAP
> and can't help with that. I only know Mailman and Python.
> 
> -- 
> Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
------- End of Original Message -------




More information about the Mailman-Users mailing list