diff options
Diffstat (limited to 'ldap/Makefile')
-rw-r--r-- | ldap/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ldap/Makefile b/ldap/Makefile index 5efa7e7..d023d1c 100644 --- a/ldap/Makefile +++ b/ldap/Makefile @@ -32,9 +32,14 @@ install-mx: install: # WARN! +# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif +# ldapadd -Y EXTERNAL -H ldapi:/// -f modules.ldif +# ldapadd -Y EXTERNAL -H ldapi:/// -f database.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f fripost.ldif + ldapadd -Y EXTERNAL -H ldapi:/// -f authz.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f index.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f constraint.ldif + ldapadd -Y EXTERNAL -H ldapi:/// -f ppolicy.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f acl.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f base.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f populate.ldif @@ -49,7 +54,6 @@ install-schema: install-acl: @sed "s/^dn: olcDatabase={.*}hdb,cn=config$$/dn: $(NUM)/" acl.ldif | ldapmodify -Q -Y EXTERNAL -H ldapi:/// - uninstall: @echo "The database - suffix \"$(SUFFIX)\" - will be saved into \`$(BACKUPDB)' (if non-empty), and then *cleared* (but not deleted)." @echo "Also, its ACLs, indexes and constraints will be cleared as well, if there are any." @@ -87,6 +91,10 @@ uninstall: echo "Deleting constraints" && find "$(TMPSLAPD)/$(NUM2)/" -type f -name "olcOverlay={*}constraint.ldif" -delete \ ;fi # + @if test -d "$(TMPSLAPD)/$(NUM2)"; then \ + echo "Deleting ppolicy" && find "$(TMPSLAPD)/$(NUM2)/" -type f -name "olcOverlay={*}ppolicy.ldif" -delete \ + ;fi +# @/etc/init.d/slapd stop # @echo "Replacing the old \`slapd.d'" |