Forum Discussion

collinz1_17223's avatar
Icon for Nimbostratus rankNimbostratus
May 03, 2012

HTML Form for Basic Authentication

I am wondering if it is possible to use an irule to return an html form to a selection of our users. The situation is that we have a bunch of web servers that are load balanced using our LTM (nothing unusual there), the web servers are configured to use "basic auth", this works fine for most users, however any users that connect that are not on the domain get prompted for their username and password in their browser.



So what i am wondering is whether i can get the users to go to a specific url that will return an html form (using an irule) that asks for username and password and when the user hits submit their credentials are sent in the http request to the web server (using the correct uri).



I know how to return html using an irule, but i don't really know where to start with this one :(



2 Replies

  • Hi,



    It sounds like the web app might be using NTLM or kerberos authentication so domain joined users' browsers automatically complete the auth for the user. Is that the case?



    Can you identify domain or non-domain users by IP address? If so, you could potentially use an iRule to intercept the 401 response from the web servers and send a form instead.



  • I think you're right on the NTLM front, i can easily identify the non domain users. Does anyone have any examples of a form that could be used in this scenario, as you can probably guess this isn't my strong point...any help will be much appreciated.