SAM launch application with username and password

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 :


set url 0

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

set url 1
HTTP::collect [HTTP::header "Content-Length"]

if { $url == 1 } {
set password [findstr [HTTP::payload] password 9 "&"]
set username [findstr [HTTP::payload] username 9 "&"]
SESSION::data set $tmm_fp_session_id "" ""iexplore $username%session.logon.last.username%$password" "
Published Mar 17, 2015
Version 1.0

Was this article helpful?

No CommentsBe the first to comment