0

We have a cluster that uses an internal LDAP domain for user authentication that previously used passwords stored in LDAP. We have now moved the login machine to use krb5 for password authentication against an external kdc. We would like to remove the local LDAP passwords if we can. Is there an equivalent in ldap to the traditional unix auth command usermod -p '!' user?

jamie
  • 1
  • 1

1 Answers1

0

For OpenLDAP – remove the userPassword attribute from each user account.

There are no standard commands, you'll need ldapsearch | some awk/sed/grep | ldapmodify, or script the batch update using Perl/Python

Alternatively: You can have the LDAP server validate plain passwords against Kerberos by setting each user's userPassword attribute to {SASL}user@REALM and running the saslauthd -a krb5 daemon to perform password validation. (Of course, this is not as good as actual Kerberos authentication.)

user1686
  • 10,162
  • 1
  • 26
  • 42