Discussion:
Trusted Login fails in WinHTTP
(too old to reply)
Janakiraman
2004-02-05 16:00:19 UTC
Permalink
Hi,
The problem that we are facing is as follows,
We are using the WinHTTP protocol, for trusted connections we are not
able to connect to the IIS unless we "check" the option "Allow
anonymous access", this obviously logs the trusted user as the deafult
user specified. What do we do?
Need a reply as soon as possible,
Thanx,
Janakiraman
Stephen Sulzer
2004-02-06 03:00:43 UTC
Permalink
Hello,

Are you supplying credentials (e.g., via WinHttpSetCredentials) in your
request, or are you expecting WinHTTP to auto-authenticate on your client's
behalf? Clearly, the latter approach is better as you do not need to
hard-code credentials in your code or implement UI to collect the client's
credentials. I'm assuming that it is auto-authentication that you are trying
to get working.

WinHTTP supports auto-authentication with servers that use Windows
Integrated Authentication (NTLM/Kerberos auth protocols). However, WinHTTP's
default policy is to auto-authenticate only with such servers that WinHTTP
believes to be on the local intranet. (By default, WinHTTP does not "trust"
external Internet servers.) The heuristic that WinHTTP uses to determine if
a server is on the intranet is based on the proxy configuration;
specifically, that the target server is in the "proxy bypass list".

So there are a couple ways you should be able to fix your problem. You can
set your proxy configuration to include the target server in the bypass
list. Or you can override the auto-authentication policy (what WinHTTP calls
the "auto-logon policy"). If you do not use a proxy server, then you can set
an option to override the auto-logon policy.

For additional information about WinHTTP's authentication support, consult
the following online documentation:

"ProxyCfg.exe tool." Be sure to review the last section on "ProxyCfg.exe
and Authentication"

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/proxycfg_exe__a_proxy_configuration_tool.asp

"Authentication in WinHTTP." Note the last section on "Automatic Logon
Policy."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/authentication_in_winhttp.asp


Regards,
Stephen
Post by Janakiraman
Hi,
The problem that we are facing is as follows,
We are using the WinHTTP protocol, for trusted connections we are not
able to connect to the IIS unless we "check" the option "Allow
anonymous access", this obviously logs the trusted user as the deafult
user specified. What do we do?
Need a reply as soon as possible,
Thanx,
Janakiraman
Loading...