mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
DELETEs have to come first, in order for "case change" operations to work.
This commit is contained in:
@@ -429,10 +429,10 @@ class IPAdmin(SimpleLDAPObject):
|
||||
adds = list(new_values.difference(old_values))
|
||||
removes = list(old_values.difference(new_values))
|
||||
|
||||
if len(adds) > 0:
|
||||
modlist.append((ldap.MOD_ADD, key, adds))
|
||||
if len(removes) > 0:
|
||||
modlist.append((ldap.MOD_DELETE, key, removes))
|
||||
if len(adds) > 0:
|
||||
modlist.append((ldap.MOD_ADD, key, adds))
|
||||
|
||||
return modlist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user