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

Java clients are not able to automatically follow referral using ldaps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.2
    • 1.4.0
    • core-libs
    • None
    • mantis
    • generic
    • solaris_2.6

      Call being logged with customer using 1.4 fcs release
      test case and pic19668.pcx is located in
      /net/cores.east/cores/62863535
       
      Problem Description

      If we setup referral from consumer to supplier server, as
      ldaps://<supplier>:636/o=seagate.com,o=sds. Java clients are not able to
      automatically follow referral.

      Environment

      - Solaris 8 with latest patches as recommended by iPlanet
      - iPlanet Directory Server 4.15
      - Port: 636 on consumer and supplier server is listening on SSL
      - Java version 1.2.2, 1.3.1, 1.3.1s02, 1.4
      - JSSE 1.02 for all java version except 1.4

      Directory Server Namespace

      (Embedded image moved to file: pic19668.pcx)
      The seagate.com node on consumer server is smart referral to supplier
      seagate.com node.

      Consumer Entry

      dn: o=seagate.com,o=sds
      o: seagate.com
      objectclass: top
      objectclass: organization
      objectclass: referral
      ref: ldaps://<supplier>:636/o=seagate.com,o=sds

      Port 636 on supplier is configured as SSL port.

      > D:\MyFolder\scripts>java -cp .;D:\j2sdk1.4.0-rc\lib;d:\myfolder\scripts
      > JNDITest ldaps://seagate33.conxion.seagate.com:636/ "cn=Directory Manager"
      > <password>
      >
      > Error in init:javax.naming.NamingException: Cannot parse url:
      > ldaps://seagate33.conxion.seagate.com:636/ [Root exception is
      > java.net.MalformedURLException: Not an LDAP URL:
      > ldaps://seagate33.conxion.seagate.com:636/]
      > javax.naming.NamingException: Cannot parse url:
      > ldaps://seagate33.conxion.seagate.com:636/. Root exception is
      > java.net.MalformedURLException: Not an LDAP URL:
      > ldaps://seagate33.conxion.seagate.com:636/
      > at com.sun.jndi.ldap.LdapURL.<init>(LdapURL.java:68)
      > at
      > com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:58)
      > at
      > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      > at
      > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
      > at javax.naming.InitialContext.init(InitialContext.java:219)
      > at javax.naming.InitialContext.<init>(InitialContext.java:195)
      > at
      > javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
      > at JNDITest.main(JNDITest.java:53)
      >

            vinnie Vincent Ryan
            msusko Mark Susko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: