mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 02:34:31 +01:00
fix error if password is not in modified attributes
This commit is contained in:
parent
fb0f601ad4
commit
ae5c857c74
@ -542,6 +542,7 @@ class LdapCherry(object):
|
|||||||
if self.attributes.attributes[attr]['type'] == 'password':
|
if self.attributes.attributes[attr]['type'] == 'password':
|
||||||
pwd1 = attr + '1'
|
pwd1 = attr + '1'
|
||||||
pwd2 = attr + '2'
|
pwd2 = attr + '2'
|
||||||
|
if pwd1 in params['attrs']:
|
||||||
if params['attrs'][pwd1] != params['attrs'][pwd2]:
|
if params['attrs'][pwd1] != params['attrs'][pwd2]:
|
||||||
raise Exception()
|
raise Exception()
|
||||||
params['attrs'][attr] = params['attrs'][pwd1]
|
params['attrs'][attr] = params['attrs'][pwd1]
|
||||||
|
Loading…
Reference in New Issue
Block a user