Forum Discussion
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
- MiLK_MaNNimbostratusHi david,
- Colin_Walker_12Historic F5 AccountI don't see anything that obviously changed in 11.1 that should be causing problems for you. Time to start adding some log statements in different sections of the rule to see where things are actually failing. If there are no errors being dumped to the log, you need to start tracking down which parts are not successfully executing on the connections that are being dropped.
- John_Alam_45640Historic F5 AccountIt possible that some ACCESS commands do not work in HTTP events like they used to. Use this irule, it should work in both versions:
- david78Nimbostratusdouble post ...
- david78NimbostratusHi,
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com