Commit 6cb58759 authored by Clément OUDOT's avatar Clément OUDOT

Add LDAP password ppolicies in slapd test server (#1639)

parent 46f2beb1
Pipeline #4332 passed with stages
in 10 minutes and 18 seconds
......@@ -11,6 +11,7 @@ include: file://__SCHEMA_DIR__/core.ldif
include: file://__SCHEMA_DIR__/cosine.ldif
include: file://__SCHEMA_DIR__/nis.ldif
include: file://__SCHEMA_DIR__/inetorgperson.ldif
include: file://__SCHEMA_DIR__/ppolicy.ldif
dn: olcDatabase=frontend,cn=config
objectClass: olcDatabaseConfig
......@@ -26,14 +27,27 @@ objectClass: olcModuleList
cn: module
olcModulePath: /usr/lib/ldap
olcModuleLoad: back_mdb
olcModuleLoad: back_monitor
olcModuleLoad: ppolicy
dn: olcDatabase=mdb,cn=config
dn: olcDatabase={1}mdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: mdb
olcDatabase: {1}mdb
olcSuffix: dc=example,dc=com
olcDbDirectory: t/testslapd/data
olcRootDN: cn=admin,dc=example,dc=com
olcRootPW: admin
olcAccess: to * by * write
dn: olcOverlay={0}ppolicy,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {0}ppolicy
olcPPolicyHashCleartext: TRUE
olcPPolicyUseLockout: TRUE
olcPPolicyForwardUpdates: FALSE
dn: olcDatabase={2}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {2}monitor
......@@ -34,3 +34,67 @@ sn:: 0KDRg9GB0YHQutC40Lk=
mail: russian@badwolf.org
userPassword: russian
dn: uid=reset,ou=users,dc=example,dc=com
objectClass: inetOrgPerson
uid: reset
cn: reset
sn: reset
mail: reset@badwolf.org
userPassword: reset
pwdPolicySubentry: cn=passwordreset,ou=ppolicies,dc=example,dc=com
pwdReset: TRUE
dn: uid=expire,ou=users,dc=example,dc=com
objectClass: inetOrgPerson
uid: expire
cn: expire
sn: expire
mail: expire@badwolf.org
userPassword: expire
pwdPolicySubentry: cn=passwordexpire,ou=ppolicies,dc=example,dc=com
pwdChangedTime: 20190101000000Z
dn: uid=lock,ou=users,dc=example,dc=com
objectClass: inetOrgPerson
uid: lock
cn: lock
sn: lock
mail: lock@badwolf.org
userPassword: lock
pwdPolicySubentry: cn=passwordlock,ou=ppolicies,dc=example,dc=com
pwdAccountLockedTime: 20190101000000Z
pwdFailureTime: 20181231000000.000000Z
dn: ou=ppolicies,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
ou: ppolicies
dn: cn=passwordreset,ou=ppolicies,dc=example,dc=com
objectClass: device
objectClass: pwdPolicy
cn: passwordreset
pwdAttribute: userPassword
pwdAllowUserChange: TRUE
pwdCheckQuality: 0
pwdMustChange: TRUE
dn: cn=passwordexpire,ou=ppolicies,dc=example,dc=com
objectClass: device
objectClass: pwdPolicy
cn: passwordexpire
pwdAttribute: userPassword
pwdAllowUserChange: TRUE
pwdCheckQuality: 0
pwdMaxAge: 5
dn: cn=passwordlock,ou=ppolicies,dc=example,dc=com
objectClass: device
objectClass: pwdPolicy
cn: passwordlock
pwdAttribute: userPassword
pwdAllowUserChange: TRUE
pwdCheckQuality: 0
pwdLockout: TRUE
pwdMaxFailure: 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment