summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-10-08 13:35:41 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-10-08 13:35:41 -0700
commit3f271a875fa3453de6d2de69ec9360a5ef55f93d (patch)
tree770251e89450da9f8464508eb977511a37ed32ec
parent9987e0e8079a02dc623510fcb07a6795d2d183f9 (diff)
downloadfreeipa-3f271a875fa3453de6d2de69ec9360a5ef55f93d.tar.gz
freeipa-3f271a875fa3453de6d2de69ec9360a5ef55f93d.tar.xz
freeipa-3f271a875fa3453de6d2de69ec9360a5ef55f93d.zip
DELETEs have to come first, in order for "case change" operations to work.
-rw-r--r--ipa-server/ipaserver/ipaldap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-server/ipaserver/ipaldap.py b/ipa-server/ipaserver/ipaldap.py
index af983d724..69f040eb5 100644
--- a/ipa-server/ipaserver/ipaldap.py
+++ b/ipa-server/ipaserver/ipaldap.py
@@ -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