iRule doesn't work after upgrade :(
After upgrade v11.0 to v11.1 this iRule don't work.
there is no error message, but the client is redirected to / vdesk/hangup.php3
The first queries are ok, but not all.
when HTTP_REQUEST {
for no redirect to /my.policy
HTTP::header insert "clientless-mode" 1
if { [ACCESS::policy result] ne "allow" } {
if { [HTTP::header Authorization] eq "" } {
HTTP::respond 401 WWW-Authenticate Basic realm=\"Unspecified\"" Connection close
return
} else {
set username [HTTP::username]
set password [HTTP::password]
}
}
}
when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::policy agent_id] eq "no_redirect" } {
if { [info exists username] } {
ACCESS::session data set session.logon.last.username $username
ACCESS::session data set session.logon.last.password $password
}
}
}
when ACCESS_POLICY_COMPLETED {
if { [ACCESS::session data get session.ldap.last.authresult] eq "0" } {
ACCESS::respond 401 content "Error: Failure in Authentication" Connection close
return
}
]
thx