Replies: 2 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
this is likely a configuration problem of yours. But there is virtually 0 chance of assessing it without you describing your integration parameters (and probaby you should raise your question and look at the documentation of FAB , because LDAP integration is provided by FAB and we have very little expertise here with that - we are using FAB "as is" in this case. I suggest you open discussion/issue (but with more details) in https://flask-appbuilder.readthedocs.io/en/latest/ |
Beta Was this translation helpful? Give feedback.
-
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_functionsrule.endpoint
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?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions