Go to the config directory.
cd /etc/opt/SUNWam/agents/es6/config/...instance.../
Edit the AMAgent.properties file.
Create a user name that you will use to log in to Access Manager. For example, com.sun.am.policy.am.username = amAdmin.
Check the settings com.sun.am.naming.url and com.sun.am.policy.am.login.url .
The settings should point to the URLs where the naming service and login pages of Access Manager are available.
Go to the bin directory.
cd /opt/SUNWam/agents/bin
Encrypt the password for the user by using the crypt_util utility. For example, crypt_util secretPassword.
The crypt_util utility is part of the Access Manager installation.
Edit the AMAgent.properties file again to set a password for the user name that you created in Step 3. Use the hash generated by crypt_util. For example, com.sun.am.policy.am.password = XFC3z18nqMEgWbnshtNfwQ==
For more information, see Sun Java System Access Manager Policy Agent 2.2 User’s Guide and Sun Java System Access Manager 7.1 Documentation Collection.