Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-715

Unable to match entry by X.509 certificate

Watch issueLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-RC3
    • 1.0-RC4, 1.5.0
    • ldap
    • None
    • Windows XP, Intel Pentium 4

    Description

      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'

      Attachments

        1. test-export.pem
          0.8 kB
          Nikola Goran Cutura
        2. test.ldif
          3 kB
          Nikola Goran Cutura
        3. LdapTest.java
          5 kB
          Nikola Goran Cutura
        4. ASF.LICENSE.NOT.GRANTED--with-binary.log
          50 kB
          Nikola Goran Cutura
        5. ASF.LICENSE.NOT.GRANTED--no-binary.log
          77 kB
          Nikola Goran Cutura

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            akarasulu Alex Karasulu
            ngcutura Nikola Goran Cutura
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment