TS Synthetic - Script using WebSetUserAuthNtlm() fails with HTTP: 401 after initial run on Synthetic Transaction Execution Adapter (TEA) Agent

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    TrueSight Synthetic Transaction Monitor with Micro Focus Silk Performer


    COMPONENT:

    BMC Synthetic Transaction Execution Adapter


    APPLIES TO:

    TrueSight Synthetic Transaction Monitor with Micro Focus Silk Performer Borland Silk Performer Synthetic Transaction Monitoring BMC Synthetic Transaction Execution Adapter



    PROBLEM:

     

    There is a script that is performing a login and logout on an application. It records successfully in Silk Performer and replays successfully as well.  However when the script is running on the Synthetic TEA Agent, the initial run is successful, but all subsequent runs are failing with the following error:

    HTTP: 401 - access denied, RespHdrAuthNTLM

     


    SOLUTION:

     

    The script is using the WebSetUserAuthNtlm() function to handle the NTLM authentication. As per MicroFocus documentation, that function needs to "reset" the credentials before the end of the script.

    Below is an example from MicroFocus:

      

    dcltrans
    transaction TMyTransaction
    begin
    WebSetUserAuthNtlm("testlab\\steve", "secret");
    WebUrl("http://lab1/"); 

      

    WebSetUserAuthNtlm("", "");
    end TMyTransaction;

      



    Adding the "WebSetUserAuthNtlm("", "");" before the "TMain end" in the script will solve the issue, and the script will now run successfully at all executions.

     


    Article Number:

    000137662


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles