Home > ISA 2006 Configuration, ISA 2006 Enterprise, ISA 2006 Standard > Configuring Microsoft ISA Server 2006 Web Proxy to Prompt Authenticated Users

Configuring Microsoft ISA Server 2006 Web Proxy to Prompt Authenticated Users

August 10, 2009

When the ISA firewall is configured as a forward proxy server, the web proxy listener is configured to use integrated authentication by default.


A web proxy client makes its initial request anonymously. If there are no policies allowing anonymous access to the requested destination, the ISA firewall responds with a challenge for authentication in the form of an HTTP 407 response (proxy authentication required).


The client then resubmits the request, this time providing credentials to the firewall. This transaction is completely transparent to the end user. The credentials supplied to the ISA firewall are that of the current logged on user. If the user does not have permission, the ISA firewall denies the request without prompting. This behavior is by design.

There are situations in which this behavior is not desirable. Recently I was working with a customer who had workstations configured to log on automatically with a non-privileged domain service account. These workstations were used to access a web-based application on the local intranet. There are times when privileged users will need access to the Internet from these systems, but they will need to do so without logging the service account off. To meet these requirements we needed to configure the ISA firewall to prompt authenticated users for credentials if they are initially denied access.

Making this change required setting the value of the ReturnAuthRequiredIfAuthUserDenied property of the web proxy listener to ‘true’. When configured, the ISA firewall will prompt authenticated users for credentials when they are denied access. This change cannot be made via the management console; it can only be configured programmatically. The MSDN reference for this property contains a VBScript that is used for changing this setting, or you can download the script here. Run the script from the command line on the ISA firewall with the argument ‘true’ to enable prompting for authenticated users who are denied access and ‘false’ to disable it.

For example…

ReturnAuthRequiredIfAuthUserDenied.vbs true

…enables the prompting of authenticated users who are denied access, and…

ReturnAuthRequiredIfAuthUserDenied.vbs false

…disables it.

  1. August 11, 2009 at 6:32 am

    Excellent article Rich!

  2. August 19, 2009 at 3:46 am

    Great feature, Richard!
    I was looking for such mechanism something about a half of year 😉

  3. August 20, 2009 at 7:04 am

    Excellent Info – Thx for running your blog!

    Maybe it´s worth to mention that the script keeps looking for ISA-networks with the property network.NetworkType == 4 (const describing the Internal Network) and changes the option only for this network. Do know if “network.WebListenerProperties.ReturnAuthRequiredIfAuthUserDenied” works only for the http-Proxy-Listener or does it affect also your own Listeners on that network (e.g. for publishing your http Apps in another DMZ) ? Can this be change on a per-listener-basis ?


  4. August 21, 2009 at 3:16 pm

    Excellent point, Robert. The script makes this property change only for web listeners configured on the default Internal network object. I don’t believe there is a distinction being made between the web proxy listener and another user-defined web listener. You certainly could alter this script to make this change on a specific listener on the Internal network, or to make the change on network objects other than the Internal network.

  5. Johan F
    June 14, 2011 at 11:16 pm

    Excellent info. Describes exactly what I was looking for.

  6. June 15, 2011 at 1:13 am

    Awesome. Glad you found the information useful! 🙂

  7. August 16, 2011 at 1:47 am

    can i use the same script for TMG 2010

  8. August 18, 2011 at 8:10 pm

    Absolutely. The scripts works on Forefront TMG 2010 and ISA Server as well.

  9. October 24, 2011 at 11:04 pm

    It is necessary to restrict access to Internet content filtering proxy server enable content filtering in the process of access to the Internet. This type of server is used in schools to prevent objectionable sites, and in some cases, companies limit the sites, porn sites, and even social networking sites.

  10. November 12, 2011 at 2:21 pm

    Absolutely. With Forefront TMG 2010 integrated URL filtering capabilities you can deny access to the “Anonymizers” category which will prevent users from using anonymous public proxies.

  11. February 1, 2012 at 8:42 am

    Hello, Great article and right up the alley I’ve been investigating about random NTCR (challenge/response) forms. Is there an option for this command that will query the curent condition without changing it from true or false? This would be similar to a powershell Get- verb. Thankss

  12. February 2, 2012 at 8:09 am

    Not to my knowledge.

  13. jerumball
    May 11, 2012 at 7:09 am

    I am running ISA2004 EE in a 2 server array. Do I run this script on both servers or just the one configured as the Configuration Storage Server? Also, must I restart the FW service for this change to take effect? Is there any way to view the current value of this property? Thank you very much.

  14. May 14, 2012 at 8:39 pm

    You’ll run the script once on one server that is a member of the array that you want this change to apply to. I do believe that the firewall service has to be restarted in order for this change to take effect. I’m sure you could modify the script to simply display the value of the property for this object as opposed to setting it to true or false.

  15. C Andal
    November 7, 2012 at 4:06 pm

    This used to work for me, but one day recently my users started getting the authentication pop ups again. Ive ran the script multiple times to ensure the setting is set to False, and restarted the server. Not sure what’s gong on.

  16. November 13, 2012 at 3:31 pm

    Is basic authentication enabled? You’ll still get authentication pop-ups if basic authentication is enabled.

  1. September 2, 2009 at 3:01 am
Comments are closed.