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

dn and search on special caracters (+,;..)



I have well understand that I must escape special caracters in dn as it
was said previously in this list:

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

but now that I have escaped them, the \ keeps appearing when I browse
the entries, even when I run searchs:

example, here's my original ldif:

dn: cn=whois\+\+\+ipServiceProtocol=tcp,ou=Services,dc=int-evry,dc=fr
objectClass: ipService
objectClass: top
ipServicePort: 63
ipServiceProtocol: tcp
cn: whois\+\+
description: IP service 63 (whois\+\+)

here's a search:

# whois\\+\ipServiceProtocol=udp,Services,dc=int-evry,dc=fr
dn: cn=whois\+\+\+ipServiceProtocol=udp,ou=Services,dc=int-evry,dc=fr
objectClass: ipService
objectClass: top
ipServicePort: 63
ipServiceProtocol: udp
cn: whois\+\+
description: IP service 63 (whois\+\+)

# search result
search: 2
result: 0 Success

hence a search on "cn=whois++" returns nothing !

-- 
Jehan Procaccia
Institut National des Telecommunications| Email:
Jehan.Procaccia@int-evry.fr 
MCI, Moyens Communs Informatiques	| Tel  : +33 (0) 160764436 
9 rue Charles Fourier 91011 Evry France | Fax  : +33 (0) 160764321