I tried with and with the '-e ppolicy' option but that did not make a difference in terms of behavior. ÂIt did make a difference for the output message.
For: Â ldappasswd -x -w oldpassword -a oldpassword -s test -D "uid=aUser, ou=MyUsers, dc=xyz, dc=com" -e ppolicy
The output is:Â
Result: Constraint violation (19)
Additional info: Password fails quality checking policy
control: 1.3.6.1.4.1.42.2.27.8.5.1 false MAOBAQY=
ppolicy: error=6 (Password is too short for policy)Â
For: Â ldappasswd -x -w oldpassword -a oldpassword -s test -D "uid=aUser, ou=MyUsers, dc=xyz, dc=com"
The ouput is shorter:
Result: Constraint violation (19)
Additional info: Password fails quality checking policyÂ
They both checked the password policy ('test' was too short).
I am still confused about what this 'extension' does. Is that just about giving more details in the error output?
This is in openLDAP 2.4.39 and documented in the man ldapsearch page. ÂThe option is used in the ppolicy test code (test022-ppolicy).
Thanks,
Thierry