aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-11-29 18:36:38 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-11-29 18:36:38 +0000
commit2d4fae82a2173fa8997b08a32bcfad914738b6ca (patch)
tree417d1070380540bb11a8ec86bd46319750f668cc
parent88fb85e4b5985631f8116459b5ea85e3e049bb44 (diff)
downloadsos-2d4fae82a2173fa8997b08a32bcfad914738b6ca.tar.gz
Collect nslcd.conf in ldap module
-rw-r--r--sos/plugins/ldap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/plugins/ldap.py b/sos/plugins/ldap.py
index 3a08ef34..ddd74505 100644
--- a/sos/plugins/ldap.py
+++ b/sos/plugins/ldap.py
@@ -20,7 +20,7 @@ class ldap(Plugin, RedHatPlugin):
"""
files = ('/etc/openldap/ldap.conf',)
- packages = ('openldap',)
+ packages = ('openldap', 'nss-pam-ldapd')
def get_ldap_opts(self):
# capture /etc/openldap/ldap.conf options in dict
@@ -41,7 +41,8 @@ class ldap(Plugin, RedHatPlugin):
self.addDiagnose("%s does not exist and can cause connection issues involving TLS" % ldapopts["TLS_CACERTDIR"])
def setup(self):
- self.addCopySpecs(["/etc/ldap.conf", "/etc/openldap"])
+ self.addCopySpecs(["/etc/ldap.conf", "/etc/openldap", "/etc/nslcd.conf"])
def postproc(self):
self.doRegexSub("/etc/ldap.conf", r"(\s*bindpw\s*)\S+", r"\1***")
+ self.doRegexSub("/etc/nslcd.conf", r"(\s*bindpw\s*)\S+", r"\1***")