-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot setup ldap with the error of 'Can't contact LDAP server' #779
Comments
I have copy the code in https://github.com/dpgaspar/Flask-AppBuilder/blob/74f37e21a3c9c7ca7fb3e56f73759e3eaa2ead6b/flask_appbuilder/security/manager.py#L938 , and I found the auth has no wrong. when using startls auth method, the code failed at
however, when I executed the same code in other pods or on the other host directly, it works with no error. |
the problem has no progress yet. |
@zeddit have you raised an issue with https://github.com/dpgaspar/Flask-AppBuilder? |
@thesuperzapper not yet. |
This issue has been automatically marked as stale because it has not had activity in 60 days. Thank you for your contributions. Issues never become stale if any of the following is true:
|
Hello! @zeddit facing with same problem, and when i set AUTH_LDAP_ALLOW_SELF_SIGNED = True, and use ldaps url to AD, it working. |
This helped me resolve the same issue in Superset after upgrading from 2.0.0 to 3.1.1, since Airflow and Superset both use Flask-AppBuilder for the LDAP authentication, and I was getting the same error before:
|
@zeddit did you solve this problem? |
Checks
User-Community Airflow Helm Chart
.Chart Version
8.8.0
Kubernetes Version
Helm Version
Description
I was trying to setup ldap but failed.
The web UI refresh to the login page with empty user and password text after I click
sign in
.I have tried both method to integrate LDAP followed the instruction here https://flask-appbuilder.readthedocs.io/en/latest/security.html#authentication-ldap
The first one is configured with
STARTTLS
:and the logs from airflow-web and ldap server are shown below:
it seems the ldap server accepted the connection but closed immediately, and airflow-web thought that it haven't connect with ldap server.
The second method is configured with LDAP over TLS (ldaps):
and logs from ldap and airflow-web are listed below:
similarly, airflow connect with ldap but do no search query, and user could not login to the airflow.
ldap server is correct, because other system like grafana works fine.
how could the bug comes from, and how to fix it. great thanks.
Relevant Logs
No response
Custom Helm Values
No response
The text was updated successfully, but these errors were encountered: