title: <suffix> invalid DN 21 (Invalid syntax) openldap
body: <p>Actually based on <a href="http://www.openldap.org/doc/admin24/slapdconf2.html" rel="nofollow">http://www.openldap.org/doc/admin24/slapdconf2.html</a> said that i can converting slapd.conf to cn=config format.</p>
  
  <p>So for this purpose i try to make slapd.conf file on server which have role provider like bellow:</p>
  
  <pre><code>database bdb
  suffix dc=mydomain,dc=org
  rootdn cn=admin,dc=mydomain,dc=org
  directory /var/lib/ldap/db
  index objectclass,entryCSN,entryUUID eq
  
  overlay syncprov
  syncprov-checkpoint 100 10
  syncprov-sessionlog 100
  
  database config
  rootpw mypassword
  </code></pre>
  
  <p>Then i try to convert that file using slaptest command, but i got error message like bellow :</p>
  
  <pre><code>$ slaptest -f slapd.conf -v
  slapd.conf: line 2: &lt;suffix&gt; invalid DN 21 (Invalid syntax)
  slaptest: bad configuration file
  </code></pre>
  
  <p>Actually my suffix is absolutely right, but why always "invalid DN"</p>
  
  <p>How to solve this error ?</p>