You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/12/25 12:28:01 UTC
[jira] [Commented] (AIRFLOW-5261) RBAC can't use LDAP --
'python-ldap' package is missing from setup.py
[ https://issues.apache.org/jira/browse/AIRFLOW-5261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254817#comment-17254817 ]
ASF subversion and git services commented on AIRFLOW-5261:
----------------------------------------------------------
Commit 0c9a50ad9adeee56bc6940621f02581c86fadc85 in airflow's branch refs/heads/adds-ldap-provider-missing-dependency from Jarek Potiuk
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=0c9a50a ]
Adds missing LDAP "extra" dependencies to ldap provider.
It seems that for quite some time (1.10.4) the "ldap" extra
missed python-ldap dependency.
https://issues.apache.org/jira/browse/AIRFLOW-5261
Also LDAP seems to be popular enough to be added as default
extra in the production image.
Fixes #13306
> RBAC can't use LDAP -- 'python-ldap' package is missing from setup.py
> ---------------------------------------------------------------------
>
> Key: AIRFLOW-5261
> URL: https://issues.apache.org/jira/browse/AIRFLOW-5261
> Project: Apache Airflow
> Issue Type: Bug
> Components: webserver
> Affects Versions: 1.10.4
> Reporter: Mathew Wicks
> Priority: Major
>
> Currently with airflow 1.10.4, if you setup a clean python 3 environment, and install airflow with:
> {code:python}
> pip install airflow[ldap]
> {code}
> You will be missing a required package for LDAP to work with the new RBAC, giving:
> {code:java}
> Traceback (most recent call last):
> File "PYTHON_HOME/lib/python3.6/site-packages/flask_appbuilder/security/manager.py", line 725, in auth_user_ldap
> ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, self.auth_ldap_tls_cacertfile)
> ModuleNotFoundError: No module named 'ldap'
> {code}
> This is because the 'ldap' tag in setup.py doesn't include the 'python-ldap' package, which is needed for 'import ldap' to succeed.
> The change would need to be made here: [https://github.com/apache/airflow/blob/1.10.4/setup.py#L229]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)