The following sections describe how to set the look-through limit, size limit, time limit and idle timeout of an account.
Use the ldapmodify command to set the value of nsLookThroughLimit.
The following command removes the look-through limit for Barbara Jensen:
$ ldapmodify -D cn=admin,cn=Administrators,cn=config -w - Enter bind password: dn: uid=bjensen,ou=people,dc=example,dc=com changetype: modify add: nsLookThroughLimit nsLookThroughLimit: -1 ^D modifying entry uid=bjensen,ou=people,dc=example,dc=com ^D $ |
Use the ldapmodify command to set the value of nsSizeLimit.
The following command removes the size limit for Barbara Jensen:
$ ldapmodify -D cn=admin,cn=Administrators,cn=config -w - Enter bind password: dn: uid=bjensen,ou=people,dc=example,dc=com changetype: modify add: nsSizeLimit nsSizeLimit: -1 ^D modifying entry uid=bjensen,ou=people,dc=example,dc=com ^D $ |
Use the ldapmodify command to set the value of nsTimeLimit.
The following command removes the time limit for Barbara Jensen:
$ ldapmodify -D cn=admin,cn=Administrators,cn=config -w - Enter bind password: dn: uid=bjensen,ou=people,dc=example,dc=com changetype: modify add: nsTimeLimit nsTimeLimit: -1 ^D modifying entry uid=bjensen,ou=people,dc=example,dc=com ^D $ |
Use the ldapmodify command to set the value of nsIdleTimeout.
The following command sets the idle timeout for Barbara Jensen to five minutes (300 seconds):
$ ldapmodify -D cn=admin,cn=Administrators,cn=config -w - Enter bind password: dn: uid=bjensen,ou=people,dc=example,dc=com changetype: modify add: nsIdleTimeout nsIdleTimeout: 300 ^D modifying entry uid=bjensen,ou=people,dc=example,dc=com ^D $ |