Web Service Exception text is: LDAP: error code 49 - Invalid Credentials
search cancel

Web Service Exception text is: LDAP: error code 49 - Invalid Credentials

book

Article ID: 76403

calendar_today

Updated On:

Products

CA Application Test Service Virtualization

Issue/Introduction

Sending a HTTPS Request using the Web Service step in DevTest and it is throwing the below error.  But the same test works fine in Soap UI.  

STACK TRACE:  
The Login failed because of an exception: com.ibm.broker.axis2.MbSoapLoginException: IBM Integration Bus BIP2702 (authentication failure) 

org.apache.axis2.AxisFault: CWWSS6521E: The Login failed because of an exception: com.ibm.broker.axis2.MbSoapLoginException: IBM Integration Bus BIP2702 (authentication failure) 
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) 
 at com.ibm.ws.wssecurity.handler.WSSecurityConsumerBase.invoke(WSSecurityConsumerBase.java:131) 
 at com.ibm.ws.wssecurity.handler.WSSecurityConsumerHandler._invoke(WSSecurityConsumerHandler.java:537) 
 at com.ibm.ws.wssecurity.handler.WSSecurityConsumerHandler.invoke(WSSecurityConsumerHandler.java:236) 
 at org.apache.axis2.handlers.AbstractHandler.invoke_stage2(AbstractHandler.java:133) 
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:343) 
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313) 
 

Environment

All supported DevTest releases.

Cause

The password was incorrect

Resolution

Use the TCPMON.bat/.sh utility that is shipped with DevTest to verify the Raw traffic that is send from Soap Ui  VS.  what is send from DevTest. TCPMon is a utility that allows monitoring of the messages that are passed in a TCP-based conversation. 

 

To run TCPMon:



You can find a tcpmon.bat file in the DEVTEST_HOME\bin directory
Double-click the .bat file on Windows or execute the shell script on UNIX.


Provide a listen port,   
Listen Port ,  enter  8010 ( for example) 
Enter the fields for  Target Host & Port  ,  using the details from the real ENDPOINT URL 

1. In SoapUi,  the endpoint should be pointing to:   http://localhost:8010/baseUrl.../...
 Send the Request,  and you should be able to capture the traffic in Tcpmon  with the Headers and the Soap Body details. 

2.  Do the Same for DevTest,  In the endpoint field enter: http://localhost:8010/baseUrl.../...
Click the green arrow at the top , to send the request and capture the traffic in Tcpmon.

Save the Traffic that is captured and Compare the two Raw request in Notepad.  

We noticed that the password used  in Soap UI  was different from  what was used in  Devtest. 

 <wsse:Password Type="http://abc.org/wss/2004/01/abc-200401-wss-username-token-profile-1.0#PasswordText">{{pswd}}</wsse:Password>  

Modified the password in the DevTest request and that resolved the issue.     




 

Additional Information

Refer to section "Run TCPMon" in the documentation of the DevTest release you are running.