directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Sabnis (JIRA)" <>
Subject [jira] Created: (DIRSERVER-1109) Failure to create entry with Rdn starting with hash (#)
Date Fri, 07 Dec 2007 16:12:43 GMT
Failure to create entry with Rdn starting with hash (#)

                 Key: DIRSERVER-1109
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 1.5.1
         Environment: Mac OS X 10.4
            Reporter: Chetan Sabnis

I have an LDAP entry where the CN attribute starts with a #.  If the CN is part of the DN,
it cannot be added using the DN escaping rules specified in RFC 2253.  Section 2.4 seems to
imply that it should be escaped using \23.

Here is my test.ldif:

dn: cn=\23moo,dc=example,dc=com
givenName: moo
objectClass: top
objectClass: organizationalperson
objectClass: person
objectClass: inetorgperson
userPassword:: e1NTSEF9MTUzdTJESnZZSlFJTUIxWklFc2ZXWi9QY2pxMkY1TmduUnhRV3c9PQ
uid: #moo
cn: #moo
DisplayName: moo
telephoneNumber: (000) 123-4567
sn: Manager

This is what happens when I do an ldapadd:

ldapadd -v -D "uid=admin,ou=system" -w secret -H ldap://localhost:10001 -x < test.ldif
ldap_initialize( ldap://localhost:10001 )
add givenName:
add objectClass:
add userPassword:
add uid:
add cn:
add DisplayName:
add telephoneNumber:
        (000) 123-4567
add sn:
adding new entry "cn=\23moo,dc=example,dc=com"
modify complete
ldap_add: Loop detected (54)
        additional info: failed to add entry cn=\#moo,dc=example,dc=com: Unexpected exception.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message