Superset docker and LDAP Integration | Unable to get the next page after authentication with LDAP #30018
Replies: 1 comment 2 replies
-
Hey there, @quadrakpp! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this LDAP integration issue together! I found a similar closed issue that might help you resolve the "Invalid login. Please try again." error when integrating LDAP with Superset Docker:
WTF_CSRF_ENABLED = False
TALISMAN_ENABLED = False
SESSION_COOKIE_SAMESITE = None
SESSION_COOKIE_SECURE = False
SESSION_COOKIE_HTTPONLY = False However, be cautious as disabling these security measures may make your instance more insecure. Adjust these settings appropriately for a production environment [1]. To ensure your LDAP configuration is correct, verify the following key configurations in your
Here is an example configuration for # LDAP Configuration
AUTH_TYPE = AUTH_LDAP
AUTH_LDAP_SERVER = "ldap://your-ldap-server"
AUTH_LDAP_USE_TLS = False
AUTH_LDAP_SEARCH = "ou=users,dc=example,dc=com"
AUTH_LDAP_BIND_USER = "cn=admin,dc=example,dc=com"
AUTH_LDAP_BIND_PASSWORD = "your_bind_password"
AUTH_LDAP_UID_FIELD = "uid"
AUTH_LDAP_FIRSTNAME_FIELD = "givenName"
AUTH_LDAP_LASTNAME_FIELD = "sn"
AUTH_LDAP_EMAIL_FIELD = "mail"
# Mapping LDAP groups to Superset roles
AUTH_ROLES_MAPPING = {
"cn=superset_users,ou=groups,dc=example,dc=com": ["Gamma", "Alpha"],
"cn=superset_admins,ou=groups,dc=example,dc=com": ["Admin"],
}
# Sync roles at login
AUTH_ROLES_SYNC_AT_LOGIN = True Ensure these configurations are correctly set in your |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'am able to connect to superset with admin/admin (AUTH_DB).
But when I tried to integrate LDAP, I'm getting "Invalid login. Please try again." feedback but nothing wrong is not printed in the logs.
When I started the integration I was getting below errors in the logs regarding the LDAP config but I fixed them already :
PS: I'm doing my config directly into config.py file because when I put the same config inside of /app/docker/pythonpath_dev/superset_config.py file, the container is getting restarted without ending.
Beta Was this translation helpful? Give feedback.
All reactions