directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] Resolved: (DIRSERVER-756) Problem with escaped comma in DN
Date Wed, 04 Oct 2006 17:22:20 GMT
     [ ]

Emmanuel Lecharny resolved DIRSERVER-756.

    Resolution: Invalid

This is not an ADS issue, but a problem in the way LdapSearch transform the DN into a String.
An issue has been raised months ago with this problem (DIRSERVER-631) and fixed in version

We have some Unit test to test this kind of special cases :

   public void testDIRSERVER_631_1() throws NamingException
       LdapDN name = new LdapDN( "cn=Bush\\, Kate,dc=example,dc=com" );

       Assert.assertEquals( "cn=Bush, Kate,dc=example,dc=com", name.toString() );
       Assert.assertEquals( "cn=Bush\\, Kate,dc=example,dc=com", name.getUpName() );


As you can see, the User Provided DN (name.getUpName()) returns correctly the very same DN.
The normalized form does not escape the ',', which is plain normal.

> Problem with escaped comma in DN
> --------------------------------
>                 Key: DIRSERVER-756
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: pre-1.0, 1.0-RC4
>            Reporter: Endi S. Dewata
> 1. Add the following entry:
> ldapadd -h localhost -p 10389 -D uid=admin,ou=system -w secret -x
> dn: cn=Dewata\, Endi,ou=Users,ou=system
> objectClass: person
> cn: Dewata, Endi
> sn: Dewata
> 2. Search the entry:
> ldapsearch -h localhost -p 10389 -D uid=admin,ou=system -w secret -x -b "ou=system"
> #
> dn: cn=Dewata, Endi,ou=Users,ou=system
> objectclass: person
> objectclass: top
> sn: Dewata
> cn: Dewata, Endi
> The escape character (\) is missing from the DN, causing it to become invalid.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message