summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ipa_ldap_updater.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-06-13 10:15:23 +0200
committerMartin Kosek <mkosek@redhat.com>2014-06-27 14:54:35 +0200
commitc1f3fd6831c47a2672f37e12db149be1b1122d75 (patch)
tree98e92dcfae590e6c608fb2691a4505f79841560e /ipaserver/install/ipa_ldap_updater.py
parent5568e357d103bafaf9e2f7f1ba1fd507c89e0538 (diff)
downloadfreeipa-c1f3fd6831c47a2672f37e12db149be1b1122d75.tar.gz
freeipa-c1f3fd6831c47a2672f37e12db149be1b1122d75.tar.xz
freeipa-c1f3fd6831c47a2672f37e12db149be1b1122d75.zip
Added upgrade step executed before schmema is upgraded
Class PreSchemaUpdate is executed before ldap schema update This is required by ticket: https://fedorahosted.org/freeipa/ticket/3210 Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipaserver/install/ipa_ldap_updater.py')
-rw-r--r--ipaserver/install/ipa_ldap_updater.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/ipaserver/install/ipa_ldap_updater.py b/ipaserver/install/ipa_ldap_updater.py
index e8ef2b576..fbbef142a 100644
--- a/ipaserver/install/ipa_ldap_updater.py
+++ b/ipaserver/install/ipa_ldap_updater.py
@@ -191,12 +191,6 @@ class LDAPUpdater_NonUpgrade(LDAPUpdater):
modified = False
- if options.update_schema:
- modified = schemaupdate.update_schema(
- options.schema_files,
- dm_password=self.dirman_password,
- live_run=not options.test) or modified
-
ld = LDAPUpdate(
dm_password=self.dirman_password,
sub_dict={},
@@ -204,6 +198,14 @@ class LDAPUpdater_NonUpgrade(LDAPUpdater):
ldapi=options.ldapi,
plugins=options.plugins or self.run_plugins)
+ modified = ld.pre_schema_update(ordered=True)
+
+ if options.update_schema:
+ modified = schemaupdate.update_schema(
+ options.schema_files,
+ dm_password=self.dirman_password,
+ live_run=not options.test) or modified
+
if not self.files:
self.files = ld.get_all_files(UPDATES_DIR)