fix DN in resetPassword
This commit is contained in:
parent
7baffec406
commit
964865a731
|
@ -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']
|
||||||
|
|
Loading…
Reference in New Issue