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:
parent
94fd0fd067
commit
77145e2f38
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user