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 72E85200BAC for ; Wed, 26 Oct 2016 22:18:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 71727160B02; Wed, 26 Oct 2016 20:18:00 +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 DFEAD160AE1 for ; Wed, 26 Oct 2016 22:17:59 +0200 (CEST) Received: (qmail 61089 invoked by uid 500); 26 Oct 2016 20:17:58 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 61064 invoked by uid 99); 26 Oct 2016 20:17:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 20:17:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C4C8F2C001E for ; Wed, 26 Oct 2016 20:17:58 +0000 (UTC) Date: Wed, 26 Oct 2016 20:17:58 +0000 (UTC) From: "Illya Yalovyy (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-15076) Improve scalability of LDAP authentication provider group filter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Oct 2016 20:18:00 -0000 Illya Yalovyy created HIVE-15076: ------------------------------------ Summary: Improve scalability of LDAP authentication provider g= roup filter Key: HIVE-15076 URL: https://issues.apache.org/jira/browse/HIVE-15076 Project: Hive Issue Type: Improvement Components: Authentication Affects Versions: 2.1.0 Reporter: Illya Yalovyy Assignee: Illya Yalovyy Current implementation uses following algorithm: # For a given user find all groups that user is a member of. (A list of L= DAP groups is constructed as a result of that request) # Match this list of groups with provided group filter. =20 Time/Memory complexity of this approach is O(N) on client side, where N =E2= =80=93 is a number of groups the user has membership in. On a large directo= ry (800+ groups per user) we can observe up to 2x performance degradation a= nd failures because of size of LDAP response (LDAP: error code 4 - Sizelimi= t Exceeded). =20 Some Directory Services (Microsoft Active Directory for instance) provide a= virtual attribute for User Object that contains a list of groups that user= belongs to. This attribute can be used to quickly determine whether this u= ser passes or fails the group filter. =20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)