You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Mark Swanson <ma...@ScheduleWorld.com> on 2004/12/13 20:15:35 UTC

Why is the dn always empty (LookupFilter)?

Hello,

Why is the LookupFilter.filter(LdapContext ctx, Name dn, ...) dn param always 
empty? 
F.E.:

	System.out.println("test");
        int count = dn.size();
        for (int i=0; i < count; ++i) {
            String component = dn.get(i);
            System.out.println("DEBUG: SWLookupFilter.filter() dn component:"+
                component);

This code prints "test" and nothing else.

I need to dynamically rewrite the dn to support multiple schemas 
simultaneously.

Thoughts?

Thank you.

-- 
Free SyncML-capable J2ME & J2SE replacement for Exchange and Outlook
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb

Re: Why is the dn always empty (LookupFilter)?

Posted by Mark Swanson <ma...@ScheduleWorld.com>.
On December 13, 2004 2:15 pm, Mark Swanson wrote:
> Hello,
>
> Why is the LookupFilter.filter(LdapContext ctx, Name dn, ...) dn param
> always empty?
Hmm. Because that's probably what I'm passing in as my search dn...

-- 
Free SyncML-capable J2ME & J2SE replacement for Exchange and Outlook
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb