If you are not familiar with wsadmin.sh (Linux) / wsadmin.bat (Windows), check out our Getting Started article.
If you are using federated or LDAP repositories, you will be prompted to provide a username and password. Enter the username and password of an administrative user.
Username:
Password:
Or, the username and password can be provided on the command line.
wsadmin.sh -user root -password your_password
The prior options are not ideal, as the username and password provided are visible using the ps command.
~]# ps -ef | grep java
. . .
com.ibm.ws.admin.services.WsAdmin -user root -password your_password
The username and password can be entered in the was_home/profiles/profiles/properties/soap.client.props file for SOAP connections (see -conntype SOAP).
com.ibm.SOAP.securityEnabled=true
com.ibm.SOAP.loginUserid=your_username
com.ibm.SOAP.loginPassword=your_password
com.ibm.SOAP.loginSource=none
Or, the username and password can be entered in the was_home/profiles/profiles/properties/sas.client.props file for RMI or JSR160RMI connections (see -conntype RMI / -conntype JSR160RMI).
com.ibm.CORBA.loginUserid=your_username
com.ibm.CORBA.loginPassword=your_password
com.ibm.CORBA.loginSource=properties
Or, the username and password can be entered in the was_home/profiles/profiles/properties/ipc.client.props file for IPC connections (see -conntype IPC). You will also comment out the login source line.
com.ibm.IPC.loginUserid=your_username
com.ibm.IPC.loginPassword=your_password
# com.ibm.IPC.loginSource=prompt
Or, -conntype NONE can be used, to make an unauthenticated connection.
wsadmin.sh -conntype NONE