Example: Security and the tools
To enable WAS security, provide the tools with authentication information.
Without authentication information, the tools receive an AccessDenied exception when you attempt to use them with security enabled. There are multiple ways to provide authentication data:
- Most tools support a -username and -password option for providing basic authentication data. Specify the user ID and password for an administrative user. For example, we can use a member of the console users with operator or administrator privileges, or the admin ID configured in the user registry. The following example demonstrates the stopNode command, which specifies command line parameters:
stopNode -username adminuser -password adminpw
- We can place the authentication data in a properties file that the tools read. The default file for this data is the sas.client.props file in the properties directory for the current profile.
Related tasks
Use command-line tools