summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipaserver
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-02-26 10:48:45 -0500
committerRob Crittenden <rcritten@redhat.com>2008-02-26 10:48:45 -0500
commitd5f5026454db98727d217fc109c7410bb80c3c4a (patch)
treea4de8aa2bffdaf08bde989fc4cdedecd26c03955 /ipa-server/ipaserver
parentf49ed705b3040cb1b098341ccb1cdac34d21d8db (diff)
downloadfreeipa-d5f5026454db98727d217fc109c7410bb80c3c4a.tar.gz
freeipa-d5f5026454db98727d217fc109c7410bb80c3c4a.tar.xz
freeipa-d5f5026454db98727d217fc109c7410bb80c3c4a.zip
Don't log passwords in ipaserver-install.log
433509
Diffstat (limited to 'ipa-server/ipaserver')
-rw-r--r--ipa-server/ipaserver/dsinstance.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipa-server/ipaserver/dsinstance.py b/ipa-server/ipaserver/dsinstance.py
index 312ee2984..99ebae506 100644
--- a/ipa-server/ipaserver/dsinstance.py
+++ b/ipa-server/ipaserver/dsinstance.py
@@ -24,6 +24,7 @@ import pwd
import glob
import sys
import os
+import re
from ipa import ipautil
@@ -177,9 +178,10 @@ class DsInstance(service.Service):
self.backup_state("running", self.is_running())
self.backup_state("serverid", self.serverid)
inf_txt = ipautil.template_str(INF_TEMPLATE, self.sub_dict)
- logging.debug(inf_txt)
- inf_fd = ipautil.write_tmp_file(inf_txt)
logging.debug("writing inf template")
+ inf_fd = ipautil.write_tmp_file(inf_txt)
+ inf_txt = re.sub(r"RootDNPwd=.*\n", "", inf_txt)
+ logging.debug(inf_txt)
if ipautil.file_exists("/usr/sbin/setup-ds.pl"):
args = ["/usr/sbin/setup-ds.pl", "--silent", "--logfile", "-", "-f", inf_fd.name]
logging.debug("calling setup-ds.pl")