Reterive SAP password from the connection

Hi,
Does any one know if there is a way to recover the password hidden stored in the SAP connection on a webMethods IS

I tried with the below code but it is not working and it is trowing nullpoint exception.

import com.wm.data.;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
import com.wm.app.b2b.server.
;
import com.wm.util.security.WmSecureString;

public final class retrievePassword_SVC
{

public static final void retrievePassword(IData pipeline)
throws ServiceException {
IDataCursor pipelineCursor = pipeline.getCursor();
String alias = IDataUtil.getString(pipelineCursor, “connAlias");
WmSecureString reterivedPassword=null;
try{
reterivedPassword = OutboundPasswordManager.retrievePassword((new StringBuilder()).append(“wm.is.art.”).append(alias).toString());
}catch(Throwable t){
t.printStackTrace();
}
IDataUtil.put(pipelineCursor, “password”, reterivedPassword;

Thanks
Raj

Hi Raj ,

All the internal passwords are stored in the outbound password store. Using the inbuilt services and some extended setting you can retrieve the password for all the connections set up on Integration Server.

Add extended settings
watt.security.ope.AllowInternalPasswordAccess , set it’s value to true.

Run the service “pub.security.outboundPasswords:listKeys” set isInternal input to true.

Search for you connection key , search with Connection alias name. Get the key name.

Run the service “pub.security.outboundPasswords:getPassword” set the input isInternal to true. and pass the key name got in above step.

It will list the password for the connection

1 Like

Hi Rakesh,

Thanks for the reply when i am running the services it trowing error

Could not run ‘listKeys’
com.wm.app.b2b.server.ServiceException: [ISS.0086.9220] Access to internal passwords denied

Thanks
Raj

Hi Rakesh,

Thanks for the help I am able to retrieve the password with the above steps.

Thanks
Raj

How did you resolve this error and resolved?? Please share the info

TIA,
RMG

Hi ,

This error comes when you run the service “pub.security.outboundPasswords:listKeys” with input isInternal=true.
And the extended parameter “watt.security.ope.AllowInternalPasswordAccess” is set to false(by default it is false).

After setting the extended parameter “watt.security.ope.AllowInternalPasswordAccess” is set to true.
The pub.security.outboundPasswords:listKeys" with input isInternal=true. will not throw error for internal keys as well.

1 Like

import com.wm.app.b2b.server.*; can be a problem to connection hence SAP fiori launchpad is in trouble

phr practice tests

sphr practice exams