Forum Discussion
TMG to F5 APM Logoff URI
Hey - The Microsoft TMG had a Logoff URI that is appended. How does that convert to the F5 APM. There is a logout URI in the respective policy but it will not take this. Do I need some HTTP forms to handle this, and how do I go about doing it.
"?Cmd=logoff"
- Stanislas_Piro2
Cumulonimbus
Hi,
can you explain what you want?
to logout Access session, you must request /vdesk/hangup.php3
to match the same as screenshot, you can use following code:
when ACCESS_ACL_ALLOWED { if {[URI::query [HTTP::uri] "Cmd"] equals "logoff"} { ACCESS::respond 302 noserver Location "/vdesk/hangup.php3" event disable TCP::close return } }
Hi Stanislas - Thanks for the response!
Yes, we just want to convert the TMG functionality above to the APM.
Would the iRule below not work better? Wouldn't we want to use
as well. Perhaps these two irules are accomplishing the same thing?"ACCESS::session remove"
when HTTP_REQUEST { if {[URI::query [HTTP::uri] "Cmd"] equals "logoff"} { ACCESS::session remove HTTP::respond 302 Location "https://[HTTP::host]/vdesk/hangup.php3" } }
- Stanislas_Piro2
Cumulonimbus
The two changes you did are useless
- when session hit /vdesk/hangup.php3 URI, the session immediately closes.
- Never use absolute URL if on the same service (same scheme and same hostname). prefer relative URL like I did.
thanks for the additional detail!
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