Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- service cron stop
- service slapd stop
- DEBIAN_FRONTEND=noninteractive aptitude install -y slapd ldap-utils db4.7-util
- service slapd stop
- #
- rm -rf /etc/ldap/slapd.d/*
- #
- rm -rf /var/lib/ldap/*
- #
- slapadd -F /etc/ldap/slapd.d/ -n0 -l config_ldap.ldif
- cp DB_CONFIG /var/lib/ldap/
- #
- slapadd -n1 -l tree_principal.ldif
- #
- chown -R openldap.openldap /var/lib/ldap/ ; chown -R openldap.openldap /etc/ldap/slapd.d/ ; chmod -R 750 /etc/ldap/slapd.d/
- #
- service slapd start
- service cron start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement