mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSexample: add sysaccounts pwdPolicy
This commit is contained in:
parent
009cb34122
commit
44ab0ecab5
2 changed files with 31 additions and 1 deletions
|
@ -26,6 +26,7 @@ objectClass: top
|
||||||
objectClass: lssysaccount
|
objectClass: lssysaccount
|
||||||
uid: mail
|
uid: mail
|
||||||
userPassword: toto
|
userPassword: toto
|
||||||
|
pwdPolicySubentry: cn=sysaccounts,ou=ppolicies,o=ls
|
||||||
structuralObjectClass: lssysaccount
|
structuralObjectClass: lssysaccount
|
||||||
|
|
||||||
dn: uid=samba,ou=sysaccounts,o=ls
|
dn: uid=samba,ou=sysaccounts,o=ls
|
||||||
|
@ -33,6 +34,7 @@ objectClass: top
|
||||||
objectClass: lssysaccount
|
objectClass: lssysaccount
|
||||||
uid: samba
|
uid: samba
|
||||||
userPassword: toto
|
userPassword: toto
|
||||||
|
pwdPolicySubentry: cn=sysaccounts,ou=ppolicies,o=ls
|
||||||
structuralObjectClass: lssysaccount
|
structuralObjectClass: lssysaccount
|
||||||
|
|
||||||
dn: uid=ldapsaisie,ou=sysaccounts,o=ls
|
dn: uid=ldapsaisie,ou=sysaccounts,o=ls
|
||||||
|
@ -40,6 +42,7 @@ objectClass: top
|
||||||
objectClass: lssysaccount
|
objectClass: lssysaccount
|
||||||
uid: ldapsaisie
|
uid: ldapsaisie
|
||||||
userPassword: toto
|
userPassword: toto
|
||||||
|
pwdPolicySubentry: cn=sysaccounts,ou=ppolicies,o=ls
|
||||||
structuralObjectClass: lssysaccount
|
structuralObjectClass: lssysaccount
|
||||||
|
|
||||||
dn: ou=groups,o=ls
|
dn: ou=groups,o=ls
|
||||||
|
@ -672,7 +675,7 @@ objectclass: pwdPolicyChecker
|
||||||
pwdAttribute: userPassword
|
pwdAttribute: userPassword
|
||||||
pwdMinAge: 0
|
pwdMinAge: 0
|
||||||
pwdMaxAge: 0
|
pwdMaxAge: 0
|
||||||
pwdInHistory: 0
|
pwdInHistory: 3
|
||||||
pwdCheckQuality: 1
|
pwdCheckQuality: 1
|
||||||
pwdMinLength: 8
|
pwdMinLength: 8
|
||||||
pwdExpireWarning: 0
|
pwdExpireWarning: 0
|
||||||
|
@ -685,3 +688,26 @@ pwdFailureCountInterval: 0
|
||||||
pwdMustChange: FALSE
|
pwdMustChange: FALSE
|
||||||
pwdAllowUserChange: FALSE
|
pwdAllowUserChange: FALSE
|
||||||
pwdSafeModify: FALSE
|
pwdSafeModify: FALSE
|
||||||
|
|
||||||
|
dn: cn=sysaccounts,ou=ppolicies,o=ls
|
||||||
|
cn: sysaccounts
|
||||||
|
objectclass: top
|
||||||
|
objectclass: device
|
||||||
|
objectclass: pwdPolicy
|
||||||
|
objectclass: pwdPolicyChecker
|
||||||
|
pwdAttribute: userPassword
|
||||||
|
pwdMinAge: 0
|
||||||
|
pwdMaxAge: 0
|
||||||
|
pwdInHistory: 0
|
||||||
|
pwdCheckQuality: 1
|
||||||
|
pwdMinLength: 10
|
||||||
|
pwdExpireWarning: 0
|
||||||
|
pwdGraceAuthnLimit: 0
|
||||||
|
pwdLockout: FALSE
|
||||||
|
pwdLockoutDuration: 0
|
||||||
|
pwdMaxFailure: 0
|
||||||
|
pwdMaxRecordedFailure: 0
|
||||||
|
pwdFailureCountInterval: 0
|
||||||
|
pwdMustChange: FALSE
|
||||||
|
pwdAllowUserChange: FALSE
|
||||||
|
pwdSafeModify: FALSE
|
||||||
|
|
|
@ -187,3 +187,7 @@ $GLOBALS['LSobjects']['LSsysaccount'] = array (
|
||||||
|
|
||||||
)), // Fin attrs & array_merge()
|
)), // Fin attrs & array_merge()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$GLOBALS['LSobjects']['LSsysaccount']['attrs']['pwdPolicySubentry']['default_value'] = 'cn=sysaccounts,ou=ppolicies,o=ls';
|
||||||
|
unset($GLOBALS['LSobjects']['LSsysaccount']['attrs']['pwdPolicySubentry']['form']['create']);
|
||||||
|
$GLOBALS['LSobjects']['LSsysaccount']['attrs']['pwdPolicySubentry']['required'] = 1;
|
||||||
|
|
Loading…
Reference in a new issue