Subject: User Account
Author: eLDAP
In response to: Special Characters both in DN and Filter
Posted on: 01/17/2015 02:39:14 AM
Let's take a look at an example. Here comes a person whose last name is "Smith" and first name is "J\oh=n" (yes, two extra characters '\' and '=' inside). The account for this person should be as follow:
dn: uid=Smith\, J\\oh\=n,cn=users,dc=example
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
givenName: J\oh=n
sn: Smith
uid: Smith, J\oh=n
In terms of DN, the value of uid is
"Smith, J\oh=n" which contains three special characters ',', '\', and '='. After being escaped, the DN of this account is
"uid=Smith\, J\\oh\=n,cn=users,dc=example"
>
> On 01/17/2015 02:37:22 AM
eLDAP wrote:
For those characters which are special to DN, they must be escaped by backslash '\'. Then problem arises what if the escaped dn is used in filter where the character '\' is considered as special char as well.
References: