diff --git a/management/backend.py b/management/backend.py index bce126d0..363fe491 100644 --- a/management/backend.py +++ b/management/backend.py @@ -203,10 +203,11 @@ class LdapConnection(ldap3.Connection): existing_record, values[attr]) if modify_op: changes[attr] = modify_op - self.wait ( self.modify(dn, changes) ) + 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'