Are you actually using ldap_search or are you using
ADSI as Deji alluded to in his
response?
If you are actually using the LDAP API directly, then
you must use ldap_search_ext* or ldap_search_init_page coupled with
ldap_get_next_page so the paging control (and page value) can be submitted with
the query to use paging to retrieve the information.
If you are coding against AD or ADAM you absolutely
want to do this (as well as handle ranging[1]). If not, and instead you try to
use the increase max page size hack myself or anyone else who understands AD
will point at your app and say don't run this app against AD because they don't
understand how to use AD. Many many more will just say no if part of the
application requirement is to increase the server page size because that is what
we tell people to say.
joe
[1] Or as JoeK and Ryan Dunn pointed out in
there session if K3 or ADAM you can use a base level Attribute Scoped Query
which means you just have to support paging, you don't have to support ranging.
I thought that was brilliant by the way, I never looked at it that way
before.
--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, April 04, 2006 1:18 AM
To: [email protected]
Subject: [ActiveDir] Is there a work around to get all groups (number of groups is mo re than MaxPageSize)?
Hi,
In my application I
need to fetch all groups using a ldap_search function.The number
of
groups meeting the
criteria is more than the currently set value of
MaxPageSize.
Though I am quite
convinced that I cannot get more than MaxPageSize groups using
ldap_search.
But still i am
trying to find a work around.
My question: Is
there a work around to get all groups (number of groups is more than
MaxPageSize)?
thanks in
advance.
Arvind
The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it.
