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.com https://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.com http://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.