Hi,

Does anyone out there have an example of how to do a search using JNDI and Ldap that will query on a distingusihed name?

I tried something like the following:

<snip>
filter = "cn=James C Worsham, ou=Blue, ou=Int";
NamingEnumeration results = ctx.search(MY_SEARCHBASE, filter, constraints);
<snip>

where MY_SEARCHBASE IS o=cargill  

I don't get any results...Can you anyone shed some light on this subject for me...how do you search using multiple parameters.

Jaman

P.S.  If I use the code above but just search for one of the paramters(i.e. ou=blue I get results back).