Hi!
When I try to do this ldapadd -x -D "cn=admin,dc=<test>,dc=<ekool>,dc=<ee>" -W -f init.ldif
I get this error:
ldap_bind: Invalid DN syntax (34) additional info: invalid DN
What's wrong? What have I done wrong?
Regards, Villem Alari
Villem Alari writes:
When I try to do this ldapadd -x -D "cn=admin,dc=<test>,dc=<ekool>,dc=<ee>" -W -f init.ldif ldap_bind: Invalid DN syntax (34) additional info: invalid DN
"<" and ">" need to be escaped in DNs: 'cn=admin,dc=<test>,dc=<ekool>,dc=<ee>' or 'cn=admin,dc=\3Ctest\3E,dc=\3Cekool\3E,dc=\3Cee\3E' (Remember to use double \ if you use a quoting type like "" which treats \ as an escape character.)
But I don't know how you've managed to create that database and start slapd with it if you didn't know this already.
--On Thursday, August 16, 2007 9:06 PM +0300 Villem Alari villem@ekool.ee wrote:
Hi!
When I try to do this ldapadd -x -D "cn=admin,dc=<test>,dc=<ekool>,dc=<ee>" -W -f init.ldif
What's with the <>'s in your bind dn?
"cn=admin,dc=test,dc=ekool,dc=ee" is what I'd expect.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org