Novell Home

Talk:LDAP Extensions and Controls for JNDI

From Developer Community

Hi ! A perticular group in LDAP has App 1200 users in it.

When I try to execute the following query

// I am using sort control Context.setRequestControls(sortCtrls);

SearchControl strl = new SearchControl(); strl.setsearchscope(SearchControls.subtree_scope); strl.setReturningAttribues({"member","cn","guid"}); strl.setReturningObjFlag(true);

//fetch only 10 per request strl.setCountLimit(10);

filter = (&(objetclass=groupofnames)(cn=AllSharedGroup)); baseDN = controls = sctrl;


NamingEnumeration entries=context.search(baseDN,filter,controls);

I am excepting only 1 entry to be returned, but I am getting 3 entries (407 members in each entry)!

Is there any default setting in NDS which returns chunck of records at a time.

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.