Update INSTALL.md

This commit is contained in:
Marisa 2025-11-18 11:41:55 -05:00
parent a4c7a901b9
commit f7e520ef16

View File

@ -64,6 +64,27 @@ Notice the userPassword is invalid, let's set a proper one
```
root@example:/# ldappasswd -x -D cn=admin,dc=example,dc=com -w admin -s qwerty uid=marisa,ou=people,dc=example,dc=com
```
## _3- Load and enable policies module_
Write the .ldif file and load the ppolicy.so module that comes with Debian libraries
```
root@example:/# cat > modify_ppolicy_module.ldif << 'EOF'
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: ppolicy.so
EOF`
```
```
ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f modify_ppolicy_module.ldif
```
Restart slapd to load the module (copy and paste the following as a single line)
```
root@example:/etc/ldap/certs# slapd -h "ldap:/// ldapi:/// ldaps:///" -u openldap -g openldap &
sleep 3
```
<!--
Generate a password hash for our administrator user, Op3nLd4p! here being the password to comply with password policies
```