[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Password policy questions
- To: openldap-technical@openldap.org
- Subject: Password policy questions
- From: Ervin Hegedüs <airween@gmail.com>
- Date: Thu, 20 Sep 2018 17:49:11 +0200
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=HpXEMgJAJlLZtUdNUVr0DwqR/gfGV1BuKdzEkoKifVA=; b=HGpQVIc4hyNsKe6u97S54jMil99TuREpSLMJDODktvzEfeaLam1OlT1jAmAih6ab42 A6NZfM/Pfmk5TI+FO2T4G41dO3+gjgficzWayOLDj8+m+AreLFOWd/qq2hCB3txNxe4S vxs2NzLuPbimoXVwuM9/10j/TJ5PpOw1yHEPl1iiqMRM0dCVyTkQwzmq9O4x2yuj51F2 Ue5wPUG0v6Ziz8924HC9wzGoX+xPDPkOLS9GdsvthnLTtoXe9FmrjZgKvM+sOb33OGoY K50GSLwl77936kFrmLqpFypf/rCp53RpY/ZHNrTqNrFaVZ6hM4YNp03rmoVdS1lxExBi SxXg==
- User-agent: Mutt/1.5.24 (2015-08-30)
Hi,
looks like I've successfully configured the ppolicy overlay, but
I have some questions.
The relevant config:
olcModuleLoad: {0}ppolicy
structuralObjectClass: olcModuleList
dn: olcOverlay={2}ppolicy,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {2}ppolicy
olcPPolicyDefault: cn=default,ou=pwpolicies,dc=hu
olcPPolicyHashCleartext: FALSE
olcPPolicyUseLockout: FALSE
dn: cn=default,ou=pwpolicies,dc=hu
cn: default
objectClass: pwdPolicy
objectClass: pwdPolicyChecker
objectClass: device
pwdAllowUserChange: TRUE
pwdInHistory: 5
pwdMinLength: 10
pwdAttribute: userPassword
pwdCheckQuality: 0
When I change my passwd with ldappasswd, the history check works:
ldappasswd -H ldaps://dev-ldap-01:636 -W -D uid=airween,ou=Users,ou=company,dc=comp,DC=hu -S
New password:
Re-enter new password:
Enter LDAP Password:
Result: Constraint violation (19)
Additional info: Password is in history of old passwords
but I can set up new password with less than 10 characters, eg
"abc". What em I missed?
I've never read it, but looks like the policy has effect only
when I'm changing passwd with 'ldappasswd', but when I'm using
ldapmodify, then I can bypass the rules
ldapmodify -H ldaps://dev-ldap-01:636 -D 'uid=airween,ou=Users,ou=company,dc=comp,dc=hu' -x -W -f file.ldif
modifying entry
"uid=airween,ou=Users,ou=company,dc=comp,DC=hu"
[DONE WITH PREV PASSWD]
Is it right?
How can I validate the policy for all methods?
Thanks,
a.