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 +``` +