-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Problems to authenticate using openldap #321
Comments
Can you upgrade flask-appbuilder to version 1.6.1 and run the test again, and send me logs once more? |
Hi @dpgaspar! |
Ok, no login failed message, i'll run some tests, could you send me your config.py (AUTH_LDAP* settings). |
My tests went fine with OpenLDAP::
Looks like f.a.b. was able to catch the user vinicius.dutra@XXXX.XXXX, do you have this user registered on the database with the exact same username ? |
@dpgaspar, the user is properly registered on LDAP! |
Yes, i was able to login on the UI, with test user (you saw on the logs) and other test users like 'dpgaspar'. Can you try creating a test user without the @ just the . Try to reproduce my test case please. |
@dpgaspar Did it, but results were the same. Couldn't log in on UI. |
@dpgaspar Does the LDAP have to be configured in a way in particular? |
I just created a vagrant box using https://github.com/cforcey/vagrant_ubuntu_openldap My config for tests: AUTH_TYPE = AUTH_LDAP First of course i've added a test user on F.A.B. The only diference i can see is the AUTH_LDAP_BIND_USER, i'm using CN and your using UID. Change this, make some tests, and send me the logs, can you send something more extended? after GET /login/ HTTP ... You can use this for tests also: import ldap
con = ldap.initialize("ldap://ldap-somewhere.com")
con.set_option(ldap.OPT_REFERRALS, 0)
con.bind_s('caravel@yourdomain.local', 'password')
user = con.search_s('dc=domain,dc=local',ldap.SCOPE_SUBTREE, "userPrincipalName=test@yourdomain.local",
['givenName','sn','mail'])
print user[0][0] |
Any luck? |
Hi @dpgaspar, Unfortunately I had not! Sorry for responding so late! |
Ho! i thought you had registered the user on flask-appbuilder first! I said that "First of course i've added a test user on F.A.B.". We were not understanding each other :) You've got it working, great! I'll close this one. |
Hi everyone!
I'm new to Caravel and made the necessary changes to bind to LDAP. I'm using OpenLDAP.
According to the app log the changes are ok, but users can't login at the front end.
Any help?
Thanks in advance
![ldap-problem](https://cloud.githubusercontent.com/assets/6311982/15117824/c2868108-15df-11e6-916f-9e8b9d4c03bb.png)
![ldap-problem](https://cloud.githubusercontent.com/assets/6311982/15086197/7961c4c8-13b5-11e6-8f3f-da51d7d75dce.png)
The text was updated successfully, but these errors were encountered: