From common-issues-return-170107-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu Apr 11 21:14:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E71D518065D for ; Thu, 11 Apr 2019 23:14:01 +0200 (CEST) Received: (qmail 87497 invoked by uid 500); 11 Apr 2019 21:14:01 -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 87482 invoked by uid 99); 11 Apr 2019 21:14:00 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2019 21:14:00 +0000 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 74B2CE00E1 for ; Thu, 11 Apr 2019 21:14:00 +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 3220D24422 for ; Thu, 11 Apr 2019 21:14:00 +0000 (UTC) Date: Thu, 11 Apr 2019 21:14:00 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-16214) Kerberos name implementation in Hadoop does not accept principals with more than two components MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-16214?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 815780#comment-16815780 ]=20 Daryn Sharp commented on HADOOP-16214: -------------------------------------- We need to support the reporter's use case with no risk of compatibility is= sues. The scope of the Jira is=C2=A0simply allow not just a/b@R=C2=A0but also=C2= =A0a/b/c@R. The scope is not to rewrite the parser to be complex, contextu= ally sensitive, return different results, or to involve a change however in= nocuous to delegation tokens because you disagree with the behavior. How to do this with _no risk of incompatibility_? * Extend the existing regexp to accept not only 0-1 extra components: {{ser= vice(/component)?}} but n-many components: {{service(/component)*}}. * Restrict the DEFAULT rule to matching 1-2 components so using more compon= ents requires specific configuration. We cannot unilaterally disregard the conventions established long ago w/o r= isking unintended consequences. > Kerberos name implementation in Hadoop does not accept principals with mo= re than two components > -------------------------------------------------------------------------= ---------------------- > > Key: HADOOP-16214 > URL: https://issues.apache.org/jira/browse/HADOOP-16214 > Project: Hadoop Common > Issue Type: Bug > Components: auth > Reporter: Issac Buenrostro > Priority: Major > Attachments: HADOOP-16214.001.patch, HADOOP-16214.002.patch, HADO= OP-16214.003.patch, HADOOP-16214.004.patch, HADOOP-16214.005.patch, HADOOP-= 16214.006.patch, HADOOP-16214.007.patch, HADOOP-16214.008.patch, HADOOP-162= 14.009.patch, HADOOP-16214.010.patch, HADOOP-16214.011.patch > > > org.apache.hadoop.security.authentication.util.KerberosName is in charge = of converting a Kerberos principal to a user name in Hadoop for all of the = services requiring authentication. > Although the Kerberos spec ([https://web.mit.edu/kerberos/krb5-1.5/krb5-1= .5.4/doc/krb5-user/What-is-a-Kerberos-Principal_003f.html])=C2=A0allows for= an arbitrary number of components in the principal, the Hadoop implementat= ion will throw a "Malformed Kerberos name:" error if the principal has more= than two components (because the regex can only read serviceName and hostN= ame). -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org