Configure security with scripting
If you enable security for a WAS cell, supply authentication information in...
Steps for this task (dependent on configuration)
- Start wsadmin
- 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 SOAP connector:
- If you use a RMI connector, set the following properties in the sas.client.props file with the appropriate valuesAlso, set the following propertycom.ibm.CORBA.loginUserid= com.ibm.CORBA.loginPassword=The 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.com.ibm.CORBA.loginSource=properties
- If you use a SOAP connector, set the following properties in the soap.client.props file with the appropriate valuescom.ibm.SOAP.securityEnabled=true com.ibm.SOAP.loginUserid= com.ibm.SOAP.loginPassword=
Optionally, set the following propertyYou can find the default value for this property in the soap.client.props file. If you accept the default value and do not provide loginUserid and loginPassword values, a dialog box appears with a password prompt. If the script is running unattended, it appears to hang.com.ibm.SOAP.loginSource=none
- 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 examplewsadmin.sh -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.
Note: On UNIX system, the use of -password option may result in security exposure as the password information becomes visible to the system status program such as ps command which can be invoked by other user to display all the running processes. Do not use this option if security exposure is a concern. Instead, specify user and password information in the soap.client.props file for SOAP connector or sas.client.props file for RMI connector. The soap.client.props and sas.client.props files are located in the properties directory of your WebSphere Application Server profile.
Enabling and disabling global security using scripting
Enabling and disabling Java 2 security using scripting
Using scripting (wsadmin)
Getting started with scripting
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.