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

Re: odd behavior with migration tools

Andrew Williams wrote:
> "cn=whois+++ipServiceProtocol=tcp,ou=Services,dc=vsinj,dc=net"
> ldap_add: Invalid DN syntax
>         additional info: invalid DN

+ is a special character for defining multi-attribute RDNs. You have
to escape it with \. See RFC2253:

------------------------- snip -----------------------
   If the UTF-8 string does not have any of the following characters
   which need escaping, then that string can be used as the string
   representation of the value.

    o   a space or "#" character occurring at the beginning of the

    o   a space character occurring at the end of the string

    o   one of the characters ",", "+", """, "\", "<", ">" or ";"

   Implementations MAY escape other characters.

   If a character to be escaped is one of the list shown above, then
   is prefixed by a backslash ('\' ASCII 92).
------------------------- snip -----------------------

Ciao, Michael.