Opened 6 years ago
Last modified 4 months ago
#13487 closed defect
KeyError: 'uid' - When browsing "Users" section in Account Manager — at Initial Version
Reported by: | Owned by: | c0redumb | |
---|---|---|---|
Priority: | high | Component: | LDAPAcctMngrPlugin |
Severity: | major | Keywords: | needinfo |
Cc: | totalcaos | Trac Release: | 1.2 |
Description
When browsing to the users section in account manager i see this error:
Trac detected an internal error: KeyError: 'uid'
Tracelog:
File "build/bdist.linux-x86_64/egg/security/ldapstore.py", line 59, in get_users Code fragment:
try: 51 con = self.init_connection() 52 resp = con.search_s(base, ldap.SCOPE_SUBTREE, filter, ['dn','uid']) 53 finally: 54 if con != None: 55 con.unbind() 56 57 self.log.debug('List users: get %d users' % (len(resp))) 58 for entry in resp: 59 if entry[1]['uid'][0]: 60 yield entry[1]['uid'][0]
The issue is that the user_matchfilter = sAMAccountName=%s not the default 'uid' which i believe is hard referenced in your code (line 52)
Is there a way to make this more generic?
Note: See
TracTickets for help on using
tickets.