Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24A281019D for ; Tue, 1 Apr 2014 19:18:21 +0000 (UTC) Received: (qmail 98325 invoked by uid 500); 1 Apr 2014 19:18:18 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 98274 invoked by uid 500); 1 Apr 2014 19:18:17 -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 98113 invoked by uid 99); 1 Apr 2014 19:18:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 19:18:15 +0000 Date: Tue, 1 Apr 2014 19:18:14 +0000 (UTC) From: "Malcolm Smith (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1491) Enable provision of Service Principal Name to InitializeSecurityContext MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956922#comment-13956922 ] Malcolm Smith commented on HTTPCLIENT-1491: ------------------------------------------- Re-tested your commit in our corporate environment today, everything working as expected. > Enable provision of Service Principal Name to InitializeSecurityContext > ------------------------------------------------------------------------ > > Key: HTTPCLIENT-1491 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1491 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpClient > Affects Versions: 4.4 Alpha1 > Environment: Windows 7 > Reporter: Malcolm Smith > Labels: kerberos, newbie, patch, windows > Fix For: 4.4 Alpha1 > > Attachments: auth.win.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > I have found when using the org.apache.http.impl.auth.win patch for Kerberos authentication in our corporate environment the InitializeSecurityContext *pszTargetName parameter must be set to the service principal name (http://msdn.microsoft.com/en-us/library/windows/desktop/ms721625(v=vs.85).aspx#_security_service_principal_name_gly) for the Kerberos handshake to succeed. > This patch allows the service principal name to be provided to the WindowsNegotiateScheme constructor via the Factory classes. > I am unsure if this is required or correct for NTLM. > For reference the SPN we use is of the form: HTTP/myserver.mycomp.com@REALM.MYCOMP.COM > * "myserver.mycomp.com" is the host name of the server we want to connect to > * "REALM.MYCOMP.COM" is the active directory realm. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org