I updated to the latest snapshot and this Exception no longer seems be a
problem.

What is a problem...

When using the Netscape LDAP service provider

It seems the behavior of following referrals when doing a getAttributes on
an entry whose DN crosses a referral. Like
ldap://server1/ou=xxx,ou=yyy,o=vdc where ou=yyy,o=vdc points to
ldap://server2/ou=mmm,o=nnn

so if I do getAttributes(ldap://server1/ou=xxx,ou=yyy,o=vdc )

where ou=yyy,o=vdc id a referral to ldap://server2/ou=mmm,o=nnn

I get back attributes of ldap://server2/ou=mmm,o=nnn

not the attributes of ldap://server2/ou=xxx,ou=mmm,o=nnn

this isn't very logical, I should be getting back the attributes of the
entry I'm looking for, since it exists. This seems to happen as well for
search().

Mark R. Diggory
Software Engineer
Harvard-MIT Data Center
G-6 Littauer Center, North Yard
Harvard University
Cambridge, MA 02138
phone: (617) 496-7246
e-mail: [EMAIL PROTECTED]
----- Original Message -----
From: "Mark Diggory" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 11:48 AM
Subject: Re: Netscape SP ReferralException doesn't seem to fit JNDI
requirements


> Please direct me to someone who can answer this question.
>
> -thanks
> Mark Diggory
>
> ----- Original Message -----
> From: "Mark Diggory" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 19, 2001 4:17 PM
> Subject: Netscape SP ReferralException doesn't seem to fit JNDI
requirements
>
>
> > 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