1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-05 00:27:25 +00:00

Fix server error on non-change:

"ldap3.core.exceptions.LDAPChangeError: no changes in modify request"
This commit is contained in:
downtownallday 2020-06-15 12:24:03 -04:00
parent 94fd0fd067
commit 77145e2f38

View File

@ -203,10 +203,11 @@ class LdapConnection(ldap3.Connection):
existing_record,
values[attr])
if modify_op: changes[attr] = modify_op
if len(changes)>0:
self.wait ( self.modify(dn, changes) )
return 'modify'
else:
# add new alias
# add new entry
self.wait ( self.add(dn, objectClasses, values) )
return 'add'