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 61988200BAF for ; Mon, 17 Oct 2016 03:33:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 600FA160AF9; Mon, 17 Oct 2016 01:33:02 +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 A7711160AD0 for ; Mon, 17 Oct 2016 03:33:01 +0200 (CEST) Received: (qmail 77975 invoked by uid 500); 17 Oct 2016 01:33:00 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 77940 invoked by uid 99); 17 Oct 2016 01:33:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2016 01:33:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A27062C0073 for ; Mon, 17 Oct 2016 01:33:00 +0000 (UTC) Date: Mon, 17 Oct 2016 01:33:00 +0000 (UTC) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12082) Support multiple authentication schemes via AuthenticationFilter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Oct 2016 01:33:02 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12082?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15= 580890#comment-15580890 ]=20 Hadoop QA commented on HADOOP-12082: ------------------------------------ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 19s= {color} | {color:blue} Docker mode activated. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0= m 0s{color} | {color:green} The patch does not contain any @author tags. {= color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green}= 0m 0s{color} | {color:green} The patch appears to include 4 new or modif= ied test files. {color} | | {color:blue}0{color} | {color:blue} mvndep {color} | {color:blue} 1m 35s= {color} | {color:blue} Maven dependency ordering for branch {color} | | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}= 6m 44s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 6= m 48s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green}= 1m 28s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 1= m 26s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} mvneclipse {color} | {color:green}= 0m 35s{color} | {color:green} trunk passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 0m = 0s{color} | {color:blue} Skipped patched modules with no Java source: hadoo= p-project {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} = 1m 47s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1= m 10s{color} | {color:green} trunk passed {color} | | {color:blue}0{color} | {color:blue} mvndep {color} | {color:blue} 0m 18s= {color} | {color:blue} Maven dependency ordering for patch {color} | | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}= 1m 5s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 6= m 48s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 6m = 48s{color} | {color:green} the patch passed {color} | | {color:orange}-0{color} | {color:orange} checkstyle {color} | {color:oran= ge} 1m 33s{color} | {color:orange} root: The patch generated 27 new + 151 = unchanged - 6 fixed =3D 178 total (was 157) {color} | | {color:red}-1{color} | {color:red} mvnsite {color} | {color:red} 0m 21s{= color} | {color:red} hadoop-auth in the patch failed. {color} | | {color:green}+1{color} | {color:green} mvneclipse {color} | {color:green}= 0m 47s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green}= 0m 0s{color} | {color:green} The patch has no whitespace issues. {color}= | | {color:green}+1{color} | {color:green} xml {color} | {color:green} 0m 2= s{color} | {color:green} The patch has no ill-formed XML file. {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 0m = 0s{color} | {color:blue} Skipped patched modules with no Java source: hadoo= p-project {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} = 2m 7s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1= m 20s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} unit {color} | {color:green} 0m 1= 5s{color} | {color:green} hadoop-project in the patch passed. {color} | | {color:green}+1{color} | {color:green} unit {color} | {color:green} 3m 3= 5s{color} | {color:green} hadoop-auth in the patch passed. {color} | | {color:green}+1{color} | {color:green} unit {color} | {color:green} 8m 1= 3s{color} | {color:green} hadoop-common in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green}= 0m 28s{color} | {color:green} The patch does not generate ASF License war= nings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 73m 30s{colo= r} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Image:yetus/hadoop:9560f25 | | JIRA Issue | HADOOP-12082 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/1283366= 2/HADOOP-12082-003.patch | | Optional Tests | asflicense compile javac javadoc mvninstall mvnsit= e unit xml findbugs checkstyle | | uname | Linux da202271165f 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT We= d Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | /testptch/hadoop/patchprocess/precommit/personality/provide= d.sh | | git revision | trunk / 1f304b0 | | Default Java | 1.8.0_101 | | findbugs | v3.0.0 | | checkstyle | https://builds.apache.org/job/PreCommit-HADOOP-Build/10808/a= rtifact/patchprocess/diff-checkstyle-root.txt | | mvnsite | https://builds.apache.org/job/PreCommit-HADOOP-Build/10808/arti= fact/patchprocess/patch-mvnsite-hadoop-common-project_hadoop-auth.txt | | Test Results | https://builds.apache.org/job/PreCommit-HADOOP-Build/1080= 8/testReport/ | | modules | C: hadoop-project hadoop-common-project/hadoop-auth hadoop-comm= on-project/hadoop-common U: . | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/108= 08/console | | Powered by | Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org | This message was automatically generated. > Support multiple authentication schemes via AuthenticationFilter > ---------------------------------------------------------------- > > Key: HADOOP-12082 > URL: https://issues.apache.org/jira/browse/HADOOP-12082 > Project: Hadoop Common > Issue Type: Improvement > Components: security > Affects Versions: 2.6.0 > Reporter: Hrishikesh Gadre > Assignee: Hrishikesh Gadre > Attachments: HADOOP-12082-001.patch, HADOOP-12082-002.patch, HADO= OP-12082-003.patch, HADOOP-12082.patch, hadoop-ldap-auth-v2.patch, hadoop-l= dap-auth-v3.patch, hadoop-ldap-auth-v4.patch, hadoop-ldap-auth-v5.patch, ha= doop-ldap-auth-v6.patch, hadoop-ldap.patch, multi-scheme-auth-support-poc.p= atch > > > The requirement is to support LDAP based authentication scheme via Hadoop= AuthenticationFilter. HADOOP-9054 added a support to plug-in custom authen= tication scheme (in addition to Kerberos) via AltKerberosAuthenticationHand= ler class. But it is based on selecting the authentication mechanism based = on User-Agent HTTP header which does not conform to HTTP protocol semantics= . > As per [RFC-2616|http://www.w3.org/Protocols/rfc2616/rfc2616.html] > - HTTP protocol provides a simple challenge-response authentication mecha= nism that can be used by a server to challenge a client request and by a cl= ient to provide the necessary authentication information.=20 > - This mechanism is initiated by server sending the 401 (Authenticate) re= sponse with =E2=80=98WWW-Authenticate=E2=80=99 header which includes at lea= st one challenge that indicates the authentication scheme(s) and parameters= applicable to the Request-URI.=20 > - In case server supports multiple authentication schemes, it may return = multiple challenges with a 401 (Authenticate) response, and each challenge = may use a different auth-scheme.=20 > - A user agent MUST choose to use the strongest auth-scheme it understand= s and request credentials from the user based upon that challenge. > The existing Hadoop authentication filter implementation supports Kerbero= s authentication scheme and uses =E2=80=98Negotiate=E2=80=99 as the challen= ge as part of =E2=80=98WWW-Authenticate=E2=80=99 response header. As per th= e following documentation, =E2=80=98Negotiate=E2=80=99 challenge scheme is = only applicable to Kerberos (and Windows NTLM) authentication schemes. > [SPNEGO-based Kerberos and NTLM HTTP Authentication|http://tools.ietf.org= /html/rfc4559] > [Understanding HTTP Authentication|https://msdn.microsoft.com/en-us/libra= ry/ms789031%28v=3Dvs.110%29.aspx] > On the other hand for LDAP authentication, typically =E2=80=98Basic=E2=80= =99 authentication scheme is used (Note TLS is mandatory with Basic authent= ication scheme). > http://httpd.apache.org/docs/trunk/mod/mod_authnz_ldap.html > Hence for this feature, the idea would be to provide a custom implementat= ion of Hadoop AuthenticationHandler and Authenticator interfaces which woul= d support both schemes - Kerberos (via Negotiate auth challenge) and LDAP (= via Basic auth challenge). During the authentication phase, it would send b= oth the challenges and let client pick the appropriate one. If client respo= nds with an =E2=80=98Authorization=E2=80=99 header tagged with =E2=80=98Neg= otiate=E2=80=99 - it will use Kerberos authentication. If client responds w= ith an =E2=80=98Authorization=E2=80=99 header tagged with =E2=80=98Basic=E2= =80=99 - it will use LDAP authentication. > Note - some HTTP clients (e.g. curl or Apache Http Java client) need to b= e configured to use one scheme over the other e.g. > - curl tool supports option to use either Kerberos (via --negotiate flag)= or username/password based authentication (via --basic and -u flags).=20 > - Apache HttpClient library can be configured to use specific authenticat= ion scheme. > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authenticatio= n.html > Typically web browsers automatically choose an authentication scheme base= d on a notion of =E2=80=9Cstrength=E2=80=9D of security. e.g. take a look a= t the [design of Chrome browser for HTTP authentication|https://www.chromiu= m.org/developers/design-documents/http-authentication] -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org