The issue: Password Policy is not being enforced when I change the password using the 'passwd' command. It is enforced when I use the 'ldappaswd' command. But the OpenLDAP password still changes using the 'passwd' command
The setup: I've setup an OpenLDAP server in Ubuntu and enforced a basic password policy using 'ppolicy' I have another Ubuntu machine which is a client system and connected to the OpenLDAP server. The policies mentioned in the ppolicy is being enforced when I use the 'ldappasswd' command to change the password but it is not happening when I use 'passwd'
Eg: When using ldappasswd, I cannot set a password less than 10 characters(as set in ppolicy), but using 'passwd' I'm able to change with less than 10 characters And the password changed is the LDAP password only. So 'passwd' still connects to 'LDAP'
What am I missing? These are the tutorials I used to set ppolicy and enforce LDAP Authentication
https://help.ubuntu.com/community/LDAPClientAuthentication http://www.openldap.org/doc/admin24/overlays.html#Password%20Policies http://tutoriels.meddeb.net/openldap-password-policy-managing-users-accounts/