You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/02/24 09:39:38 UTC
[GitHub] [superset] aakanshajecrc opened a new issue #18917: Issue when Configuring superset (config.py) with LDAP
aakanshajecrc opened a new issue #18917:
URL: https://github.com/apache/superset/issues/18917
A clear and concise description of what the bug is.
I am trying to do authentication:LDAP in superset using the guide at:
https://flask-appbuilder.readthedocs.io/en/latest/security.html
Please note that I am attempting it on Ubuntu 20.04 VMs behind a proxy. And I am running superset on http://localhost:9000/(in dev mode)
After following all the steps successfully when I run it on 9000 port
I got this error: Invalid login. Please try again
#### How to reproduce the bug
1 Clone Superset repository
2 cd superset
3 docker-compose up
4 in another terminal(cd superset/superset-frontend)
5 npm run dev-server
### Expected results
Login Successfully.
### Actual results
Invalid login. Please try again
modify config.py
from flask_appbuilder.security.manager import AUTH_LDAP
AUTH_ROLE_ADMIN = 'Admin'
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "Public"
AUTH_TYPE = 2
AUTH_LDAP_SERVER = "ldap://ldapserver.new"
AUTH_LDAP_USE_TLS = False
AUTH_LDAP_SEARCH = "cn=rrscw,ou=users,dc=ldapserver,dc=new"
AUTH_LDAP_UID_FIELD = "uid"
AUTH_LDAP_BIND_USER = "uid=rrscw,ou=users,dc=ldapserver,dc=new"
AUTH_LDAP_BIND_PASSWORD = "rrscw"
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
OS: Ubuntu Server 20.04
Python on VM: 3.8.10
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [ ] I have reproduced the issue with at least the latest released version of superset.
- [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org