J2SE returns incorrect Exception for LDAP error code 32 - No Such Object

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • None
    • Affects Version/s: 1.4.2_03
    • Component/s: core-libs
    • None

      When Java 1.4.2_03 is used to do an LDAP bind with a non-existent Dn, the Identity Server/LDAP Server returns err=32 in its access log but yet Java throws a AuthenticationException. However, as per the LDAP rfc and as per JNDI documentation err=32 should map to NameNotFoundException in Java.

      JNDI docs: http://java.sun.com/products/jndi/tutorial/ldap/models/exceptions.html

      I know for a fact that Java is indeed receiving a err=32 from the server because I've changed my code to not catch AuthenticationException and just printStackTrace instead and I get:

      javax.naming.AuthenticationException: [LDAP: error code 32 - No Such Object]

      This needs to fixed and a err=32 should throw a proper NameNotFoundException.
      ###@###.### 2004-02-11

            Assignee:
            Rosanna Lee (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: