Setting base_dn as the top-most level,with referrals off, generates a KeyError: 'sAMAccountName'
|Reported by:||mgavin@…||Owned by:||pacopablo|
Even though the top-most level of the tree encompasses all containers, trying to view the user list shows a Trac error of KeyError : sAMAccountName.
This of course happens when all the users are found with the search filter (objectCategory=person) and some values returned aren't dictionaries.
At first, making a more specific base_dn worked. (eg. cn=Users,dc=my,dc=example,dc=com) But that didn't get every user.
So the line I configured was inside auth.py line 50
- userinfo = [self._get_userinfo(u) for u in users]