Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B157200D40 for ; Sat, 18 Nov 2017 11:34:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8EDE1160BF7; Sat, 18 Nov 2017 10:34:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 371CA160BE9 for ; Sat, 18 Nov 2017 11:34:11 +0100 (CET) Received: (qmail 40907 invoked by uid 500); 18 Nov 2017 10:34:10 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 40896 invoked by uid 99); 18 Nov 2017 10:34:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Nov 2017 10:34:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 79D221A0311 for ; Sat, 18 Nov 2017 10:34:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GLL9agz-JEeu for ; Sat, 18 Nov 2017 10:34:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2C9BC5F3FE for ; Sat, 18 Nov 2017 10:34:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BACAFE0C15 for ; Sat, 18 Nov 2017 10:34:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 08E64240D2 for ; Sat, 18 Nov 2017 10:34:00 +0000 (UTC) Date: Sat, 18 Nov 2017 10:34:00 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1881) NTLM authentication against ntlm.herokuapp.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 18 Nov 2017 10:34:12 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1881?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16258017#comment-16258017 ]=20 Oleg Kalnichevski commented on HTTPCLIENT-1881: ----------------------------------------------- All HttpComponents active projects got migrated to Git some while ago.=20 https://git-wip-us.apache.org/repos/asf/httpcomponents-client.git Please let me know if you want me to commit the patch on your behalf. Cheers Oleg=20 > NTLM authentication against ntlm.herokuapp.com > ---------------------------------------------- > > Key: HTTPCLIENT-1881 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-188= 1 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.5.3 > Reporter: Marcel St=C3=B6r > Assignee: Karl Wright > Labels: authentication, ntlm > Attachments: HTTPCLIENT-1881.patch, msr-ntlm-prototype.zip > > > I'm prototyping NTLM authentication with your 4.5 HTTP client and Spring = RestTemplate. This currently fails with a {{org.apache.http.impl.auth.NTLME= ngineException}} "NTLM authentication error: NTLM authentication - buffer t= oo small for data item".=20 > The code, wire log (below) and a simple standalone test application (atta= ched) are included. > h2. Code > {code:java} > RestTemplate restTemplate =3D new RestTemplate(); > restTemplate.setRequestFactory(buildHttpComponentsClientHttpRequestFactor= y(args)); > private static HttpComponentsClientHttpRequestFactory > buildHttpComponentsClientHttpRequestFactory(String[] args) { > PoolingHttpClientConnectionManager cm =3D new > PoolingHttpClientConnectionManager(); > cm.setMaxTotal(128); > cm.setDefaultMaxPerRoute(24); > RequestConfig.Builder requestBuilder =3D > RequestConfig.custom().setConnectTimeout(5000).setSocketTimeout(10000); > Registry authSchemeRegistry =3D > RegistryBuilder.create() > .register(AuthSchemes.NTLM, new NTLMSchemeFactory()) > .register(AuthSchemes.SPNEGO, new SPNegoSchemeFactory()).build(); > CredentialsProvider credentialsProvider =3D new BasicCredentialsProvide= r(); > credentialsProvider.setCredentials(AuthScope.ANY, new > NTCredentials(args[1], args[2], null, args[3])); > HttpClientBuilder builder =3D HttpClientBuilder.create() > .setConnectionManager(cm) > .setDefaultRequestConfig(requestBuilder.build()) > .setDefaultAuthSchemeRegistry(authSchemeRegistry) > .setDefaultCredentialsProvider(credentialsProvider); > return new HttpComponentsClientHttpRequestFactory(builder.build()); > } > {code} > h2. Wire log > {noformat} > 23:21:22,983 | RestTemplate | Created GET request = for "https://ntlm.herokuapp.com" > 23:21:22,987 | RestTemplate | Setting request Acce= pt header to [text/plain, */*] > 23:21:22,997 | RequestAddCookies | CookieSpec selected:= default > 23:21:23,006 | RequestAuthCache | Auth cache not set i= n the context > 23:21:23,007 | PoolingHttpClientConnectionManager | Connection request: = [route: {s}->https://ntlm.herokuapp.com:443][total kept alive: 0; route all= ocated: 0 of 24; total allocated: 0 of 128] > 23:21:23,029 | PoolingHttpClientConnectionManager | Connection leased: [= id: 0][route: {s}->https://ntlm.herokuapp.com:443][total kept alive: 0; rou= te allocated: 1 of 24; total allocated: 1 of 128] > 23:21:23,031 | MainClientExec | Opening connection {= s}->https://ntlm.herokuapp.com:443 > 23:21:23,299 | DefaultHttpClientConnectionOperator | Connecting to ntlm.h= erokuapp.com/54.235.146.123:443 > 23:21:23,299 | SSLConnectionSocketFactory | Connecting socket to= ntlm.herokuapp.com/54.235.146.123:443 with timeout 5000 > 23:21:23,581 | SSLConnectionSocketFactory | Enabled protocols: [= TLSv1, TLSv1.1, TLSv1.2] > 23:21:23,582 | SSLConnectionSocketFactory | Enabled cipher suite= s:[TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_= SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SH= A256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SH= A256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC= _SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS= _ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DH= E_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECD= SA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_= WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_R= SA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DS= S_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE= _RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_ECDSA_W= ITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_= 3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, TLS_EMPTY_RENEGOTIATIO= N_INFO_SCSV] > 23:21:23,582 | SSLConnectionSocketFactory | Starting handshake > 23:21:23,989 | SSLConnectionSocketFactory | Secure session estab= lished > 23:21:23,989 | SSLConnectionSocketFactory | negotiated protocol= : TLSv1.2 > 23:21:23,989 | SSLConnectionSocketFactory | negotiated cipher s= uite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 > 23:21:23,990 | SSLConnectionSocketFactory | peer principal: CN= =3D*.herokuapp.com, O=3D"Heroku, Inc.", L=3DSan Francisco, ST=3DCalifornia,= C=3DUS > 23:21:23,990 | SSLConnectionSocketFactory | peer alternative na= mes: [*.herokuapp.com, herokuapp.com] > 23:21:23,990 | SSLConnectionSocketFactory | issuer principal: C= N=3DDigiCert SHA2 High Assurance Server CA, OU=3Dwww.digicert.com, O=3DDigi= Cert Inc, C=3DUS > 23:21:23,994 | DefaultHttpClientConnectionOperator | Connection establish= ed 172.19.1.229:63526<->54.235.146.123:443 > 23:21:23,994 | DefaultManagedHttpClientConnection | http-outgoing-0: set= socket timeout to 10000 > 23:21:23,994 | MainClientExec | Executing request GE= T / HTTP/1.1 > 23:21:23,995 | MainClientExec | Target auth state: U= NCHALLENGED > 23:21:23,995 | MainClientExec | Proxy auth state: UN= CHALLENGED > 23:21:23,996 | headers | http-outgoing-0 >> G= ET / HTTP/1.1 > 23:21:23,996 | headers | http-outgoing-0 >> A= ccept: text/plain, */* > 23:21:23,996 | headers | http-outgoing-0 >> H= ost: ntlm.herokuapp.com > 23:21:23,996 | headers | http-outgoing-0 >> C= onnection: Keep-Alive > 23:21:23,996 | headers | http-outgoing-0 >> U= ser-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_66) > 23:21:23,996 | headers | http-outgoing-0 >> A= ccept-Encoding: gzip,deflate > 23:21:23,996 | wire | http-outgoing-0 >> "= GET / HTTP/1.1[\r][\n]" > 23:21:23,996 | wire | http-outgoing-0 >> "= Accept: text/plain, */*[\r][\n]" > 23:21:23,997 | wire | http-outgoing-0 >> "= Host: ntlm.herokuapp.com[\r][\n]" > 23:21:23,997 | wire | http-outgoing-0 >> "= Connection: Keep-Alive[\r][\n]" > 23:21:23,997 | wire | http-outgoing-0 >> "= User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_66)[\r][\n]" > 23:21:23,997 | wire | http-outgoing-0 >> "= Accept-Encoding: gzip,deflate[\r][\n]" > 23:21:23,997 | wire | http-outgoing-0 >> "= [\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= HTTP/1.1 401 Unauthorized [\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= Connection: keep-alive[\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= Www-Authenticate: NTLM[\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= Server: WEBrick/1.3.1 (Ruby/2.0.0/2014-09-19)[\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= Date: Thu, 16 Nov 2017 22:20:57 GMT[\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= Content-Length: 0[\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= Via: 1.1 vegur[\r][\n]" > 23:21:24,174 | wire | http-outgoing-0 << "= [\r][\n]" > 23:21:24,177 | headers | http-outgoing-0 << H= TTP/1.1 401 Unauthorized > 23:21:24,177 | headers | http-outgoing-0 << C= onnection: keep-alive > 23:21:24,178 | headers | http-outgoing-0 << W= ww-Authenticate: NTLM > 23:21:24,178 | headers | http-outgoing-0 << S= erver: WEBrick/1.3.1 (Ruby/2.0.0/2014-09-19) > 23:21:24,178 | headers | http-outgoing-0 << D= ate: Thu, 16 Nov 2017 22:20:57 GMT > 23:21:24,178 | headers | http-outgoing-0 << C= ontent-Length: 0 > 23:21:24,178 | headers | http-outgoing-0 << V= ia: 1.1 vegur > 23:21:24,181 | MainClientExec | Connection can be ke= pt alive indefinitely > 23:21:24,181 | HttpAuthenticator | Authentication requi= red > 23:21:24,183 | HttpAuthenticator | ntlm.herokuapp.com:4= 43 requested authentication > 23:21:24,184 | TargetAuthenticationStrategy | Authentication schem= es in the order of preference: [Negotiate, Kerberos, NTLM, Digest, Basic] > 23:21:24,184 | TargetAuthenticationStrategy | Challenge for Negoti= ate authentication scheme not available > 23:21:24,184 | TargetAuthenticationStrategy | Challenge for Kerber= os authentication scheme not available > 23:21:24,191 | TargetAuthenticationStrategy | Challenge for Digest= authentication scheme not available > 23:21:24,191 | TargetAuthenticationStrategy | Challenge for Basic = authentication scheme not available > 23:21:24,191 | HttpAuthenticator | Selected authenticat= ion options: [NTLM] > 23:21:24,192 | DefaultManagedHttpClientConnection | http-outgoing-0: set= socket timeout to 10000 > 23:21:24,192 | MainClientExec | Executing request GE= T / HTTP/1.1 > 23:21:24,192 | MainClientExec | Target auth state: C= HALLENGED > 23:21:24,192 | HttpAuthenticator | Generating response = to an authentication challenge using ntlm scheme > 23:21:24,192 | MainClientExec | Proxy auth state: UN= CHALLENGED > 23:21:24,192 | headers | http-outgoing-0 >> G= ET / HTTP/1.1 > 23:21:24,192 | headers | http-outgoing-0 >> A= ccept: text/plain, */* > 23:21:24,192 | headers | http-outgoing-0 >> H= ost: ntlm.herokuapp.com > 23:21:24,192 | headers | http-outgoing-0 >> C= onnection: Keep-Alive > 23:21:24,192 | headers | http-outgoing-0 >> U= ser-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_66) > 23:21:24,192 | headers | http-outgoing-0 >> A= ccept-Encoding: gzip,deflate > 23:21:24,192 | headers | http-outgoing-0 >> A= uthorization: NTLM TlRMTVNTUAABAAAAAYIIogAAAAAoAAAAAAAAACgAAAAFASgKAAAADw= =3D=3D > 23:21:24,193 | wire | http-outgoing-0 >> "= GET / HTTP/1.1[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= Accept: text/plain, */*[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= Host: ntlm.herokuapp.com[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= Connection: Keep-Alive[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_66)[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= Accept-Encoding: gzip,deflate[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= Authorization: NTLM TlRMTVNTUAABAAAAAYIIogAAAAAoAAAAAAAAACgAAAAFASgKAAAADw= =3D=3D[\r][\n]" > 23:21:24,193 | wire | http-outgoing-0 >> "= [\r][\n]" > 23:21:24,367 | wire | http-outgoing-0 << "= HTTP/1.1 401 Unauthorized [\r][\n]" > 23:21:24,367 | wire | http-outgoing-0 << "= Connection: keep-alive[\r][\n]" > 23:21:24,368 | wire | http-outgoing-0 << "= Www-Authenticate: NTLM TlRMTVNTUAACAAAAAAAAACgAAAABAAAAAAAAAAAAAAA=3D[\r][\= n]" > 23:21:24,368 | wire | http-outgoing-0 << "= Server: WEBrick/1.3.1 (Ruby/2.0.0/2014-09-19)[\r][\n]" > 23:21:24,368 | wire | http-outgoing-0 << "= Date: Thu, 16 Nov 2017 22:20:58 GMT[\r][\n]" > 23:21:24,368 | wire | http-outgoing-0 << "= Content-Length: 0[\r][\n]" > 23:21:24,368 | wire | http-outgoing-0 << "= Via: 1.1 vegur[\r][\n]" > 23:21:24,368 | wire | http-outgoing-0 << "= [\r][\n]" > 23:21:24,368 | headers | http-outgoing-0 << H= TTP/1.1 401 Unauthorized > 23:21:24,368 | headers | http-outgoing-0 << C= onnection: keep-alive > 23:21:24,368 | headers | http-outgoing-0 << W= ww-Authenticate: NTLM TlRMTVNTUAACAAAAAAAAACgAAAABAAAAAAAAAAAAAAA=3D > 23:21:24,368 | headers | http-outgoing-0 << S= erver: WEBrick/1.3.1 (Ruby/2.0.0/2014-09-19) > 23:21:24,368 | headers | http-outgoing-0 << D= ate: Thu, 16 Nov 2017 22:20:58 GMT > 23:21:24,368 | headers | http-outgoing-0 << C= ontent-Length: 0 > 23:21:24,369 | headers | http-outgoing-0 << V= ia: 1.1 vegur > 23:21:24,369 | MainClientExec | Connection can be ke= pt alive indefinitely > 23:21:24,369 | HttpAuthenticator | Authentication requi= red > 23:21:24,369 | HttpAuthenticator | ntlm.herokuapp.com:4= 43 requested authentication > 23:21:24,369 | HttpAuthenticator | Authorization challe= nge processed > 23:21:24,369 | DefaultManagedHttpClientConnection | http-outgoing-0: set= socket timeout to 10000 > 23:21:24,369 | MainClientExec | Executing request GE= T / HTTP/1.1 > 23:21:24,369 | MainClientExec | Target auth state: H= ANDSHAKE > 23:21:24,370 | HttpAuthenticator | NTLM authentication = error: NTLM authentication - buffer too small for data item > 23:21:24,370 | MainClientExec | Proxy auth state: UN= CHALLENGED > 23:21:24,371 | headers | http-outgoing-0 >> G= ET / HTTP/1.1 > 23:21:24,371 | headers | http-outgoing-0 >> A= ccept: text/plain, */* > 23:21:24,371 | headers | http-outgoing-0 >> H= ost: ntlm.herokuapp.com > 23:21:24,371 | headers | http-outgoing-0 >> C= onnection: Keep-Alive > 23:21:24,371 | headers | http-outgoing-0 >> U= ser-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_66) > 23:21:24,371 | headers | http-outgoing-0 >> A= ccept-Encoding: gzip,deflate > 23:21:24,371 | wire | http-outgoing-0 >> "= GET / HTTP/1.1[\r][\n]" > 23:21:24,371 | wire | http-outgoing-0 >> "= Accept: text/plain, */*[\r][\n]" > 23:21:24,371 | wire | http-outgoing-0 >> "= Host: ntlm.herokuapp.com[\r][\n]" > 23:21:24,371 | wire | http-outgoing-0 >> "= Connection: Keep-Alive[\r][\n]" > 23:21:24,371 | wire | http-outgoing-0 >> "= User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_66)[\r][\n]" > 23:21:24,371 | wire | http-outgoing-0 >> "= Accept-Encoding: gzip,deflate[\r][\n]" > 23:21:24,371 | wire | http-outgoing-0 >> "= [\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= HTTP/1.1 401 Unauthorized [\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= Connection: keep-alive[\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= Www-Authenticate: NTLM[\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= Server: WEBrick/1.3.1 (Ruby/2.0.0/2014-09-19)[\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= Date: Thu, 16 Nov 2017 22:20:58 GMT[\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= Content-Length: 0[\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= Via: 1.1 vegur[\r][\n]" > 23:21:24,562 | wire | http-outgoing-0 << "= [\r][\n]" > 23:21:24,562 | headers | http-outgoing-0 << H= TTP/1.1 401 Unauthorized > 23:21:24,562 | headers | http-outgoing-0 << C= onnection: keep-alive > 23:21:24,563 | headers | http-outgoing-0 << W= ww-Authenticate: NTLM > 23:21:24,563 | headers | http-outgoing-0 << S= erver: WEBrick/1.3.1 (Ruby/2.0.0/2014-09-19) > 23:21:24,563 | headers | http-outgoing-0 << D= ate: Thu, 16 Nov 2017 22:20:58 GMT > 23:21:24,563 | headers | http-outgoing-0 << C= ontent-Length: 0 > 23:21:24,563 | headers | http-outgoing-0 << V= ia: 1.1 vegur > 23:21:24,563 | MainClientExec | Connection can be ke= pt alive indefinitely > 23:21:24,563 | HttpAuthenticator | Authentication requi= red > 23:21:24,563 | HttpAuthenticator | ntlm.herokuapp.com:4= 43 requested authentication > 23:21:24,563 | HttpAuthenticator | Authorization challe= nge processed > 23:21:24,563 | HttpAuthenticator | Authentication faile= d > 23:21:24,563 | PoolingHttpClientConnectionManager | Connection [id: 0][r= oute: {s}->https://ntlm.herokuapp.com:443] can be kept alive indefinitely > 23:21:24,563 | PoolingHttpClientConnectionManager | Connection released:= [id: 0][route: {s}->https://ntlm.herokuapp.com:443][total kept alive: 1; r= oute allocated: 1 of 24; total allocated: 1 of 128] > 23:21:24,568 | RestTemplate | GET request for "htt= ps://ntlm.herokuapp.com" resulted in 401 (Unauthorized); invoking error han= dler > 23:21:24,571 | NtlmPrototype | Request failed > org.springframework.web.client.HttpClientErrorException: 401 Unauthorized > =09at org.springframework.web.client.DefaultResponseErrorHandler.handleEr= ror(DefaultResponseErrorHandler.java:63) ~[spring-web-4.3.11.RELEASE.jar:4.= 3.11.RELEASE] > =09at org.springframework.web.client.RestTemplate.handleResponse(RestTemp= late.java:700) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE] > =09at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.= java:653) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE] > =09at org.springframework.web.client.RestTemplate.execute(RestTemplate.ja= va:613) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE] > =09at org.springframework.web.client.RestTemplate.getForEntity(RestTempla= te.java:312) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE] > =09at NtlmPrototype.issueGetRequest(NtlmPrototype.java:50) [classes/:?] > =09at NtlmPrototype.main(NtlmPrototype.java:32) [classes/:?] > {noformat} > h3. Test application > - use attached ZIP or download from https://frightanic.com/misc/msr-ntlm-= prototype.zip (26.7KB) > - unzip > - $ mvn package > - $ java -jar target/ntlm-prototype-1.0-SNAPSHOT.jar https://ntlm.herokua= pp.com user pass domain -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org