I installed and configured 389 directory server (aka redhat directory server), created user/group and configured follow the instruction at http://directory.fedoraproject.org/wiki/Howto:PAM on my Redhat 5.x Linux server
I tried to reset user password, and then login with ssh, but no matter if the password is reset or not, there's no prompt for changing the expired password.
I tried using command "login testUser", it will prompt me for new password. I checked /etc/pam.d/sshd, found out it missed one entry:
auth include system-auth
and system-auth will include ldap related settings:
auth sufficient pam_ldap.so use_first_pass
then the password change prompt pop out after login with ssh:
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user testUser.
Enter login(LDAP) password:
So now I can force user to change their password after password reset or when password expired.
I tried to reset user password, and then login with ssh, but no matter if the password is reset or not, there's no prompt for changing the expired password.
I tried using command "login testUser", it will prompt me for new password. I checked /etc/pam.d/sshd, found out it missed one entry:
auth include system-auth
and system-auth will include ldap related settings:
auth sufficient pam_ldap.so use_first_pass
then the password change prompt pop out after login with ssh:
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user testUser.
Enter login(LDAP) password:
So now I can force user to change their password after password reset or when password expired.
Comments
Post a Comment