aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-04 22:41:12 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-04 22:41:12 +0000
commit60f4bf5812b3da356b1fd69437690aab18c88003 (patch)
tree42787eeb43c776f471c604b6e8be216941b7c189
parent188caa12099bdea1d211fa113527e948ad96a124 (diff)
downloadsos-60f4bf5812b3da356b1fd69437690aab18c88003.tar.gz
Obscure passwords in files collected from ipa module
-rw-r--r--sos/plugins/ipa.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/plugins/ipa.py b/sos/plugins/ipa.py
index c095ed05..cc4b1b5c 100644
--- a/sos/plugins/ipa.py
+++ b/sos/plugins/ipa.py
@@ -75,3 +75,9 @@ class ipa(Plugin, RedHatPlugin):
self.collectExtOutput("klist -ket /etc/krb5.keytab")
return
+
+ def postproc(self):
+ match = r"(\s*arg \"password )[^\"]*"
+ subst = r"\1********"
+ self.doRegexSub("/etc/named.conf", match, subst)
+