Setting a Limit on the Number of Search Results from a Juniper Networks Database (SRC CLI)

You can set a limit on the maximum number of search results that the server returns to a client in response to a search operation. You must set the size limit on the basis of the total number of available entries in the Juniper Networks Database. The size limit value range is -1 through 2,147,483,647. By default, the size limit is set to 2000 in the dse.ldif file.

If the size limit you set is lower than the number of available matching entries, the server returns all matching search results to the client with an error message indicating that you have exceeded the size limit. If you set the size limit to -1, there is no restriction on the number of search results and the server returns all matching search results to the client.

Use the following configuration statements to specify the maximum number of search results to return in response to a search operation:

system ldap server {maximum-entries-returned maximum-entries-returned;}

To configure the limit on the number of search results from a Juniper Networks Database:

  1. From configuration mode, access the configuration statement that configures the Juniper Networks database.
    user@host# edit system ldap server
  2. Specify the maximum number of search results to return in response to a search operation.
    [edit system ldap server]user@host# set maximum-entries-returned maximum-entries-returned

Related Documentation