From f7e520ef16443cf4f62fef0805d1336203c87ef0 Mon Sep 17 00:00:00 2001 From: Marisa Date: Tue, 18 Nov 2025 11:41:55 -0500 Subject: [PATCH] Update INSTALL.md --- INSTALL.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index e823e37..d6b318f 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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 +``` +