From eba28bef8d3d206f46fa83b38f9b32830fad953a Mon Sep 17 00:00:00 2001 From: Marisa Date: Tue, 18 Nov 2025 11:46:20 -0500 Subject: [PATCH] Update INSTALL.md --- INSTALL.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index d6b318f..47fb523 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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) ``` -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 ``` +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 +```