title: OpenLDAP cannot import database configuration
body: <p>I followed the quick-start guide of OpenLDAP in order to install it on Debian Jessie.</p>
  
  <p><a href="http://www.openldap.org/doc/admin24/quickstart.html" rel="nofollow noreferrer">Quick startupGuide</a></p>
  
  <p>Everything went well, except that I am stuck at step 9. 
  The command exposed doesn't work because the directory /usr/local/etc/cn=config doesn't exist. It is strange that they don't explain it needs to be created. Anyway, even when I create it, it sill doesn't work. I have another message : 
  "<strong>Available database(s) do not allow slapadd"</strong>. </p>
  
  <p>When I try a simpler command then in the quick startup guide, it fails as well : <em>slapadd -l /usr/local/etc/openldap/slapd.ldif</em> returns <em>slapadd: line 1: database #1 (dc=my-domain,dc=com) not configured to hold "cn=config"; did you mean to use database #0 (cn=config)?</em></p>
  
  <p>I modified the slapd.ldif to set my domain as : example.com, just like in the guide. </p>
  
  <p>Something that could be important : when I typed in ./configure, something went wrong. Some BerkeleyDB libs were missing. So I installed the package libdb5.3-dev, then it worked.</p>
  
  <p>It's been 3 hours I am struggling with that; I am really lost !</p>
  
  <p>Thanks in advance for your answers !</p>