diff options
-rw-r--r-- | sos/plugins/sssd.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sos/plugins/sssd.py b/sos/plugins/sssd.py index b28f4b44..0d201f4e 100644 --- a/sos/plugins/sssd.py +++ b/sos/plugins/sssd.py @@ -24,7 +24,15 @@ class Sssd(Plugin): packages = ('sssd',) def setup(self): - self.add_copy_specs(["/etc/sssd", "/var/log/sssd/*"]) + self.add_copy_specs([ + "/etc/sssd/sssd.conf", + "/var/log/sssd/*" + ]) + + def postproc(self): + self.do_file_sub("/etc/sssd/sssd.conf", + r"(\s*ldap_default_authtok\s*=\s*)\S+", + r"\1********") class RedHatSssd(Sssd, RedHatPlugin): """sssd-related Diagnostic Information on Red Hat based distributions |