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 12CB2200BB8 for ; Sat, 12 Nov 2016 22:00:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 114C8160B00; Sat, 12 Nov 2016 21:00:03 +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 5A4F8160AF5 for ; Sat, 12 Nov 2016 22:00:02 +0100 (CET) Received: (qmail 8331 invoked by uid 500); 12 Nov 2016 21:00:01 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 8321 invoked by uid 99); 12 Nov 2016 21:00:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2016 21:00:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E50BF1806EF for ; Sat, 12 Nov 2016 21:00:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id t2J2TqywcK7r for ; Sat, 12 Nov 2016 21:00:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 5E7A55F254 for ; Sat, 12 Nov 2016 20:59:59 +0000 (UTC) Received: (qmail 8140 invoked by uid 99); 12 Nov 2016 20:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2016 20:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6DDDD2C0087 for ; Sat, 12 Nov 2016 20:59:58 +0000 (UTC) Date: Sat, 12 Nov 2016 20:59:58 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-623) Ldap Attributes not always a "list" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 12 Nov 2016 21:00:03 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15660279#comment-15660279 ] ASF subversion and git services commented on AIRFLOW-623: --------------------------------------------------------- Commit 6adb15ca0cdb1f065f55c5061f4695ebb2e56852 in incubator-airflow's branch refs/heads/master from [~bblanton] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=6adb15c ] [AIRFLOW-623] LDAP attributes not always a list Sometimes the search attributes that come back are not a list always, but a string, so we need to check for an exact match as well as if it's a list Closes #1876 from wyndhblb/master > Ldap Attributes not always a "list" > ----------------------------------- > > Key: AIRFLOW-623 > URL: https://issues.apache.org/jira/browse/AIRFLOW-623 > Project: Apache Airflow > Issue Type: Bug > Components: contrib > Affects Versions: Airflow 1.7.1 > Environment: Linux + Active Directory > Reporter: Bo Blanton > Fix For: Airflow 1.7.1 > > > in the LDAP auth module > `group_contains_user` checks for `resp['attributes'].get(user_name_attr)[0] == username` > Some Ldaps apparently have this as a simple string > `resp['attributes'].get(user_name_attr) == username` > also should be checked -- This message was sent by Atlassian JIRA (v6.3.4#6332)