On 2/1/07, Pierre-Alain RIVIERE <[EMAIL PROTECTED]> wrote:

Hi and thanks for your help

Emmanuel Lecharny wrote:

> 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.


Well, I was wrong. What I wanted to say is that the filter is looking for :
member=cn=Pierre-Alain RIVIERE,ou=Peoples,ou=Paris,ou=Offices,dc=ippon,dc=fr
and there is no entry with this value, hence the exception.


<snip/>
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
    partition
    env.put( Context.PROVIDER_URL, "dc=ippon,dc=fr" );

I get an error :

    org.apache.directory.shared.ldap.exception.LdapNameNotFoundException:
    Attempt to search under non-existant entry:
    2.5.4.11=groups,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.


I have the same pb... Looking...

Sorry, I did the test while fixing many differnet other things, so the bumpy
feeling you may have...



--
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to