Update INSTALL.md

This commit is contained in:
Marisa 2025-11-18 11:46:20 -05:00
parent f7e520ef16
commit eba28bef8d

View File

@ -81,9 +81,23 @@ 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) 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 & root@example:/# slapd -h "ldap:/// ldapi:/// ldaps:///" -u openldap -g openldap &
sleep 3 sleep 3
``` ```
Write the .ldif file to setup ppolicy.so on the openLDAP server
```
root@example:/# cat > enable_ppolicy.ldif << 'EOF'
dn: olcOverlay=ppolicy,olcDatabase={1}mdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: ppolicy
olcPPolicyDefault: cn=default,ou=policies,dc=example,dc=com
EOF
```
```
ldapadd -Q -Y EXTERNAL -H ldapi:/// -f enable_ppolicy.ldif
```
<!-- <!--
Generate a password hash for our administrator user, Op3nLd4p! here being the password to comply with password policies Generate a password hash for our administrator user, Op3nLd4p! here being the password to comply with password policies