Sun Java System Access Manager 6 2005Q1 Administration Guide |
Chapter 14
The ampassword Command Line ToolThis chapter provides information on the amPassword command line tool and contains the following sections:
The ampassword Command Line ExecutableAccess Manager contains an ampassword utility under /opt/SUNWam/bin on SPARC systems and /opt/sun/Identity/bin on Linux systems.. This utility allows you change the Access Manager password for the administrator or user.
The ampassword Syntax
The generic syntax for using the ampassword tool is:
ampassword -a | --admin [ -o | --old oldPassword -n | --new newPassword ]
ampassword -p | --proxy [ -o | --old oldPassword -n | --new newPassword ]
ampassword -e | --encrypt [ password ]
ampassword Options
--admin (-a)
--admin is used to change the admin password.
--proxy (-p)
--proxy is used to change the proxy password. It corresponds to the proxy user (user type proxy in serverconfig.xml.)
--encrypt (-e)
--encrypt is used to encrypt the password. It is printed to the command line. For example, to encrypt a new dsamuser password, use the following command:
ampassword -e newPassword
Then, place the new dsamuser password in serverconfig.xml and restart the web container (Web Server or Application Server).
Running ampassword on SSLTo run ampassword with Access Manager running in Secure-Socket Layer (SSL) mode:
- Modify the serverconfig.xml file, located in the following directory:
AccessManager-base/SUNWam/config/
- Change port the server attribute to the SSL port which Access Manager is running.
- Change the type attribute to SSL.
For example:
ampassword only changes the password in Directory Server. You will have to manually change passwords in the ServerConfig.xml and all authentication templates for Access Manager.