diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index b6fcb4e21..89613bc31 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -497,7 +497,9 @@ class DsInstance(service.Service): "-y", dmpwdfile, "-T", admpwdfile, "uid=admin,cn=users,cn=accounts,"+self.suffix] try: - ipautil.run(args, env = { 'LDAPTLS_CACERT':CACERT }) + env = { 'LDAPTLS_CACERTDIR':os.path.dirname(CACERT), + 'LDAPTLS_CACERT':CACERT } + ipautil.run(args, env=env) logging.debug("ldappasswd done") except ipautil.CalledProcessError, e: print "Unable to set admin password", e