[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: dap_bind: Invalid DN syntax (34)

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:
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.