Forum Discussion
APM External Login - Error Handling Customization?
Hi,
I have a client with an APM policy setup in front of a Web Application to handle LDAP authentication. An External Login page has been configured, to allow for a customised page which could be written to reflect the look and feel of the application sitting behind the VS. The External Login page actually just points back at the same APM VIP, and uses an iRule that looks for specific (login) URIs and serves up the login html resources via iFiles.
This all works fine. However, I am not sure how to capture errors, for example when authentication fails. At the moment, when performing the LDAP Auth event, if the username or password is incorrect for example, the user is redirected to the vdesk/hangup.php3 page which presents the standard system BIG-IP APM login error page. Is there any way to capture this and redirect them to a customized/external error page that could match the design of the external login page?
Thanks!
1 Reply
- Michael_Jenkins
Cirrostratus
I've done the same thing, and the way I solved this issue was by putting my external authentication functionality into a Macro in the VPE and then based on AD auth/failure either exiting the macro or setting a Loop endpoint that would loop through the macro up to 3 times. I also set a custom variable I add to the external logon page URL to specify which error message to display. It's hacky, but it works well.
My better suggestion would be to customize the APM login page, which is fairly straightforward (). You can go into the login page through
>Access Policy
>Customization
> ChangeAdvanced
toEdit Mode
> Access Profiles > [Policy Name]. From there you can drill down to find different files and customize them.Advanced
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
