[ 
http://issues.apache.org/jira/browse/DIRSERVER-696?page=comments#action_12429551
 ] 
            
Emmanuel Lecharny commented on DIRSERVER-696:
---------------------------------------------

This is really strange.
creating an entry like :
dn: ou="Scissors 8<",dc=example,dc=com
ou: "Scissors 8<"
objectclass: organizationalUnit
objectclass: top

should throw an exception.
The DN should only contains values that are declared as attributes.
ou="Scissors 8<" attribute is not the same as ou=Scissors 8<.

In DN, the  ou="Scissors 8<" RDN correspond to the attribute type and value :
ou = Scissors 8< 
where the " are removed.
if you don't create the very same attribute, then you will get an error.
It's weird that IBM and Sun create this attribute (tgis is the reason why we 
can see both values in the SUN and IBM results when you do a search.

Can we have more info on the real problem in VSLDAP with this escaped values ?

> Adding entries with RDNs enclosed in quotes may lead to entries with illegal 
> DNs
> --------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-696
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-696
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC4
>         Environment:     *  ApacheDS 1.0 RC4 SNAPSHOT
>     * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
>     * Windows XP Professional SP2
>            Reporter: Stefan Zoerner
>         Assigned To: Emmanuel Lecharny
>         Attachments: quotesEntries.ldif
>
>
> Using ApacheDS 1.0 RC4 SNAPSHOT with server.xml unchanged.
> If I try to add something like this
> dn: ou="Scissors 8<",dc=example,dc=com
> ou: "Scissors 8<"
> objectclass: organizationalUnit
> objectclass: top
> an entry is created like that (quotes missing)
> dn: ou=Scissors 8<,dc=example,dc=com
> ou: Scissors 8<
> objectclass: organizationalUnit
> objectclass: top
> This causes a lot of trouble in some tools I use (LDAP Administrator, for 
> instance). I checked the behaviour of IBM Tivoli Directory Server 6.0 and Sun 
> Java System Directory Server 5.2. They behave different, but both create 
> entries with valid DNs:
> Sun:
> dn: ou="Scissors 8<",dc=example,dc=com
> ou: "Scissors 8<"
> ou: Scissors 8<
> objectClass: organizationalUnit
> objectClass: top
> IBM:
> dn: ou=Scissors 8\<,dc=example,dc=com
> ou: "Scissors 8<"
> ou: Scissors 8<
> objectclass: organizationalUnit
> objectclass: top
> I add an LDIF file with this entry and comparable entries, which cause the 
> same error.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to