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
}
}