-
Notifications
You must be signed in to change notification settings - Fork 18
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
reason to do search before auth. #27
Comments
Hi, I think it was done like that because admin is the one who is performing search. We first seach in ldap to filter a user. Then we use that user (its name) together with password on cqlsh to try to authenticate. For that reason, that we search first, I think we need somebody with admin rights who is able to scan ldap tree. It is not automatically given that you can scan the tree under every "ordinary" user. But admin can. |
yes, exactly. I understand that we need admin to manipulate with |
Not sure to be honest, I ll try it when I have time. Thanks for the idea. |
below simple patch to test idea, now in logs only what I expected. Hope it helps. May be it reasonable to add some additional config option to keep compatibility. Some people could really have complicated LDAP tree, but mostly have simple.
|
A property in config to turn this on would be nice. Feel free to complete the patch with introducing a flag so we do not need to search. |
Please answer these questions before submitting your issue. Thanks!
What version of Cassandra are you using?
3.11
What version of Cassandra LDAP are you using?
v3.11.11-1.0.0
What LDAP server you are using? Any specifics?
osixia/docker-openldap
What did you do?
simple authentication for user
test
What did you expect to see?
in ldap server logs I expect to see only this logs
What did you see instead?
before expected logs I see this logs
I suspect this is related to this line in README:
My question:
admin
user beforetest
user authentication?For me it looks like an additional load to ldap server and could have some hidden security issue.
The text was updated successfully, but these errors were encountered: