You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/10 08:27:23 UTC

[GitHub] [airflow] suhailsid opened a new issue, #25631: LDAP Integration not working

suhailsid opened a new issue, #25631:
URL: https://github.com/apache/airflow/issues/25631

   ### Apache Airflow version
   
   Other Airflow 2 version
   
   ### What happened
   
   we have integrated ldap configuration in "webserver_config.py" as per the documentation, but when I am trying to login it throwing error like below .
   
    Something bad has happened.
   Please consider letting us know by creating a bug report using GitHub.
   
   Python version: 3.8.10
   Airflow version: 2.1.2
   Node: airflow-webserver-9447bf997-vpd2j
   -------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask_appbuilder/security/views.py", line 528, in login
       user = self.appbuilder.sm.auth_user_ldap(
     File "/home/airflow/.local/lib/python3.8/site-packages/flask_appbuilder/security/manager.py", line 1038, in auth_user_ldap
       ldap.set_option(ldap.OPT_X_TLS_NEWCTX, 0)
     File "/home/airflow/.local/lib/python3.8/site-packages/ldap/functions.py", line 115, in set_option
       return _ldap_function_call(None,_ldap.set_option,option,invalue)
     File "/home/airflow/.local/lib/python3.8/site-packages/ldap/functions.py", line 55, in _ldap_function_call
       result = func(*args,**kwargs)
   ValueError: option error
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   using airflow docker image 2.1.2-python.3.8
   
   ### Versions of Apache Airflow Providers
   
   airflow 2.1.2
   
   ### Deployment
   
   Other Docker-based deployment
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed issue #25631: LDAP Integration not working

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #25631: LDAP Integration not working 
URL: https://github.com/apache/airflow/issues/25631


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #25631: LDAP Integration not working

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #25631:
URL: https://github.com/apache/airflow/issues/25631#issuecomment-1210335851

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org