Update README.md
This commit is contained in:
parent
12c66f5536
commit
39325d3f03
@ -651,12 +651,17 @@ changetype: modify
|
|||||||
replace: pwdPolicySubentry
|
replace: pwdPolicySubentry
|
||||||
pwdPolicySubentry: cn=default,ou=policies,dc=example,dc=com
|
pwdPolicySubentry: cn=default,ou=policies,dc=example,dc=com
|
||||||
```
|
```
|
||||||
Execute the .ldif **replacing** the pwdPolicySubentry
|
Execute the .ldif **replacing** the pwdPolicySubentry for the user reimu
|
||||||
```
|
```
|
||||||
root@example:/etc/ldap/slapd.d# ldapmodify -x -H ldap:/// -D "cn=admin,dc=example,dc=com" -w 1234 -f apply_policy_reimu.ldif
|
root@example:/etc/ldap/slapd.d# ldapmodify -x -H ldap:/// -D "cn=admin,dc=example,dc=com" -w 1234 -f apply_policy_reimu.ldif
|
||||||
modifying entry "uid=reimu,ou=Supergirls,dc=example,dc=com"
|
modifying entry "uid=reimu,ou=Supergirls,dc=example,dc=com"
|
||||||
```
|
```
|
||||||
|
Now let's try changing the password to one too easy, _newreimupass_ being the user's password and _weak_ the newpassword:
|
||||||
|
```
|
||||||
|
root@example:/# # ldappasswd -x -H ldap:/// -D "uid=reimu,ou=Supergirls,dc=example,dc=com" -w newreimupass -s weak "uid=reimu,ou=Supergirls,dc=example,dc=com"
|
||||||
|
Result: Constraint violation (19)
|
||||||
|
```
|
||||||
|
We get an "Constraint violation" error, meaning the new password did not comply with the minimum requirements, and since we setup the pwdPolicyQuality to 2, it got rejected.
|
||||||
|
|
||||||
## _Show Organizational Units, users, and attributes_
|
## _Show Organizational Units, users, and attributes_
|
||||||
### <ins>_Show LDAP server directories with the data_</ins>
|
### <ins>_Show LDAP server directories with the data_</ins>
|
||||||
|
Loading…
Reference in New Issue
Block a user