| Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Change Directory Server Attributes (CHGDIRSVRA) command changes the Directory Server configuration. The Directory Server provides a Lightweight Directory Access Protocol (LDAP) server on IBM i.
Restrictions:
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| INSTANCE | Instance | Name, QUSRDIR | Optional, Positional 1 |
| DN | Distinguished name | Single values: *SAME Other values: Element list |
Optional |
| Element 1: Distinguished name | Character value, *ADMINDN, *UPDATEDN | ||
| Element 2: Password | Character value |
| Top |
Specifies the Directory Server instance whose configuration is to be changed.
| Top |
Specifies a new password for one of the Directory Server's administrative users. The passwords that can be changed include:
Single value
Element 1: Distinguished name
Element 2: Password
| Top |
Example 1: Change the Administrator Password
CHGDIRSVRA INSTANCE(QUSRDIR)
DN(*ADMINDN 'private')
This command changes the Directory Server administrator's password for the QUSRDIR Directory Server instance configuration.
Example 2: Change the Update Password
CHGDIRSVRA INSTANCE(QUSRDIR)
DN(*UPDATEDN 'private')
This command changes the password for the distinguished name that the master server must use when propagating directory updates to the QUSRDIR replica Directory Server instance configuration.
Example 3: Change the cn=Fluffy Password
CHGDIRSVRA INSTANCE(DOGGIES)
DN('cn=Fluffy' 'poodle')
This command changes the password for the Fluffy distinguished name in the DOGGIES Directory Server instance configuration.
| Top |
*ESCAPE Messages
| Top |