Re: paged search control - how to



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.





.



Relevant Pages

  • Re: How do I convert sid retrieved from the AD to SDDL string form
    ... LDAP doesn't support joins. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... objectSid property to a SecurityIdentifier class. ...
    (microsoft.public.dotnet.security)
  • Re: Urgent: Restrict LDAP Queries of a domain user
    ... The way I read your question was from a strictly LDAP sense. ... query, they can do a one-level or base level query as well. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)
  • Re: LDAP Behavior
    ... There are various RPC protocols that some Windows APIs use that access the ... A pure LDAP tool like ldp.exe should ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)
  • Re: Pure LDAP Authentication using vb.net
    ... Like I said, I don't know how to do group membership in Novell, so I don't ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... you will likely need to use something like LDAP simple bind. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: paged search control - how to
    ... "Joe Kaplan" wrote: ... hides the underlying LDAP page control stuff from you. ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... I heard paged search control will return pages in the limits. ...
    (microsoft.public.windows.server.active_directory)