airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-623) Ldap Attributes not always a "list"
Date Sat, 12 Nov 2016 20:59:58 GMT

    [ 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)

Mime
View raw message