fix DN in resetPassword

This commit is contained in:
Tim Gröger 2020-06-28 13:20:02 +02:00
parent 7baffec406
commit 964865a731
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Base:
else: else:
debug.error("username or mail not set") debug.error("username or mail not set")
raise Exception('username or mail not set') raise Exception('username or mail not set')
adminConn.search(ldapConfig['USER_DN'], '(&(objectClass=person)({}))'.format(search), adminConn.search(ldapConfig['DN'], '(&(objectClass=person)({}))'.format(search),
attributes=['cn', 'sn', 'givenName', 'uid', 'mail']) attributes=['cn', 'sn', 'givenName', 'uid', 'mail'])
for user in adminConn.response: for user in adminConn.response:
user_dn = user['dn'] user_dn = user['dn']