As an example, when you are using XMLConfig scripts and
security has been enabled, the default action is to have a prompt
presented for your user id and password. This is not convenient when
trying to automate your scripts.
In your sas.client.props file, located in the
$WAS_HOME\properties directory, change the loginSource
parameter from prompt to properties:
com.ibm.CORBA.loginSource=properties
Add your user id and password to the following:
com.ibm.CORBA.loginUserid=MyUserid
com.ibm.CORBA.loginPassword=MyPasswd
Websphere® Application Server automatically detects the changes and you
should not have to restart any processes.
Note: A side-effect of this change is that you will not be
prompted for user id and password when starting the administrative console
or any other Java™ client.
One option to fix this side-effect would be to override the
CLIENTSAS variable in the XMLConfig.[sh|bat]. The
CLIENTSAS variable is originally set with a call to the
setupCmdLine.[sh|bat]. This variable can then point to a second
copy of sas.client.pros which can contain your user id, password,
and login source. This way only your XMLConfig program will not be
prompted.
|