diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-12-04 22:41:12 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-12-04 22:41:12 +0000 |
commit | 60f4bf5812b3da356b1fd69437690aab18c88003 (patch) | |
tree | 42787eeb43c776f471c604b6e8be216941b7c189 | |
parent | 188caa12099bdea1d211fa113527e948ad96a124 (diff) | |
download | sos-60f4bf5812b3da356b1fd69437690aab18c88003.tar.gz |
Obscure passwords in files collected from ipa module
-rw-r--r-- | sos/plugins/ipa.py | 6 |
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) + |