The getUserNames() method raises KeyError, "uid" when there are too many users.
The pb is in the getUserNames() method :
loginlist = self.getAttributesOfAllObjects(
self.users_base, ldap_scopes[self.users_scope],
user_filter, (self._login_attr,))[self._login_attr]
If the getAttributesOfAllObjects() method returns a dict WITHOUT the login attribute (and this is the case when there are too many users), this method raises.
I think it should silently return an empty list instead.
The pb stands in other methods relying on getAttributesOfAllObjects().
|