Console

Entering a value of -1indicates no limit.

4. Click OK.

3.2. Setting Resource Limits Using the Command-Line

The following operational attributes can be set for each entry using the command-line. Use ldapmodify to add the following attributes to the entry:

Attribute

Description

 

 

nsLookThroughLimit

Specifies how many entries are examined for

 

a search operation. Giving this attribute a

 

value of -1indicates that there is no limit.

 

 

nsSizeLimit

Specifies the maximum number of entries the

 

server returns to a client application in

 

response to a search operation. Giving this

 

attribute a value of -1indicates that there is

 

no limit.

 

 

nsTimeLimit

Specifies the maximum time the server

 

spends processing a search operation. Giving

 

this attribute a value of -1indicates that there

 

is no time limit.

 

 

nsIdleTimeout

Specifies the time a connection to the server

 

can be idle before the connection is dropped.

 

The value is given in seconds. Giving this

 

attribute a value of -1indicates that there is

 

no limit.

 

 

For example, this sets the size limit for Barbara Jensen by using ldapmodify1 to modify her entry:

ldapmodify -h myserver -p 389 -D "cn=directory manager" -w secretpwd

dn: uid=bjensen,ou=people,dc=example,dc=com

changetype: modify add:nsSizeLimit nsSizeLimit: 500

The ldapmodify statement adds the nsSizeLimit attribute to Babs Jensen's entry and gives it a search return size limit of 500 entries.

265

Page 285
Image 285
HP UX Red Hat Direry Server Software manual Setting Resource Limits Using the Command-Line