You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Lili Liu <ll...@inxight.com> on 2004/05/04 00:13:18 UTC
IIS (NTLM) + proxy server (NTLM or basic) problem
Hello,
I have tried all authentication combinations with IIS web server and
microsoft proxy server.
I have 401.1 error when both IIS are set up using NTLM and proxy server is
Basic or NTLM.
The proxy server set up code is as follows: (NTLM case)
client.getState().setAuthenticationPreemptive(false);
client.getHostConfiguration().setProxy("<proxy IP
address>", 80);
client.getState().setProxyCredentials(null, "<proxy
IP address>",
new NTCredentials(proxy-server-username,
proxy-server-password, proxy-server-host, proxy-server-domain));
The web server connection is done as follows:
client.getState().setAuthenticationPreemptive(false);
client.getState().setCredentials(
null,
"10.8.9.22",
new
NTCredentials(username, passwd, "10.8.9.22", "INXIGHT");
Other combinations work well (IIS basic + proxy NTLM or proxy basic)
IIS NTLM without proxy server also works.
Log file is attached.
Any help is highly appreciated!
lili <<log.txt>>