Failure to create entry with Rdn starting with hash (#)
-------------------------------------------------------
Key: DIRSERVER-1109
URL: https://issues.apache.org/jira/browse/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.
http://www.faqs.org/rfcs/rfc2253.html
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:
moo
add objectClass:
top
organizationalperson
person
inetorgperson
add userPassword:
{SSHA}153u2DJvYJQIMB1ZIEsfWZ/Pcjq2F5NgnRxQWw==
add uid:
#moo
add cn:
#moo
add DisplayName:
moo
add telephoneNumber:
(000) 123-4567
add sn:
Manager
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.