Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1037493AE for ; Wed, 7 Dec 2011 01:47:05 +0000 (UTC) Received: (qmail 9589 invoked by uid 500); 7 Dec 2011 01:47:04 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 9543 invoked by uid 500); 7 Dec 2011 01:47:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 9502 invoked by uid 99); 7 Dec 2011 01:47:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 01:47:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 01:47:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 70642104547 for ; Wed, 7 Dec 2011 01:46:40 +0000 (UTC) Date: Wed, 7 Dec 2011 01:46:40 +0000 (UTC) From: "Alejandro Abdelnur (Updated) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1109862878.47939.1323222400480.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1801899781.47895.1323221560605.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-7887) KerberosAuthenticatorHandler is not setting KerberosName name rules from configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Abdelnur updated HADOOP-7887: --------------------------------------- Attachment: HADOOP-7887.patch The attached patch configures the name rules as part of the configuration of the KerberosAuthenticatorHandler. Verified Kerberos testcases pass and added a new test to test this setting happens. The UGI on initialization (first call to *isSecurityEnabled()* ) reads the name rules for Hadoop configuration files (-site.xml). It is not possible to se a different name rule directly. So, the trick is, if using hadoop-auth outside of Hadoop (ie by Oozie) set the name rules in the hadoop-auth configuration properties and call UGI.isSecurityEnabled() before the KerberosAuthenticationHandler is initialized. If using it from Hadoop no need to set it in the hadoop-auth configuration, it will use the one set by UGI > KerberosAuthenticatorHandler is not setting KerberosName name rules from configuration > -------------------------------------------------------------------------------------- > > Key: HADOOP-7887 > URL: https://issues.apache.org/jira/browse/HADOOP-7887 > Project: Hadoop Common > Issue Type: Bug > Components: security > Affects Versions: 0.24.0, 0.23.1 > Reporter: Alejandro Abdelnur > Assignee: Alejandro Abdelnur > Priority: Critical > Fix For: 0.24.0, 0.23.1 > > Attachments: HADOOP-7887.patch > > > While the KerberosAuthenticatorHandler defines the name rules property, it does not set it in KerberosName. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira