Managing the Password Policy
Chapter 7
User Account Management
291
For more information on how to use
ldappasswd
utility, see the OpenLDAP
documentation at
http://www.openldap.org
, or type
man ldappasswd
in the
command-line for the
ldappasswd
manpage.
To modify an entry’s password, run
ldappasswd
like any other LDAP operation. It
is not necessary to specify a
user
if the account is the same as that given in the
bindDN. For example:
./ldappasswd -H ldaps://server.example.com:636 -ZZ -P -K
/export/servers/alias/key3.db -D
"uid=jsmith,ou=People,dc=example,dc=com" -w oldpassword -a
oldpassword -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 ldaps://server.example.com:636 -ZZ -P -K
/export/servers/alias/key3.db -D "cn=Directory Manager" -w
rootpassword -a oldpassword -s newpassword
"uid=jsmith,ou=People,dc=example,dc=com"
Access control is enforced for the password change operation. If the bindDN does
not have rights to change the specified password, the operation will fail with an
“Insufficient rights” error.
NOTE
This operation supports Start TLS encryption (
-ZZ[Z]
), and you
must use a secure connection for the password change operation.
NOTE
If your certificates are either self-signed or are issued by a certificate
authority not trusted by the client application, then you may need to
create a configuration file which contains the option
TLS_REQCERT
never
, which suppresses certificate verification, or
TLS_CACERT
/path/to/cacert.pem
, which specifes the path to you CA
certificate. Set the
LDAPConf
environment variable to this file.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...