﻿ticket,summary,type,release,owner,status,created,modified,_description,_reporter
12844,Pull email address from LDAP server (patch attached),enhancement,,c0redumb,new,2016-08-14T07:34:08+02:00,2016-08-14T07:34:08+02:00,"I have attached a patch which allows the plugin to pull emali address from LDAP server on login.

The feature is useful since users do not have to edit their email address on Trac if their addresses are already on the LDAP server.",tkob-trac
13487,"KeyError: 'uid' - When browsing ""Users"" section in Account Manager",defect,1.2,c0redumb,new,2018-09-27T16:54:25+02:00,2018-10-23T09:14:33+02:00,"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?",totalcaos@…
