Forum Discussion

Ashish_Ram_Tak1's avatar
Ashish_Ram_Tak1
Icon for Nimbostratus rankNimbostratus
Sep 22, 2014

iRule to bypass the logon page by automatically filling USER ID and Password by F5.

Dear Devcentral Team,

Thank you in advance for your great support always, I am stuck in one requirement from the client where I am not able to proceed because of this, please find the below requirement.

1)User will login to the first URL either on http or https. If user is login on the http URL then he need to automatically redirect to https and this is working fine please find the below URL and iRule for the same. http://agentdev.customer.comhttps://agentde.customer.com

if {([HTTP::host] contains "agentdev.customer.com")} { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } After redirection we need to replace the original HOST with different HOST, and that is also working fine. https://agentdev.customer.comhttp://de3sapr3.customer.com:8046/sap/bc/webdynpro/sap/zbe_agent_summary_app

if {[string tolower [HTTP::host]] eq "agentdev.customer.com"} {

    HTTP::header replace "Host" "de3sapr3.customer.com:8046" 
if {([HTTP::path] eq "/")} {
    HTTP::uri "/sap/bc/webdynpro/sap/zbe_agent_summary_app"       
    }
   pool XYZ

}

I am getting the log-on page when I successfully getting in the above URL.

When I enter the UID and password in above page I am getting the below URL. https://agentdev.customer.com/sap/bc/webdynpro/sap/zbe_agent_summary_app?amp%3bsap-user=USER&%3bsap-password=%20%20%20%20%20%20%20%20%20%20&%3bsap-language=EN&sap-client=004&sap-language=EN

I need to modify above iRule in such a way that the first logon page will automatically get the default global UID and password which is same for all the users and go directly to second logon page. Default UID: USER Password: password

Please help me to get this done. Thanks is advance.

3 Replies

  • Could you not simply change the HTTP::uri to reflect this new path?

    HTTP::uri "/sap/bc/webdynpro/sap/zbe_agent_summary_app?amp%3bsap-user=USER&%3bsap-password=%20%20%20%20%20%20%20%20%20%20&%3bsap-language=EN&sap-client=004&sap-language=EN"
    
  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    What happens if you go directly to https://agentdev.customer.com/sap/bc/webdynpro/sap/zbe_agent_summary_app?amp%3bsap-user=USER&%3bsap-password=%20%20%20%20%20%20%20%20%20%20&%3bsap-language=EN&sap-client=004&sap-language=EN? I am wondering if the app verifies the referrer (REFERER).

     

  • There is very likely some process that must happen, some order of operations, or some value that must be present when this information is submitted. If you can perform a client side capture (ie. Fiddler, HTTPWatch, etc.), that should show you what that process/order/value is.