[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Configuring ppolicy problem

Le 29/08/2012 17:39, cbulist a écrit :

I got stuck with this problem. I'm able to change the user password
using shadowAccount objectClass but I can't do the same using pwdPolicy
It doesn't means anything: you don't change attributes using a object class. Morevoer, you seem to be confusing two different concepts:

The shadowAccount object class is just a placeholder for unix-specific attributes, that will get used client side by some specific ldap clients, such as pam_ldap for instance. It is supposed to be used for user entries, already instances of posixAccount object class.

The pwdPolicy object class is a placeholder for ldap-specifics attributes, that will get honored on server side. It is supposed to be the main class of a password policy entry, to be applied on user entries.

I set ppolicy attribute in order to get the password
expired message:

pwdExpireWarning 10
pwdMaxAge 15
pwdMustChange TRUE
pwdAllowUserChange TRUE
pwdLockout TRUE
On which object ?


include    /etc/openldap/schema/ppolicy.schema

moduleload    ppolicy.la

access to attrs=userPassword
  by self write
  by users read
  by anonymous auth
This is a quite dangereous setting, and defeat the whole purpose of shadow passwords: all users can read other users password hashes.

BOFH excuse #68:

only available on a need to know basis