Update INSTALL.md
This commit is contained in:
parent
ab177b04cd
commit
29f8b94b15
15
INSTALL.md
15
INSTALL.md
@ -104,17 +104,20 @@ You can change password policies like pwdMinLength, pwdMaxFailure, pwdMaxAge, et
|
||||
\
|
||||
\
|
||||
In order to enforce our password configuration we need something to control.
|
||||
Copy the command, and copy-paste the content, press enter to exec, go back to shell with CTRL+C.
|
||||
Create the an organizationalUnit:
|
||||
```
|
||||
root@example:/# ldapadd -x -D "cn=admin,dc=example,dc=com" -w admin -H ldapi:///
|
||||
root@example:/# cat > create_ou.ldif << EOF
|
||||
dn: ou=Supergirls,dc=example,dc=com
|
||||
objectClass: organizationalUnit
|
||||
ou: Supergirls
|
||||
|
||||
adding new entry "ou=Supergirls,dc=example,dc=com"
|
||||
^C
|
||||
EOF
|
||||
```
|
||||
Create a password hash for the user marisa
|
||||
```
|
||||
root@example:/etc/ldap/slapd.d# ldapadd -x -D "cn=admin,dc=example,dc=com" -w Op3nLd4p! -H ldapi:/// -f create_ou.ldif
|
||||
adding new entry "ou=Supergirls,dc=example,dc=com"
|
||||
```
|
||||
|
||||
Create a password hash for the new user marisa
|
||||
```
|
||||
root@example:/# slappasswd -s qwerty
|
||||
{SSHA}fgEXXr2J08jTVfgyOnkRL2I1JNL4Bp5V
|
||||
|
Loading…
Reference in New Issue
Block a user