Re: paged search control - how to
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Oct 2007 20:32:38 -0500
Well, ADSI (which is what you use in VBScript for accessing AD) completely
hides the underlying LDAP page control stuff from you. You just set the
"Page Size" property on the command object to a valid value (> 0 and <=
maxPageSize) and run your search and it will return all matching objects.
'from the ADSI SDK reference in MSDN
Com.Properties("Page Size") = 999
The only time you need to mess with the controls at that level is when you
are using the LDAP API (wldap32.dll) or using .NET
System.DirectoryServices.Protocols. All of the ADSI-based based APIs
provide a lot of abstraction over paged searches.
I'm not sure what ADUC does under the hood. I'm a programmer, not an admin,
so I actually rarely use it. I definitely would not use it to enumerate a
large result set. The ldp.exe tool (which is very low level and is aimed
more at programmers than anyone else) does allow you to do the paging
somewhat manually.
Joe Richards' excellent ADFind.exe command line search tool
(www.joeware.net) always does paged queries by default.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Chris" <Chris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C249D521-4FA1-4E24-A7A4-6E4F34550200@xxxxxxxxxxxxxxxx
Do you have sample using VBScript for such function? Also when talking
GUI
I'm wondering if it's possible with ADUC or any MS native tools?
Thanks,
"Joe Kaplan" wrote:
You would use the paged search control if you were writing LDAP code.
The
exact way you would do this depends on the coding language you are using.
If you just want to use a GUI tool, that is something that is typically
configured by the tool if it is supported.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Chris" <Chris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5508661B-B7FA-4F8E-9A48-6A47F75B4FE2@xxxxxxxxxxxxxxxx
Our maxpagesize is set at 1000 but my AD search will return more
objects
than
that. I heard paged search control will return pages in the limits.
But
how
to do it? Is it a parameter in LDAP command? How to use it in AD UI
search?
Thanks.
.
- Follow-Ups:
- Re: paged search control - how to
- From: Chris
- Re: paged search control - how to
- References:
- Re: paged search control - how to
- From: Joe Kaplan
- Re: paged search control - how to
- Prev by Date: Re: AD Schema addition error
- Next by Date: Trying to add a user to AD via LDIFDE but receiving an error stating "Unable to update the password"
- Previous by thread: Re: paged search control - how to
- Next by thread: Re: paged search control - how to
- Index(es):
Relevant Pages
|