Before I go and try to reinvent the wheel, I thought I'd ask if any of
you using ldapsend have been able to figure out how to retrieve
results where the ldap server specifies a MaxPageLimit of something
less than the number of results you're requesting.

I know I can change the MaxPageLimit on the Active Directory server,
but I'd prefer to handle this client-side if I can.

Right now I'm using my TLdapsend object's search method to return all
of the users in a group. It fails with a "size limit exceeded" error,
which I can also reproduce using the ldapsearch command-line utility:

------------------------------------------------------------------
$ ldapsearch -H ldap://1.2.3.4 -b 'dc=vm,dc=win2003,dc=net,dc=dns' -D
'[email protected]' -w 'blahblahblah'
'(&(objectClass=person)(objectClass=user)(sAMAccountName=*)(memberOf=CN=BigGroup,OU=tester,DC=vm,DC=win2003,DC=net,DC=dns))'

...
(lots of output)
...
# search result
search: 2
result: 4 Size limit exceeded

# numResponses: 1004
# numEntries: 1000
# numReferences: 3
------------------------------------------------------------------

However, with ldapsearch I can specify something like "-E
pr=100/noprompt" as an additional parameter and have ldapsearch page
the results according to RFC 2696.

Does anyone know if there is either a way to do this automatically
with TLdapsend (I don't see one) or a way to specify the paging in the
search query itself and then just run multiple searches?

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to