Skip to content
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

Having difficulty configuring LDAP #334

Closed
mogthesprog opened this issue Apr 12, 2016 · 8 comments
Closed

Having difficulty configuring LDAP #334

mogthesprog opened this issue Apr 12, 2016 · 8 comments

Comments

@mogthesprog
Copy link

Hi,

I've recently installed caravel, love the interface. And on top of druid it's sublime.

I'm trying to sort out LDAP authentication for Caravel and I get the following error when i change the AUTH_TYPE declaration in my config.

NameError: name 'AUTH_LDAP' is not defined

any ideas? I'm guessing I'm doing something wrong, had a google around and can't find any documentation on it either.

Any help would be great! :)

Cheers

@andrewhn
Copy link
Contributor

It lives in the flask appbuilder package, you need to import it from there

@mogthesprog
Copy link
Author

Ah nice one, that's great. Is there any documentation for configuring caravel other the source?

We can close this now. Thanks for your help.

@mogthesprog
Copy link
Author

Hi, having digged in the flask appl builder configs, i'm still having trouble getting this working. Here is my current configuration, for AD:

DEBUG = True

AUTH_TYPE = AUTH_LDAP

#AUTH_USER_REGISTRATION = True
AUTH_LDAP_SERVER = "ldap://us-lou-svv-1101.domain.co.uk"
#AUTH_LDAP_BIND_USER = "gblsci_ldapsrch@domain.co.uk"
AUTH_LDAP_SEARCH = "dc=domain,dc=co,dc=uk"
AUTH_LDAP_BIND_USER = "CN= LDAP Search,OU=Tasks,OU=Administrative,OU=Users,OU=UK,DC=domain,DC=co,DC=uk"
#UTH_LDAP_BIND_USER = "cn=gblsci_ldapsrch,dc=domain,dc=co,dc=uk"
AUTH_LDAP_BIND_PASSWORD = "Password"
AUTH_LDAP_UID = "sAMAccountName"

Any ideas?

@andrewhn
Copy link
Contributor

andrewhn commented Apr 25, 2016

Can you try creating an account manually and logging in? Make sure you give appropriate permissions e.g. Gamma.

I am unable to auto-create accounts using LDAP login, although authentication works correctly.

@xrmx
Copy link
Contributor

xrmx commented Aug 8, 2016

Looks like the same of #443, or a flask-appbuilder issue anyway thus closing.

@xrmx xrmx closed this as completed Aug 8, 2016
@jlkokko
Copy link

jlkokko commented Sep 19, 2017

Since this is the first entry that comes up for Superset & LDAP, I'd like to point out for others that the proper setting for account name is AUTH_LDAP_UID_FIELD and not AUTH_LDAP_UID as shown above.

@yaobukeji123
Copy link

hello ,can anyone help me ? this is a part of my superset_config.py about ldap

AUTH_TYPE = 2
AUTH_LDAP_SERVER = "ldap://xxx.xxx.xxx.xxx:389"
AUTH_LDAP_USE_TLS = False
AUTH_LDAP_BIND_USER = "bind-user-to-ldap"
AUTH_LDAP_BIND_PASSWORD = "password"
AUTH_LDAP_APPEND_DOMAIN ="hhh.com"
AUTH_LDAP_UID_FIELD = "userPrincipalName"
AUTH_LDAP_SEARCH ="OU=ee,OU=dd,DC=cc,DC=bb,DC=aaa"

but it can't login in superset sucessfully!
I take the way of username and password to make ldap access ...
help me ,thank you ~

@yaobukeji123
Copy link

I have solved this question when l use sAMAccountName instead of userPrincipalName. problem appears beacuse of AUTH_LDAP_APPEND_DOMAIN,it will repeatly append to url twice when there is twice binds.thanks

zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.192 to 0.0.193.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](airbnb/visx@v0.0.192...v0.0.193)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.192 to 0.0.193.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](airbnb/visx@v0.0.192...v0.0.193)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.192 to 0.0.193.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](airbnb/visx@v0.0.192...v0.0.193)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.192 to 0.0.193.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](airbnb/visx@v0.0.192...v0.0.193)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants