You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Nikola Goran Cutura (JIRA)" <ji...@apache.org> on 2006/08/23 17:17:14 UTC

[jira] Updated: (DIRSERVER-715) Unable to match entry by X.509 certificate

     [ http://issues.apache.org/jira/browse/DIRSERVER-715?page=all ]

Nikola Goran Cutura updated DIRSERVER-715:
------------------------------------------

    Attachment: LdapTest.java
                test.ldif
                test-export.pem

Attached are three files for testing:

test.ldif is a sample directory hierarchy I use for testing. It contains an entry with a certificate that I attempt to find.

test-export.pem is the certificate I use in this testing.

LdapTest is a jUnit test case. It tests whether the entry can be found by a text attribute (successful) and whether same entry can be found by the certificate (unsuccessful). Please update path to the certificate file before runnig the test.

> Unable to match entry by X.509 certificate
> ------------------------------------------
>
>                 Key: DIRSERVER-715
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-715
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0-RC3
>         Environment: Windows XP, Intel Pentium 4
>            Reporter: Nikola Goran Cutura
>         Attachments: LdapTest.java, no-binary.log, test-export.pem, test.ldif, with-binary.log
>
>
> There is an entry containing valid X.509 certificate. When I attempt to find that entry by that certificate, search fails. There are two variants of search: one uses 'userCrtificate' attribute name and the other uses 'userCrtificate;certificate' attribute name ('binary' may be specified instead of 'certiifcate' - no change). Attached are log files produced in each of the search attempts.
> Case 1:
> Java statement:
>         NamingEnumeration results = ctx.search("ou=users,o=ActiveMQ,dc=example,dc=com", "userCertificate = {0}", new Object[] {cert}, constraints);
> produces log as in file ' no-binary.log'
> Case 2:
> Java statement:
>         NamingEnumeration results = ctx.search("ou=users,o=ActiveMQ,dc=example,dc=com", "userCertificate;binary = {0}", new Object[] {cert}, constraints);
> produces log as in file 'with-binary.log'

-- 
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