pat-s opened a new issue #11436:
URL: https://github.com/apache/airflow/issues/11436


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the 
following questions.
   Don't worry if they're not all applicable; just try to include what you can 
:-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the 
context.
   
   -->
   
   **Apache Airflow version**: 1.10.12
   
   **Environment**:
   
   - **Others**: Docker
   
   **What happened**:
   
   Trying to run LDAP login with v1.10.12 via the official `apache/airflow` 
Docker image.
   I manually added the python `ldap3` module via `pip3 install --user ldap3`. 
Otherwise I get complaints that this module is missing.
   
   Then, when starting the webserver, I get 
   
   ```
   airflow Webserver
   
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 26, in <module>
       from airflow.bin.cli import CLIFactory
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/bin/cli.py", line 93, 
in <module>
       api.load_auth()
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/api/__init__.py", 
line 66, in load_auth
       api_auth.client_auth = deprecated('use CLIENT_AUTH', 
api_auth.CLIENT_AUTH)
   AttributeError: module 'airflow.contrib.auth.backends.ldap_auth' has no 
attribute 'CLIENT_AUTH'
   ``` 
   
   Seems related to #4343 
   
   **What you expected to happen**:
   
   A normal startup of `airflow Webserver`.
   Looks like the patch from #4343 needs also to be applied to the LDAP backend?
   
   **How to reproduce it**:
   
   Here's the Dockerfile:
   
   ```
   FROM apache/airflow:1.10.12-python3.6
   ARG ADDITIONAL_PYTHON_DEPS="ldap3"
   RUN if [[ -n "${ADDITIONAL_PYTHON_DEPS}" ]]; then \
           pip3 install --user ${ADDITIONAL_PYTHON_DEPS}; \
       fi
   ``` 
   
   `entrypoint.sh` 
   
   ```
   #!/usr/bin/env bash
   airflow initdb
   airflow webserver
   exec airflow "$@"
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to