none
Windows Active Directory - AD LDS - MaxPageSize RRS feed

  • Question

  • Hello Experts, If we query a huge AD LDS database, it will limit the maximum returned result to 20000 even though the MaxPageSize is set to 32768. If record is more then 20000, it gives exception "SizeLimitExceededException". How can we increase the return result size to more then 20000? We have Windows 2008 server. Please help?
    • Moved by Jie Bao Friday, February 18, 2011 6:34 AM (From:Application Compatibility for Windows Development)
    Wednesday, February 16, 2011 10:25 AM

All replies

  •  

               ULONG numReturns = 10;

                // Set the limit on the number of entries returned to 10.
                errcode = ldap_set_option(
                                  pConn,       // Session handle
                                  LDAP_OPT_SIZELIMIT,    // Option
                                  (void*) &numReturns);  // Option value

    Best regards,

    Konrad


    Konrad Schiemert
    Friday, June 17, 2011 11:26 AM