diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2017-03-12 22:41:46 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-23 17:29:31 +0000 |
commit | a3df9c45f5cabf894c43286fca3ef46ca9d4a308 (patch) | |
tree | 858f11c0bb3db47e90c397060a8edd97c9efc102 | |
parent | 55d5b8b3cebb2fbb1e7980649b90c91dbd7f4e55 (diff) | |
download | sos-a3df9c45f5cabf894c43286fca3ef46ca9d4a308.tar.gz |
[sssd] collect config check and domains
Collect "sssctl config-check", "sssctl domain-list" and
"sssctl domain-status -o <domain>" for every domain from the list.
Resolves: #958
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/sssd.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/sssd.py b/sos/plugins/sssd.py index 915b5a56..006299e8 100644 --- a/sos/plugins/sssd.py +++ b/sos/plugins/sssd.py @@ -34,6 +34,13 @@ class Sssd(Plugin): "/etc/sssd/conf.d/*.conf" ]) + self.add_cmd_output("sssctl config-check") + + domain_file = self.get_cmd_output_now("sssctl domain-list") + if domain_file: + for domain_name in open(domain_file).read().splitlines(): + self.add_cmd_output("sssctl domain-status -o "+domain_name) + def postproc(self): regexp = r"(\s*ldap_default_authtok\s*=\s*)\S+" |