On 1 Jul 2008, at 07:14, Vartak, Yash V wrote:
Dist,
I am using Net::LDAP to generate reports out of Microsoft Active
Directory, here my LDAP filter is expected to return roughly around
12,000 - 13,000 records.
But due to Admin limits on Active Directory the number of entries
returned are restricted to 1000, due to security reasons it's not
possible to increase admin limit on AD.
What could be work around for this particular problem? So that the
search returns full 12000 + records and I can process all of them
later,
instead of present 1000
Does your Active Directory support Paged Results? Use:
$root_dse = $ldap->root_dse;
if ($root_dse->supported_control(LDAP_CONTROL_PAGED)) {
# do paged results searches here
# Read Net::LDAP::Control::Paged for details and an example
}
(Typed in Mail, but you get the idea.) Paged Results will give you
multiple sets ("pages") of results, each set usually being smaller
than the admin limit. But the overall number of results will usually
be greater than the admin limit.
Cheers,
Chris