I'm sorry, but without a minimal ldif file, the test just throws an exdfeption (you have a loadDefaultData() call in the setUp() method...)

I don't receive the same exception than the one you get.

Here is the request as it is received by the server :
    SearchRequest
        baseDn : 'ou=Groups,dc=ippon,dc=fr,dc=ippon,dc=fr'
        filter : '(& (member=cn=Pierre-Alain RIVIERE,ou=Peoples,ou=Paris,ou=Offices,dc=ippon,dc=fr) (objectClass=ipponGroup) ) '
        scope : whole subtree
        typesOnly : false
no limit
        Time Limit : no limit
        Deref Aliases : deref Always
        attributes :

Here is the response I get :
        Ldap Result
            Result code : (ResultCodeEnum[ALIASPROBLEM=33]) aliasProblem
            Matched DN : 'null'
            Error message : 'failed on search operation: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial'


Which is plain normal as I don't have any data related to the used base DN (as I don't have a ldif file ...)

I have modified somehow your test to make it happy with the LdapURL. The main difference is that I don't use the same factory :
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
instead of
env.put(Context.INITIAL_CONTEXT_FACTORY, ServerContextFactory.class.getName());

I have attached a tar.gz of the modified sources, it would be interesting that you tell me if it's better on your side with this code.

Otherwise, if you send me the ldif file, I can test it on my computer. (of course, I understand that you may have some confidential data into it, so if you can't send it to me, we will find another way to find out what can be your problem ...)

On 1/31/07, Pierre-Alain RIVIERE <pariviere@ippon.fr> wrote:
Some for the delay,  just the time to proceed some test ;)

To avoid to give u all my source code you can just try with this the
following code

    public class GroupLDAPDAOTest extends IpponAbstractServerTest {
        @Override
        protected void setUp() throws Exception {
            super.setUp();

            loadDefaultData();
        }

        public void testJeSaisPas() throws Exception {
            String searchFilter =
                "(&(member=cn=Pierre-Alain
    RIVIERE,ou=Peoples,ou=Paris,ou=Offices,dc=ippon,dc=fr)" +
                "(objectClass=ipponGroup))";

            String baseDN = "ou=Groups,dc=ippon,dc=fr";

            SearchControls controls = new SearchControls();
            controls.setSearchScope(SearchControls.SUBTREE_SCOPE);

            NamingEnumeration<SearchResult> results =
                        getContext().search(baseDN, searchFilter, controls);

        }
    }

I can't give you my LDIF file but inserting a member with a problematic
DN  (cn=Stéphane DUPONT, .... ) should be enough.

I also confirm that when there's no group's member which have a
problematic RDN (cn=Stéphane for exemple), all things goes fine.




Emmanuel Lecharny wrote:
> I will also need some test I can run :)
>
> Atm, I have the DAOGroup class, but without all the related classes I
> need
> to make it run without compilation errors ...
>
> Difficult to launcg the debugger wityhout thos guys :)
>
> Thanks !
>
> On 1/31/07, Emmanuel Lecharny <elecharny@gmail.com> wrote:
>>
>> Hi,
>>
>> is it possible to have the IponSchema.java file? I need it to be able to
>> launch the test
>>
>> --
>> Cordialement,
>> Emmanuel Lécharny
>> www.iktek.com
>>
>
>
>




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