directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre-Alain RIVIERE <>
Subject Re: ApacheDS non US-ASCII DN manipulation?
Date Thu, 01 Feb 2007 17:46:16 GMT
Hi and thanks for your help

Emmanuel Lecharny wrote:
> Ok, I have a little bit modified your code, and now, I get an error on 
> your test, just because the filter just filter too much data.
> There is no such "ou=Offices,dc=ippon,dc=fr" dn in the Ldif file you 
> sent me.
I don't understand. The file you've just sent contains an LDIF file with 
"ou=Offices,dc=ippon,dc=fr" as first entry.
> However, just to say that, at least, the filters doe snot returns a NPE.
> btw, if the server is embeded, no need to declare a port : we are 
> going to communicate with it directly, without using a socket, so the 
> performances will be *much* better.
> Tell me if the code I sent you is ok, and what kind of pb you have if 
> you try to use it.

Thanks for the modification. Smarter indeed.

But when I'm using this line (line 141)

    // Notice that the provider URL is not really a URL but a DN
    // This time instead of ou=system we're accessing the dc=ippon,dc=fr
    env.put( Context.PROVIDER_URL, "dc=ippon,dc=fr" );

I get an error :
    Attempt to search under non-existant entry:,0.9.2342.19200300.100.1.25=ippon,0.9.2342.19200300.100.1.25=fr,0.9.2342.19200300.100.1.25=ippon,0.9.2342.19200300.100.1.25=fr

As u see, dc=ippon,dc=fr is repeated twice. Using env.put( 
Context.PROVIDER_URL, "" ) is much better here. I understand it should 
be "dc=ippon,dc=fr" instead of "" but only the first one is correct on 
my computer.

Next, once Context.PROVIDER_URL set to "",  again the same error (NPE).

I really take only the source files you've just sent. All my librairies 
come from maven central repository.

View raw message