dataflake.org

Home Documentation Software Old Stuff Bug Reporting

getUserNames() error with too many users (Resolved)

Request LDAP User Folder -- bug report -- by P.-J. Grizel
Posted on Jul 4, 2005 9:07 am
Subscribe

Enter your email address to receive mail on every change to this issue.

Entries (Latest first)


  Resolve by Jens Vagelpohl on Jul 5, 2005 4:20 pm
  Hi Pierre-Julien,

Fixed in the just released 2.6beta1:

http://www.dataflake.org/software/ldapuserfolder/ldapuserfolder_2.6beta1

jens
 

  Initial Request by P.-J. Grizel on Jul 4, 2005 9:07 am
  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().