Configuring security with scripting

You can configure security using administrative scripting, as an alternative to using the administrative console.

Before you begin

Before starting this task, the wsadmin tool must be running. This is automatic if WebSphere Process Server is installed and running.

Why and when to perform this task

If you enable security for a WebSphere Process Server cell, supply authentication information to communicate with servers.

The sas.client.props and the soap.client.props files are located in the properties directory for each WebSphere Process Server profile, profilePath/properties.

The steps required for this task depend on your configuration.

Steps for this task

  1. 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:
    Option Description
    RMI Connector
    Set the following properties in the sas.client.props file with the appropriate values:
    om.ibm.CORBA.loginUserid=
    com.ibm.CORBA.loginPassword=

    Also, set the following property:

    com.ibm.CORBA.loginSource=properties
    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.
    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=  
    Optionally, set the following property:
    com.ibm.SOAP.loginSource=none

    You 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.

  2. To specify user and password information, choose one of the following methods:
    1. Specify user name and password on a command line, using the -user and -password commands.

      For example:

      wsadmin.sh -conntype RMI -port 2809 -user u1 -password secret1
    2. 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 Process Server profile.

Terms of use |

Last updated:

Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)