Skip to content

Commit

Permalink
NAS-132562 / 24.10.1 / Update LDAP config collection for sssd (by mgr…
Browse files Browse the repository at this point in the history
…imesix) (#246)

* LDAP config data: Remove nslcd and replace with sssd
Exclude password fields.

(cherry picked from commit ffac0aa)

* Fix flake8 complaint: line too long.

(cherry picked from commit ca3fe23)

---------

Co-authored-by: Mark Grimes <[email protected]>
  • Loading branch information
bugclerk and mgrimesix authored Nov 16, 2024
1 parent deb1e1f commit 5a694be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ixdiagnose/plugins/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ class LDAP(Plugin):
FileMetric('krb5', '/etc/krb5.conf', extension='.conf'),
FileMetric('ldap', '/etc/openldap/ldap.conf', extension='.conf'),
CommandMetric(
'nslcd', [
Command(['grep', '-iv', 'bindpw', '/etc/nslcd.conf'], 'Config file', serializable=False),
'sssd', [
Command(
['grep', '-iv', 'ldap_default_authtok', '/etc/sssd/sssd.conf'],
'Config file', serializable=False
),
]
),
MiddlewareClientMetric(
Expand Down

0 comments on commit 5a694be

Please sign in to comment.