diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-02-26 10:48:45 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-02-26 10:48:45 -0500 |
commit | d5f5026454db98727d217fc109c7410bb80c3c4a (patch) | |
tree | a4de8aa2bffdaf08bde989fc4cdedecd26c03955 /ipa-server/ipaserver | |
parent | f49ed705b3040cb1b098341ccb1cdac34d21d8db (diff) | |
download | freeipa-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.py | 6 |
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") |