Anonymous_User Absent Member.
Absent Member.
517 views

Limit search results in Novell NDK Directory Search


Hi,

I developed a Novell eDirectory Search Tool using Novell NDK for Java
(from: http://tinyurl.com/pdd88fx) which list all members of a group
(multivalue field). It works fine for a manageable count of members. But
there´s one group with 30.000 members and the search takes nearly 60
seconds for this. Is there a simple way to limit the search results or
set a range (eg. 0-1000) for this?

Thanks in advance,

Christian


--
ckrause1
------------------------------------------------------------------------
ckrause1's Profile: https://forums.netiq.com/member.php?userid=222
View this thread: https://forums.netiq.com/showthread.php?t=50991

Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Limit search results in Novell NDK Directory Search

The LDAPSearchRequest class can take a number of parameters including a
server timeout:

https://www.novell.com/documentation/developer/jldap/jldapenu/api/com/novell/ldap/LDAPSearchRequest.html#LDAPSearchRequest(java.lang.String,%20int,%20com.novell.ldap.rfc2251.RfcFilter,%20java.lang.String[],%20int,%20int,%20int,%20boolean,%20com.novell.ldap.LDAPControl[])


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Limit search results in Novell NDK Directory Search

On 02/06/2014 16:24, ckrause1 wrote:

> I developed a Novell eDirectory Search Tool using Novell NDK for Java
> (from: http://tinyurl.com/pdd88fx) which list all members of a group
> (multivalue field). It works fine for a manageable count of members. But
> there�s one group with 30.000 members and the search takes nearly 60
> seconds for this. Is there a simple way to limit the search results or
> set a range (eg. 0-1000) for this?


You might want to try paging results - see
https://www.novell.com/documentation/developer/jldap/jldapenu/data/ab4nqsm.html
- although it might depend on which version of eDirectory you're using.

HTH.
--
Simon
Novell Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Limit search results in Novell NDK Directory Search


I'm not sure if using a timeout is a good workaround since there is no
guarantee that you will receive the "full" result for the last object
being returned. Instead, its better to use the maxResults (default is 0,
which is no limit) setting in the LDAPSearchRequest() constructor.


--
--
-eDirectory Rules!-

Peter
www.DreamLAN.com
------------------------------------------------------------------------
peterkuo's Profile: https://forums.netiq.com/member.php?userid=170
View this thread: https://forums.netiq.com/showthread.php?t=50991

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.