From 8377f4e92f6c927d6303a4be9d22e71a90af9ab0 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 10 Apr 2013 12:05:29 -0400 Subject: 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 --- ipaserver/install/dsinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/install/dsinstance.py') 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") -- cgit