I've been testing the nescape LDAP SP with examples from Sun's JNDI Tutorial 
and have encountered inconsistencies between netscape and Sun concerning 
what is returned by ReferralException.getReferralInfo(). Sun's returns a 
String with the URL in it while Nescape seems to return a 
netscape.ldap.LDAPURL. This causes an Exception when you try 
ReferralException.getReferralContext(). Has this been looked at before? Is 
there a fix?

Here's the Exception output. 

Received referral: [Lnetscape.ldap.LDAPUrl;@42a132
Exception in thread "main" java.lang.ClassCastException: 
netscape.ldap.LDAPUrl
       at 
com.netscape.jndi.ldap.ContextEnv.getDirectoryServerURL(ContextEnv.java:376)
       at com.netscape.jndi.ldap.LdapService.connect(LdapService.java:84)
       at 
com.netscape.jndi.ldap.LdapContextImpl.<init>(LdapContextImpl.java:85)
       at 
com.netscape.jndi.ldap.LdapReferralException.getReferralContext(LdapReferral 
Exception.java:54)
       at vdc.beans.Throw.main(Throw.java:101) 

Mark R. Diggory
Software Engineer
Harvard-MIT Data Center
G-6 Littauer Center, North Yard
Harvard University
Cambridge, MA 02138
(617)496-7246

Reply via email to