You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2008/06/19 04:05:45 UTC

[jira] Commented: (DIRSERVER-1109) Failure to create entry with Rdn starting with hash (#)

    [ https://issues.apache.org/jira/browse/DIRSERVER-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606194#action_12606194 ] 

Alex Karasulu commented on DIRSERVER-1109:
------------------------------------------

Can I get a status on this?

> 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
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.3
>
>
> 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.