Issue Details (XML | Word | Printable)

Key: DIRSERVER-229
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Emmanuel Lecharny
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

The server does not accept DN with type like OID.x.y.z (RFC 1779)

Created: 24/Nov/05 10:12 PM   Updated: 07/Feb/06 02:41 PM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Resolution Date: 17/Jan/06 11:33 PM


 Description  « Hide
if we try to parse DN like :

dn: oid.2.5.4.11=blah

we get an error.

This DN is valid regarding RFC 1179, but isn't regarding rfc 2253.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny made changes - 24/Nov/05 10:12 PM
Field Original Value New Value
Assignee Emmanuel Lecharny [ elecharny ]
Emmanuel Lecharny added a comment - 30/Nov/05 08:33 AM
There is another bug hidden by the first bug :

when we are trying to find an entry which dn contains a ComponentName which use an OID, this OID is not compared to its textual equivalent.

Here 2.5.3.11 = 'ou'. Even if an ou=blah exists, it won't be equivalent, so the entry won't be found.

The solution will be to replace the name by its OID when comparing the entry.

Worst, if we use searches like this one :

CommonName=blah

instead of

cn=blah

we get no answer, even if cn=blah exists.

Emmanuel Lecharny added a comment - 30/Nov/05 08:36 AM
Raised to blocker, as the way lookup are done in the database is not good. We should find an entry using every names it has (cn, commonName or 2.5.4.3, for instance)

Emmanuel Lecharny made changes - 30/Nov/05 08:36 AM
Priority Major [ 3 ] Blocker [ 1 ]
Trustin Lee added a comment - 30/Nov/05 01:19 PM
We have to store everything that can be converted to an OID as an OID, and to provide an interceptor which translates any names in the request into OIDs, and any OIDs in the response into the translated names. Would this approach work?

Emmanuel Lecharny added a comment - 17/Jan/06 11:33 PM
A fix has been submitted in january (a huge one). It solves both errors. The solution is to transform the Names as soon as possible to use an alias instead of the OID.

Emmanuel Lecharny made changes - 17/Jan/06 11:33 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Emmanuel Lecharny added a comment - 17/Jan/06 11:34 PM
Fixed, tested, so closed.

Emmanuel Lecharny made changes - 17/Jan/06 11:34 PM
Status Resolved [ 5 ] Closed [ 6 ]
Alex Karasulu made changes - 07/Feb/06 02:41 PM
Affects Version/s pre-1.0 [ 12310782 ]
Project Directory LDAP [ 10514 ] ApacheDS [ 12310260 ]
Fix Version/s pre-1.0 [ 12310782 ]
Component/s ldap [ 12310715 ]
Key DIRLDAP-73 DIRSERVER-229