airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bolke de Bruin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AIRFLOW-927) LDAP authtorization: ldap3 doesn't understand anything coming from configuration file
Date Tue, 14 Mar 2017 19:31:41 GMT

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

Mime
View raw message