
Configure WAS to Stop asking for Password during Shutdown


Are you annoyed with a credential prompt whenever you shut down the DMGR, Nodeagent, or JVM?
Well, not anymore, because you are going to learn how to configure IBM WebSphere Application Server to stop prompting for credentials every time.
In default WebSphere installation when security is enabled, you will get a credential prompt as shown below at every shutdown.
The following procedure will help you to configure WAS in such a way that you donโt get a credential prompt anymore during a shutdown.
Note: this must be done at profile levels like DMGR or node agent and assume you are using default connection type (SOAP). So ready?
- Login into WAS server
- Go to $PROFILE_HOMEproperties
- Take a backup of soap.client.props. Or you may also take complete WebSphere configuration backup using backupconfig.sh as explained here.
- Modify the soap.client.props file using vi and ensure the following three changes.
First– change false to true for SOAP security
com.ibm.SOAP.securityEnabled=true
Second & third โ enter user & password, which as administrator role rights.
com.ibm.SOAP.loginUserid=chandan #change this with your environment admin com.ibm.SOAP.loginPassword=chandan # changed this
- So here is how file should look like
- Test it by restarting respective Node, DMGR, or JVM.
Here is a useful tip
if you notice in the above file you can see user and password as plain text, which you donโt want to in a production environment. Itโs recommended to encrypt the password and here is how you can do it.
- Go to $PROFILE_HOMEbin folder
- Execute the following command to encrypt the password
./PropFilePasswordEncoder.sh $PROFILE_HOME/properties/soap.client.props com.ibm.SOAP.loginPassword
Example:-
[[email protected] bin]# ./PropFilePasswordEncoder.sh /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/soap.client.props com.ibm.SOAP.loginPassword [[email protected] bin]#
- Letโs take a look at the password field now.
com.ibm.SOAP.loginPassword={xor}PDc+MTs+MQ==
- So you can see itโs encrypted which is much better, isnโt it?
BTW, do you know you can decrypt the XOR password?
Looking to learn WAS administration? Check out this Udemy course.
More great readings on WebSphere
-
What is Thread Dump and How to Analyze them?Asad Ali on June 29, 2020
-
IBM WebSphere Application Server Beginner’s GuideChandan Kumar on June 9, 2022
-
How to Monitor IBM WebSphere using Application Manager?Chandan Kumar on June 9, 2022
-
How to Use Nginx with WebSphere Application Server?Chandan Kumar on June 9, 2022
-
How to Create Cluster in IBM WebSphere ND?Chandan Kumar on June 9, 2022
-
Whatโs New in WebSphere MQ 9 ย & Installation GuideChandan Kumar on June 10, 2022
Join Geekflare Newsletter
Every week we shareย trending articlesย andย toolsย in our newsletter. More than 10,000 people enjoy reading, and you will love it too.