uachpw (Password change)
Format
uachpw [-scramble] [-ldap.n password] [-db.n password] useradmin_configfile
Function
This changes the passwords used to access to the LDAP directory and DB servers in the integrated user management configuration file (ua.conf). It can also scramble passwords.
This command can be executed by the users with root privilege or permissions to execute the command. To learn more about granting permissions to execute the command to specific users, see mngenvsetup (setup management group) in the uCosminexus Application Server Command Reference Guide.
Arguments
- -scramble
-
Use this argument when scrambling the password to be changed.
- -ldap.<n> <password>
-
This changes the password used to access the LDAP directory server specified by <n>. <n> contains the LDAP number defined in the integrated user management configuration file. <password> contains a new password.
- -db.<n> <password>
-
This changes the password used to access to the DB server specified by <n>. <n> contains the JDBC number defined in the integrated user management configuration file. <password> contains a new password.
- <useradmin_configfile>
-
This specifies the integrated user management configuration file (ua.conf). This argument is not optional.
Input
In the following example, the password defined in the integrated user management configuration file (ua.conf) is changed and scrambled by using the -scramble option.
-
The LDAP access information 0 password is changed to "diradmin".
-
The LDAP access information 1 password is changed to "administrator".
-
The DB access information 0 password is changed to "tiger".
% uachpw -scramble -ldap.0 diradmin -ldap.1 administrator -db.0 tiger ua.conf
Notes
-
When scrambling the password with the -scramble option, set com.cosminexus.admin.auth.passwordScramble.enable of usrconf.properties to true. Otherwise, the LDAP directory and DB servers will not be accessible, as the password is not decrypted.
-
The maximum number of characters in the password is 30.
-
The options are not case sensitive.
-
Do not execute commands concurrently.
-
Do not include files other than the integrated user management configuration file (ua.conf) in the arguments.