0
I have a need to remove a DIT from an OpenLDAP v2.4 installation.
Creating a DIT is documented at http://www.openldap.org/doc/admin24/dbtools.html, however removing/deleting the DIT is undocumented.
The core problem I am trying to solve is to work around Ubuntu v14.04 behaviour where the system guesses an OpenLDAP configuration based on the hostname. I have a need to remove this configuration and create the correct one.
This process is automated as part of the orchestration of a system, so interactive mechanisms won't do.
I found advice from 2004 suggesting that the /var/lib/ldap tree be deleted using rm -rf, is this still the recommended solution to this problem?
Alternatively, is there a non-interactive mechanism available to configure the OpenLDAP DIT in an Ubuntu v14.04 system?