Platform SDK: Active Directory, ADSI, and Directory Services

Server Time Limit

When you request a search on a server under a heavy workload, you may want to tell the server to restrict the search to a specified time limit. For example, you want to run an application to generate a weekly report on a server that is running near its capacity. To avoid using up all the CPU time and preventing other operations from running at all, you can specify the search time limit to a small value and then re-run the application later if it fails to generate the report.

Some servers might impose their own administrative time limit. In these cases, if you specify a search time limit value greater than the administrative time limit, the server will ignore your specification and use its internal time limit value instead.

The default time limit is no limit.

Use the ADS_SEARCHPREF_TIME_LIMIT preference to specify a server time limit.