You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2017/03/14 19:31:41 UTC

[jira] [Resolved] (AIRFLOW-927) LDAP authtorization: ldap3 doesn't understand anything coming from configuration file

     [ https://issues.apache.org/jira/browse/AIRFLOW-927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bolke de Bruin resolved AIRFLOW-927.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.8.0

> LDAP authtorization: ldap3 doesn't understand anything coming from configuration file
> -------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-927
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-927
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: Airflow 1.8, Airflow 1.7.1.3
>            Reporter: Marcelo G. Almiron
>             Fix For: 1.8.0
>
>
> Function `get_ldap_connection` on airflow/contrib/auth/backends/ldap_auth.py does not understand 'future.types.newstr.newstr' objects coming from `configuration.get("ldap", "bind_user")` and `configuration.get("ldap", "bind_password")`.
> The same can be observed in the `group_contains_user` function. Here the `search` function does not consider the arguments `configuration.get("ldap", "basedn")`, `configuration.get("ldap", "superuser_filter")`, not `configuration.get("ldap", "user_name_attr")` as expected. 
> A quick fix would be to convert all these values to `str` as soon as they are read from the configuration file, but this is not a definitive fix.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)