Example: Using the wsadmin tool in a secure environment
If you enable security for a WebSphere Application Server cell, supply authentication information to communicate with servers.
The nature of the properties file updates required for running in secure mode depend on whether you connect with a Remote Method Invocation (RMI) connector, or a Simple Object Access Protocol (SOAP) connector:
- If you use a Remote Method Invocation (RMI) connector, set the following properties in the sas.client.props file with the appropriate values:
com.ibm.CORBA.loginUserid= com.ibm.CORBA.loginPassword=Also, set the following property:com.ibm.CORBA.loginSource=propertiesThe default value for this property is prompt in the sas.client.props file. If you leave the default value, a dialog box appears with a password prompt. If the script is running unattended, it appears to hang.- If you use a Simple Object Access Protocol (SOAP) connector, set the following properties in the soap.client.props file with the appropriate values:
com.ibm.SOAP.securityEnabled=true com.ibm.SOAP.loginUserid= com.ibm.SOAP.loginPassword=
To specify user and password information, choose one of the following methods:
- Specify user name and password on a command line, using the -user and -password commands. For example:
wsadmin -conntype RMI -port 2809 -user u1 -password secret1- Specify user name and password in the sas.client.props file for a RMI connector or the soap.client.props file for a SOAP connector.
If you specify user and password information on a command line and in the sas.client.props file or the soap.client.props file, the command line information overrides the information in the props file.