See the following code snippet in getUserNames() :
loginlist = self.getAttributesOfAllObjects(
self.users_base, ldap_scopes[self.users_scope],
user_filter, (self._login_attr,))[self._login_attr]
if the getAttributesOfAllObjects() call return an empty dictionnary (which is the case if no user is found), this code raises instead of returning an empty list.
The problem exists (at least) in getUserNames(), getUserIds() and getUserIdsAndNames() methods.
|