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