diff options
author | Karl MacMillan <kmacmillan@redhat.com> | 2007-11-05 14:05:49 -0500 |
---|---|---|
committer | Karl MacMillan <kmacmillan@redhat.com> | 2007-11-05 14:05:49 -0500 |
commit | 8f4362f2f2ace9ed017dc5307c54290eb103842e (patch) | |
tree | cb9dff64ac4a5c512105c4f1116836ad360d9dd9 /ipa-server | |
parent | 010fb65bfd766acf7b728abfba67bc55993b5ddc (diff) | |
download | freeipa-8f4362f2f2ace9ed017dc5307c54290eb103842e.tar.gz freeipa-8f4362f2f2ace9ed017dc5307c54290eb103842e.tar.xz freeipa-8f4362f2f2ace9ed017dc5307c54290eb103842e.zip |
Enable referential integrity plugin.
Diffstat (limited to 'ipa-server')
-rw-r--r-- | ipa-server/ipa-install/share/referint-conf.ldif | 7 | ||||
-rw-r--r-- | ipa-server/ipaserver/dsinstance.py | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ipa-server/ipa-install/share/referint-conf.ldif b/ipa-server/ipa-install/share/referint-conf.ldif new file mode 100644 index 00000000..7a547ba5 --- /dev/null +++ b/ipa-server/ipa-install/share/referint-conf.ldif @@ -0,0 +1,7 @@ +dn: cn=referential integrity postoperation,cn=plugins,cn=config +changetype: modify +replace: nsslapd-pluginenabled +nsslapd-pluginenabled: on +nsslapd-pluginArg7: manager +nsslapd-pluginArg8: secretary + diff --git a/ipa-server/ipaserver/dsinstance.py b/ipa-server/ipaserver/dsinstance.py index 2b4d8f35..df71fe3f 100644 --- a/ipa-server/ipaserver/dsinstance.py +++ b/ipa-server/ipaserver/dsinstance.py @@ -79,6 +79,7 @@ class DsInstance: self.__create_instance() self.__add_default_schemas() self.__add_memberof_module() + self.__add_referint_module() self.__create_indeces() self.__enable_ssl() self.__certmap_conf() @@ -168,6 +169,15 @@ class DsInstance: print "Failed to load memberof-conf.ldif", e memberof_fd.close() + def __add_referint_module(self): + referint_txt = template_file(SHARE_DIR + "referint-conf.ldif", self.sub_dict) + referint_fd = write_tmp_file(referint_txt) + try: + ldap_mod(referint_fd, "cn=Directory Manager", self.dm_password) + except subprocess.CalledProcessError, e: + print "Failed to load referint-conf.ldif", e + referint_fd.close() + def __enable_ssl(self): logging.debug("configuring ssl for ds instance") dirname = self.config_dirname() |