Enable referential integrity plugin.

This commit is contained in:
Karl MacMillan 0001-01-01 00:00:00 +00:00
parent 010fb65bfd
commit 8f4362f2f2
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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()