Skip to content

Commit

Permalink
NAS-132562 / 25.04 / Update LDAP config collection for sssd (#245)
Browse files Browse the repository at this point in the history
* LDAP config data: Remove nslcd and replace with sssd
Exclude password fields.

* Fix flake8 complaint: line too long.
  • Loading branch information
mgrimesix authored Nov 15, 2024
1 parent 06479c8 commit 08114c0
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 08114c0

Please sign in to comment.