slapd.conf recovery
Migrated from: https://tracker.clearos.com/view.php?id=17701
Reported by: Dave Loper
A facility should be added to /usr/sbin/ldap-init to allow for a rebuild of the slapd.conf file ONLY.
- This would look to see if /var/clearos/openldap/config.php exists.
- If this exists then it would look to see if the bind_pw_hash and bind_pw parameters exist.
- If they do, then it would rebuild the file with the proper password.
This facility could be used in situations where the slapd.conf file gets stomped by a bad package.