Configuring the Account Lockout Policy

To use Start TLS, which runs the command on a non-secure port, run ldappasswd with the -ZZoption and the standard LDAP port number. The password extended change operation has the following format:

ldappasswd -hhostname -pstandard_port -ZZ-P /path/to/cert8.db-DbindDN -wbindPassword

-snewPassworduser [-aoldPassword]

Use the -ZZZfor additional certificate hostname validation.

To modify an entry's password, runldappasswd like any other LDAP operation. It is not necessary to specify a user if the account is the same as that given in the bind DN. For example:

ldappasswd -h ldap.example.com -p 389 -ZZ -D

"uid=jsmith,ou=People,dc=example,dc=com"

-w rootpassword -s newpassword

To change the password on an entry other than the one specified in the bind credentials, run ldappasswd as shown below, adding the user DN to the operation and providing separate credentials, as follows:

ldappasswd -h server.example.com -p 389 -ZZ -D "cn=Directory Manager"

-w rootpassword -s newpassword "uid=jsmith,ou=People,dc=example,dc=com"

Access control is enforced for the password change operation. If the bind DN does not have rights to change the specified password, the operation will fail with an Insufficient rights error.

1.4. Configuring the Account Lockout Policy

The lockout policy works in conjunction with the password policy to provide further security. The account lockout feature protects against hackers who try to break into the directory by repeatedly trying to guess a user's password. The password policy can be set so that a specific user is locked out of the directory after a given number of failed attempts to bind.

Configuring the account lockout policy is described in the following sections:

Section 1.4.1, “Configuring the Account Lockout Policy Using the Console”

Section 1.4.2, “Configuring the Account Lockout Policy Using the Command-Line”

1.4.1. Configuring the Account Lockout Policy Using the Console

To set up or modify the account lockout policy for the Directory Server, do the following:

257

Page 277
Image 277
HP UX Red Hat Direry Server Software manual Configuring the Account Lockout Policy