Forum Discussion
david78
Nimbostratus
Dec 22, 2011iRule doesn't work after upgrade :(
hello, 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...
John_Alam_45640
Dec 30, 2011Historic F5 Account
It possible that some ACCESS commands do not work in HTTP events like they used to. Use this irule, it should work in both versions:
when RULE_INIT {
set static::ACCESS_APM_LOG_PREFIX "01490000:3:"
set static::HttpRealm ""
}
when HTTP_REQUEST {
set http_hdr_auth [HTTP::header Authorization]
if { [ string first Basic $http_hdr_auth ] == -1 } {
log -noname accesscontrol.local1.debug "$static::ACCESS_APM_LOG_PREFIX Not basic authentication. Ignore received auth header"
set http_hdr_auth ""
}
if { $http_hdr_auth == "" } {
log -noname accesscontrol.local1.debug "$static::ACCESS_APM_LOG_PREFIX No/Empty Auth header"
HTTP::respond 401 content $static::actsync_401_http_body WWW-Authenticate "Basic realm=\"$static::HttpRealm\"" Connection Close
return
}
set username [HTTP::username]
set password [HTTP::password]
}
when ACCESS_SESSION_STARTED {
if { [ info exists username ] } {
ACCESS::session data set session.logon.last.username $username
ACCESS::session data set session.logon.last.password $password
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects