Update INSTALL.md

This commit is contained in:
Marisa 2025-10-12 13:59:00 -04:00
parent ab177b04cd
commit 29f8b94b15

View File

@ -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. 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 dn: ou=Supergirls,dc=example,dc=com
objectClass: organizationalUnit objectClass: organizationalUnit
ou: Supergirls ou: Supergirls
EOF
adding new entry "ou=Supergirls,dc=example,dc=com"
^C
``` ```
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 root@example:/# slappasswd -s qwerty
{SSHA}fgEXXr2J08jTVfgyOnkRL2I1JNL4Bp5V {SSHA}fgEXXr2J08jTVfgyOnkRL2I1JNL4Bp5V