Mittwoch, 21. Oktober 2009

OpenLDAP Problems

I was trying to add an existing backend db to a new OpenLDAP installation, basically by creating a new .LDIF file with the config base on the example at the end of http://www.openldap.org/doc/admin23/slapdconf2.html

However when adding it with:
ldapadd -c -f configMyDb.ldif -x -D "cn=admin,cn=config" -W


I got:
ldap_add: Invalid syntax (21)
additional info: olcSuffix: value #0 invalid per syntax


Reason being:
olcSuffix: "dc=example,dc=com"
instead of
olcSuffix: dc=example,dc=com

(Removing the quotes..)