Update certmap.conf on IPA upgrades

This brings /etc/dirsrv/slapd-REALM/certmap.conf under IPA control.
The file is overwritten on upgrades.

This ensures that the cert for the ipaca user is recognized when
ipa-ca-install is run on older masters.
This commit is contained in:
Petr Viktorin
2012-11-23 12:19:19 +01:00
committed by Martin Kosek
parent d157413675
commit 5fa3455764
3 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ class DsInstance(service.Service):
shutil.copyfile(ipautil.SHARE_DIR + "certmap.conf.template",
config_dirname(self.serverid) + "certmap.conf")
installutils.update_file(config_dirname(self.serverid) + "certmap.conf",
'domain_name', self.realm_name)
'$REALM', self.realm_name)
def __enable_ldapi(self):
self._ldap_mod("ldapi.ldif", self.sub_dict)