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 0FB36200B8F for ; Fri, 30 Sep 2016 11:43:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0E80D160AD9; Fri, 30 Sep 2016 09:43:22 +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 53E44160AC4 for ; Fri, 30 Sep 2016 11:43:21 +0200 (CEST) Received: (qmail 90285 invoked by uid 500); 30 Sep 2016 09:43:20 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 90267 invoked by uid 99); 30 Sep 2016 09:43:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 09:43:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6BE302C0057 for ; Fri, 30 Sep 2016 09:43:20 +0000 (UTC) Date: Fri, 30 Sep 2016 09:43:20 +0000 (UTC) From: "Peter Vary (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14100) Adding a new logged_in_user() UDF which returns the user provided when connecting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Sep 2016 09:43:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Peter Vary updated HIVE-14100: ------------------------------ Description: There is an existing current_user() UDF which returns the user provided by the configured {code}hive.security.authenticator.manager{code}. This is often the same as the user provided on connection, but some cases, like HadoopDefaultAuthenticator this could be different. Some cases we need the logged in user independently of the configured authenticator, so a new UDF is created which provides this - returns the . Using HadoopDeaultAuthenticator the current_user() returns the username of the unix user running hiveservice2. Using SessionStateUserAuthenticator the current_user returns the username which is provided when the connection started. was: There is an existing current_user() UDF which returns the user provided by the configured Authenticator. Using HadoopDeaultAuthenticator the current_user() returns the username of the unix user running hiveservice2. Using SessionStateUserAuthenticator the current_user returns the username which is provided when the connection started. > Adding a new logged_in_user() UDF which returns the user provided when connecting > --------------------------------------------------------------------------------- > > Key: HIVE-14100 > URL: https://issues.apache.org/jira/browse/HIVE-14100 > Project: Hive > Issue Type: Bug > Components: Authentication, Beeline > Reporter: Peter Vary > Assignee: Peter Vary > Priority: Minor > Attachments: HIVE-14100.2.patch, HIVE-14100.2.patch, HIVE-14100.2.patch, HIVE-14100.patch > > > There is an existing current_user() UDF which returns the user provided by the configured {code}hive.security.authenticator.manager{code}. This is often the same as the user provided on connection, but some cases, like HadoopDefaultAuthenticator this could be different. > Some cases we need the logged in user independently of the configured authenticator, so a new UDF is created which provides this - returns the . > Using HadoopDeaultAuthenticator the current_user() returns the username of the unix user running hiveservice2. > Using SessionStateUserAuthenticator the current_user returns the username which is provided when the connection started. -- This message was sent by Atlassian JIRA (v6.3.4#6332)