Thx for the reply and sorry for the delay, but I havent always access to t this network.
Following your tip I have tried serveral additional settings. But still I am unable to authentificate. The program generates a Type1Message (see below) and thats all Mayby I use the therms wrong ... AuthScope(): Server: The server i trying to connect to ( e.g. https://server.some.net -> server.some.net) NTCredential(): Domain: The domain suffix of the net I am currently working with (49064097.some.net -> some.net) Workstation: IP/DNS-Name of my client (10.64.x.y/49064097) 686 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: best-match 686 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: best-match **************************** 686 [main] INFO de.balkonien.webtest.JCIFSEngine - ## TM1 DOMAIN: 'MY.SERVER' WORKSTATION: '49064097-001' 686 [main] INFO de.balkonien.webtest.JCIFSEngine - ## TM1 DOMAIN: 'MY.SERVER' WORKSTATION: '49064097-001' **************************** 702 [main] DEBUG org.apache.http.impl.client.DefaultHttpClient - Attempt 2 to execute request 702 [main] DEBUG org.apache.http.impl.client.DefaultHttpClient - Attempt 2 to execute request 702 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Sending request: GET / HTTP/1.1 702 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Sending request: GET / HTTP/1.1 702 [main] DEBUG org.apache.http.wire - >> "GET / HTTP/1.1[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "GET / HTTP/1.1[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "Host: my.server[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "Host: my.server[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "User-Agent: Apache-HttpClient/4.0.1 (java 1.5)[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "User-Agent: Apache-HttpClient/4.0.1 (java 1.5)[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "Authorization: NTLM TlRMTVNTUAABAAAAATIAABYAFgAgAAAADAAMADYAAABERS5FTUEuUFdDSU5URVJOQUwuQ09NNDkwNjQwOTctMDAx[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "Authorization: NTLM TlRMTVNTUAABAAAAATIAABYAFgAgAAAADAAMADYAAABERS5FTUEuUFdDSU5URVJOQUwuQ09NNDkwNjQwOTctMDAx[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "[EOL]" 702 [main] DEBUG org.apache.http.wire - >> "[EOL]" 702 [main] DEBUG org.apache.http.headers - >> GET / HTTP/1.1 702 [main] DEBUG org.apache.http.headers - >> GET / HTTP/1.1 702 [main] DEBUG org.apache.http.headers - >> Host: my.server 702 [main] DEBUG org.apache.http.headers - >> Host: my.server 702 [main] DEBUG org.apache.http.headers - >> Connection: Keep-Alive 702 [main] DEBUG org.apache.http.headers - >> Connection: Keep-Alive 702 [main] DEBUG org.apache.http.headers - >> User-Agent: Apache-HttpClient/4.0.1 (java 1.5) 702 [main] DEBUG org.apache.http.headers - >> User-Agent: Apache-HttpClient/4.0.1 (java 1.5) 702 [main] DEBUG org.apache.http.headers - >> Authorization: NTLM TlRMTVNTUAABAAAAATIAABYAFgAgAAAADAAMADYAAABERS5FTUEuUFdDSU5URVJOQUwuQ09NNDkwNjQwOTctMDAx 702 [main] DEBUG org.apache.http.headers - >> Authorization: NTLM TlRMTVNTUAABAAAAATIAABYAFgAgAAAADAAMADYAAABERS5FTUEuUFdDSU5URVJOQUwuQ09NNDkwNjQwOTctMDAx 717 [main] DEBUG org.apache.http.wire - << "HTTP/1.1 500 Internal Server Error[EOL]" 717 [main] DEBUG org.apache.http.wire - << "HTTP/1.1 500 Internal Server Error[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Content-Length: 100[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Content-Length: 100[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Content-Type: text/html[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Content-Type: text/html[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Server: Microsoft-IIS/6.0[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Server: Microsoft-IIS/6.0[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Date: Tue, 13 Apr 2010 12:15:19 GMT[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Date: Tue, 13 Apr 2010 12:15:19 GMT[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Connection: close[EOL]" 717 [main] DEBUG org.apache.http.wire - << "Connection: close[EOL]" 717 [main] DEBUG org.apache.http.wire - << "[EOL]" 717 [main] DEBUG org.apache.http.wire - << "[EOL]" 717 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Receiving response: HTTP/1.1 500 Internal Server Error 717 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Receiving response: HTTP/1.1 500 Internal Server Error 717 [main] DEBUG org.apache.http.headers - << Content-Length: 100 717 [main] DEBUG org.apache.http.headers - << Content-Length: 100 717 [main] DEBUG org.apache.http.headers - << Content-Type: text/html 717 [main] DEBUG org.apache.http.headers - << Content-Type: text/html 717 [main] DEBUG org.apache.http.headers - << Server: Microsoft-IIS/6.0 717 [main] DEBUG org.apache.http.headers - << Server: Microsoft-IIS/6.0 717 [main] DEBUG org.apache.http.headers - << Date: Tue, 13 Apr 2010 12:15:19 GMT 717 [main] DEBUG org.apache.http.headers - << Date: Tue, 13 Apr 2010 12:15:19 GMT 717 [main] DEBUG org.apache.http.headers - << Connection: close 717 [main] DEBUG org.apache.http.headers - << Connection: close 717 [main] DEBUG org.apache.http.wire - << "<html><head><title>Error</title></head><body>The function requested is not supported[\r][\n]" 717 [main] DEBUG org.apache.http.wire - << "<html><head><title>Error</title></head><body>The function requested is not supported[\r][\n]" 717 [main] DEBUG org.apache.http.wire - << "</body></html>" 717 [main] DEBUG org.apache.http.wire - << "</body></html>" <html><head><title>Error</title></head><body>The function requested is not supported </body></html>717 [main] DEBUG org.apache.http.impl.conn.SingleClientConnManager - Releasing connection org.apache.http.impl.conn.singleclientconnmanager$connadap...@1b4fad5 717 [main] DEBUG org.apache.http.impl.conn.SingleClientConnManager - Releasing connection org.apache.http.impl.conn.singleclientconnmanager$connadap...@1b4fad5 717 [main] DEBUG org.apache.http.impl.conn.SingleClientConnManager - Released connection open but not reusable. 717 [main] DEBUG org.apache.http.impl.conn.SingleClientConnManager - Released connection open but not reusable. 717 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection shut down 717 [main] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection shut down T -------- Original-Nachricht -------- > Datum: Thu, 08 Apr 2010 23:58:48 +0200 > Von: Oleg Kalnichevski <[email protected]> > An: HttpClient User Discussion <[email protected]> > Betreff: Re: Unable to authenticate with HttpClinet 4.0.1 with NTLM > > Dear all, > > > > if followed the example on > > http://hc.apache.org/httpcomponents-client-4.0.1/ntlm.html > > > > But I am still not able to authenticate. (I have read that Domain and > > Workstation are optional, so I have set them to the empty string (or > > null)). > > Even though both Domain and Workstation may be null, as far as I > understand, at least one must be set for the NTLM auth to succeed. > > Oleg -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
