From 4f69d5c6e0ec24cd821c614977b328e8436a5456 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Fri, 18 Jul 2014 20:12:51 +0100 Subject: [ds] add 'certutil -L' collection for slapd instances Signed-off-by: Bryn M. Reeves --- sos/plugins/ds.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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(): -- cgit