Forum Discussion
APM Logout page redirect
We have built out a custom APM login page that does AD auth for us in the back-ground. Is there are a way, if the user enters in incorrect credentials to redirect them to the login page again instead of us seeing the default F5 error page??
I tried this with a 302 redirect but got stuck in a loop...
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/vdesk*" { HTTP::respond 302 Location "http://login.example.com/" }
} }
Any ideas??
2 Replies
- Kevin_Stewart
Employee
A logon page, by default, should give the user three tries before failing to the error page. Do you want it to go back to the logon page instead?
- Kevin_Stewart
Employee
I came across something similar recently. The AD auth agent doesn't function the way you might think it does, and it won't generally allow you bounce back to the logon page after a set number of tries, or fail to another AD auth agent for that matter. The way we handled it was by first querying the directories (AD or LDAP query) for the user, and then performing the AD auth based on the known AD domain. You might alternately try to invalidate the APM session and then issue the redirect, but I'm not 100% certain that'll work either.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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