diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2015-07-31 16:22:13 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-10-15 14:24:33 +0200 |
commit | 834b5fd513d799bb9fe2cbc29417ff8ec7357033 (patch) | |
tree | 2a5fe874fc90fe0c5d12177024f8d0043fbb027d /ipaserver/install/ldapupdate.py | |
parent | fff31ca220311421f1ac8cef0888aaa892e97584 (diff) | |
download | freeipa-834b5fd513d799bb9fe2cbc29417ff8ec7357033.tar.gz freeipa-834b5fd513d799bb9fe2cbc29417ff8ec7357033.tar.xz freeipa-834b5fd513d799bb9fe2cbc29417ff8ec7357033.zip |
enable topology plugin on upgrade
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/install/ldapupdate.py')
-rw-r--r-- | ipaserver/install/ldapupdate.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 5fac58eca..fd02bdc02 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -303,6 +303,15 @@ class LDAPUpdate: self.sub_dict["MIN_DOMAIN_LEVEL"] = str(constants.MIN_DOMAIN_LEVEL) if not self.sub_dict.get("MAX_DOMAIN_LEVEL"): self.sub_dict["MAX_DOMAIN_LEVEL"] = str(constants.MAX_DOMAIN_LEVEL) + if not self.sub_dict.get("STRIP_ATTRS"): + self.sub_dict["STRIP_ATTRS"] = "%s" % ( + " ".join(constants.REPL_AGMT_STRIP_ATTRS),) + if not self.sub_dict.get("EXCLUDES"): + self.sub_dict["EXCLUDES"] = "(objectclass=*) $ EXCLUDE %s" % ( + " ".join(constants.REPL_AGMT_EXCLUDES),) + if not self.sub_dict.get("TOTAL_EXCLUDES"): + self.sub_dict["TOTAL_EXCLUDES"] = "(objectclass=*) $ EXCLUDE " + \ + " ".join(constants.REPL_AGMT_TOTAL_EXCLUDES) self.api = create_api(mode=None) self.api.bootstrap(in_server=True, context='updates') self.api.finalize() |