1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-20 18:52:59 +02:00

fix error if password is not in modified attributes

This commit is contained in:
kakwa 2015-06-28 23:33:37 +02:00
parent fb0f601ad4
commit ae5c857c74

View File

@ -542,6 +542,7 @@ class LdapCherry(object):
if self.attributes.attributes[attr]['type'] == 'password':
pwd1 = attr + '1'
pwd2 = attr + '2'
if pwd1 in params['attrs']:
if params['attrs'][pwd1] != params['attrs'][pwd2]:
raise Exception()
params['attrs'][attr] = params['attrs'][pwd1]