my dog learned polymorphism
The moose likes Security and the fly likes ldap, more than 1000 returns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "ldap, more than 1000 returns" Watch "ldap, more than 1000 returns" New topic

ldap, more than 1000 returns

Barry Higgins
Ranch Hand

Joined: Jun 05, 2003
Posts: 89
I am issuing an search in active directory using JNDI.
However all that are being returned are the first 1000 elements.
Has anyone come up with a way to view the subsequent values?
Anant Kadiyala

Joined: Aug 29, 2001
Posts: 24
This is a restriction by AD. 1000 objects is the default setting. You can change this by using a command-line utility 'ntdsutil.exe'

IBM Certified in Object-Oriented Analysis and Design with UML
Lalu George

Joined: Dec 25, 2002
Posts: 9
Hi there,

Sorry for the late reply. We dont require any server side setting to achive
the same a small change in the client program which queries the ldap/AD will
achive the same. AD supports an extended control calle PageResultControl , which can found in the JNDI Booster pack provided as an addon plugin by SUN
The code for using the PageResultControl can be found the Sun's JNDI forum

with regards

Lalu George

Sun Certified Java Programmer for JDK 1.4 Platform
Software Engineer
Product Development Group
Transversal e Networks
I agree. Here's the link:
subject: ldap, more than 1000 returns
It's not a secret anymore!