diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-07-18 20:12:51 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-07-18 20:12:51 +0100 |
commit | 4f69d5c6e0ec24cd821c614977b328e8436a5456 (patch) | |
tree | 975a4195ca4f1dbfa941e9c014721ccde754184a | |
parent | 4768d4f2bde74d4fbb8c62c5d75c38e6bfe9ec86 (diff) | |
download | sos-4f69d5c6e0ec24cd821c614977b328e8436a5456.tar.gz |
[ds] add 'certutil -L' collection for slapd instances
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/ds.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sos/plugins/ds.py b/sos/plugins/ds.py index 178998f5..a79320ef 100644 --- a/sos/plugins/ds.py +++ b/sos/plugins/ds.py @@ -44,6 +44,15 @@ class DirectoryServer(Plugin, RedHatPlugin): self.add_forbidden_path("/etc/dirsrv/admin-serv/key3.db") self.add_forbidden_path("/etc/dirsrv/admin-serv/admpw") self.add_forbidden_path("/etc/dirsrv/admin-serv/password.conf") + try: + for d in os.listdir("/etc/dirsrv"): + if d[0:5] == 'slapd': + certpath = os.path.join("/etc/dirsrv", d) + self.add_cmd_output("certutil -L -d %s" % certpath) + except: + self.log_warn("could not list /etc/dirsrv") + + if not self.check_version(): self.add_alert("Directory Server not found.") elif "ds8" in self.check_version(): |