summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/dsinstance.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2013-04-10 12:05:29 -0400
committerRob Crittenden <rcritten@redhat.com>2013-04-12 10:16:01 -0400
commit8377f4e92f6c927d6303a4be9d22e71a90af9ab0 (patch)
treed56283379ae0081f99ced7289f4c250592b5ddc0 /ipaserver/install/dsinstance.py
parentc8694cb19f2b0bd20a0b3fc9df7aacec3b23a928 (diff)
downloadfreeipa.git-8377f4e92f6c927d6303a4be9d22e71a90af9ab0.tar.gz
freeipa.git-8377f4e92f6c927d6303a4be9d22e71a90af9ab0.tar.xz
freeipa.git-8377f4e92f6c927d6303a4be9d22e71a90af9ab0.zip
Apply LDAP update files in blocks of 10, as originally designed.
In order to have control over the order that updates are applied a numbering system was created for the update files. These values were not actually used. The updates were sorted by DN length and in most cases this was adequate for proper function. The exception was with roles where in some cases a role was added as a member of a permission before the role itself was added so the memberOf value was never created. Now updates are computed and applied in blocks of 10. https://fedorahosted.org/freeipa/ticket/3377
Diffstat (limited to 'ipaserver/install/dsinstance.py')
-rw-r--r--ipaserver/install/dsinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 93a226ca..be629b19 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -472,7 +472,7 @@ class DsInstance(service.Service):
def apply_updates(self):
ld = ldapupdate.LDAPUpdate(dm_password=self.dm_password, sub_dict=self.sub_dict, plugins=True)
files = ld.get_all_files(ldapupdate.UPDATES_DIR)
- ld.update(files)
+ ld.update(files, ordered=True)
def __add_referint_module(self):
self._ldap_mod("referint-conf.ldif")