Cannot connect to LDAP server #913
Unanswered
bharu295
asked this question in
Questions & Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Team , When i try to configure LDAP with below parameters i am getting errro .
Error :- [2025-03-25T18:56:24.149+0000] {override.py:2048} ERROR - {'result': -1, 'desc': "Can't contact LDAP server", 'ctrls': [], 'info': '(unknown error code)'}
webserver_config.py values
from airflow import configuration as conf
from flask_appbuilder.security.manager import AUTH_LDAP
AUTH_TYPE = AUTH_LDAP
AUTH_LDAP_SERVER = "ldaps://xxx.com:636"
AUTH_LDAP_USE_TLS = False
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "Public"
AUTH_LDAP_FIRSTNAME_FIELD = "givenName"
AUTH_LDAP_LASTNAME_FIELD = "sn"
AUTH_LDAP_EMAIL_FIELD = "mail"
AUTH_LDAP_SEARCH = "OU=Service Accounts,OU=,DC=,DC=,DC=" # the LDAP search base
AUTH_LDAP_UID_FIELD = "sAMAccountName" # the username field
AUTH_LDAP_BIND_USER = "CN=,OU=Service Accounts,OU=,DC=,DC=,DC=" # the special bind username for search
AUTH_LDAP_BIND_PASSWORD = "cccc" # the special bind password for search
AUTH_ROLES_MAPPING = {
"CN=,OU=groups,OU=,OU=CCI,DC=,DC=,DC=com": ["User"],
"CN=,OU=groups,OU=,OU=CCI,DC=,DC=,DC=com": ["Admin"],
}
AUTH_LDAP_GROUP_FIELD = "memberOf"
AUTH_ROLES_SYNC_AT_LOGIN = True
PERMANENT_SESSION_LIFETIME = 1800
There is no firewall connection or anyother issue connecting to ldap from the netwrok . How can i trouble shoot it ?
Beta Was this translation helpful? Give feedback.
All reactions