diff options
author | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-02-16 14:52:30 +0000 |
---|---|---|
committer | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-02-16 14:52:30 +0000 |
commit | fdbc9c022642726d3eb1ecc4d791854f4737e247 (patch) | |
tree | 0a67aa1370c73a5ee3679a16cf5129c5b93b8dad /src/lib | |
parent | 85d9f6054fac84e2f7f9511acb06e4b1d738b55c (diff) | |
download | sos-fdbc9c022642726d3eb1ecc4d791854f4737e247.tar.gz |
Strip out the shared secret (bindpw) from /etc/ldap.conf
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@74 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sos/plugins/ldap.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/sos/plugins/ldap.py b/src/lib/sos/plugins/ldap.py index c2efd52a..84ac2a20 100644 --- a/src/lib/sos/plugins/ldap.py +++ b/src/lib/sos/plugins/ldap.py @@ -22,3 +22,6 @@ class ldap(sos.plugintools.PluginBase): self.addCopySpec("/etc/openldap") return + def postproc(self): + self.doRegexSub("/etc/ldap.conf", r"(\s*bindpw\s*)\S+", r"\1***") + return |