Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4993135

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.4.2_03
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: