On Wednesday 29 March 2006 10:36, you wrote:
> Looks like requests return too many results, yes. This should not
> happen at login time.

Well, for some reason, it was happening.

I did a small search on python-ldap, and tried to fix LDAPBackingDirectory.py 
myself, but failed. Bellow is, commented out, the code I tried. When I was 
giving up, I tried one last thing: empty ldap_entries[] on SIZELIMIT_EXCEEDED 
exception. It seems to be working, but I believe we should have a better 
handling of this limitation. 
Everything seems to be working fine now: I can login, search users in Members 
directory, although not in Addressbook (public). BTW, how to merge this?

this is from LDAPBackingDirectory.py, in searchLDAP function, around line 805.

-------------------------------------
        try:
            ldap_entries = conn.search_s(base, scope, toUTF8(filter), attrs)
        except ldap.NO_SUCH_OBJECT:
            raise ConfigurationError("Directory '%s': Invalid search base "
                                     "'%s'" % (self.getId(), base))
        except ldap.SERVER_DOWN:
            raise ConfigurationError("Directory '%s': LDAP server is down"
                                     % self.getId())
        except ldap.SIZELIMIT_EXCEEDED:
            ldap_entries = []
        LOG('searchLDAP', TRACE, " -> results=%s" % (ldap_entries[:20],))
------------------------------------
   Thanks for all help up to now!


-- 
Mario O.de Menezes, Ph.D.     "Many are the plans in a man's heart, but
LinuxUser: #24626         is the Lord's purpose that prevails" Pv 19.21
                        http://www.ipen.br/~mario      
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to