cancel
Showing results for 
Search instead for 
Did you mean: 
rina87_2359
Historic F5 Account

Problem this snippet solves:

By design, current BIG-IP SAM 8.0 does not have session variable for user password (%password in firepass). So even customer want to do auto-logon to one of webpage using launch application feature, user will fail to lauch the page at all. This irule is to include user name and password to the URI in launch application on SAM.

Code :

when HTTP_REQUEST {

set url 0

if { [HTTP::uri] starts_with "/my.policy" and [HTTP::method] eq "POST"} {

set url 1
HTTP::collect [HTTP::header "Content-Length"]
}
}
when HTTP_REQUEST_DATA {

if { $url == 1 } {
set password [findstr [HTTP::payload] password 9 "&"]
set username [findstr [HTTP::payload] username 9 "&"]
SESSION::data set $tmm_fp_session_id "config.connectivity_resource_network_access.network-access-1.client.AppLaunch" ""iexplore $username%session.logon.last.username%$password" "
HTTP::release
}
}
Version history
Last update:
‎17-Mar-2015 16:46
Updated by:
Contributors