in reply to Re^2: ldap query only returning 1k lines
in thread ldap query only returning 1k lines

From http://support.microsoft.com/kb/315071, You can use NTDSUTIL to define policy/ parameters:

MaxPageSize - This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSize value. To summarize, MaxPageSize controls the number of objects that are returned in a single search result.

Default value: 1,000

     ..to maintain is to slowly feel your soul, sanity and sentience ebb away as you become one with the Evil.

  • Comment on Re^3: ldap query only returning 1k lines

Replies are listed 'Best First'.
Re^4: ldap query only returning 1k lines
by Anonymous Monk on May 14, 2009 at 17:40 UTC
    OK, I love the explanation, and I hope that it works, but why would the query still return more that 1k results when run from windows? Thanks again!
Re^4: ldap query only returning 1k lines
by Anonymous Monk on May 14, 2009 at 17:41 UTC
    I love the explanation, and I hope it works, but why would the query from a windows machine return all of the records but not the UNIX query?
      Your Windows code uses WMI (Not LDAP) - which is not subject to the 1K limit.

           ..to maintain is to slowly feel your soul, sanity and sentience ebb away as you become one with the Evil.