-
Notifications
You must be signed in to change notification settings - Fork 30
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
updated the ldap bind functions to provide for anonymous binds #177
Conversation
Thanks for the PR! Do you think you could build an integration test case? I could probably help out with it later too. |
Sorry, I'm not quite sure how to do that? This is my first time contributing to open source and I'd love any guidance! |
Just made some changes to make it easier. If you're more familiar than I am with ldap, you can add an ldif file to the Once that's working, you'll need to create a new configuration to attempt anon-binding. The easiest way would be to copy From there you can do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution and congrats on your first open source experience! I've provided some feedback that should fix a bug as well as make it easier to maintain. If you have any questions, I'm happy to help out.
Okay got it let me work on the test (and fix non-idiomatic code: yes I was lazy earlier). Re anon bind: in all my tests (not just with this library but other services I'm working on) I didn't necessarily have to bind to empty strings and in fact on the Rust library I ran into some issues binding with empty strings. I will try to see if I can bottom this out. Thanks for helping a first timer out!! |
Hi! I've added a new test (itest-anon) in the makefile and the tests appears to run successfully. I've also updated fixed the non-idiomatic pattern and added errors for invalid authentication (username but no pw and vice versa). I'm not sure if i have correctly pushed it though? Edit :I'm not sure how to push the newly updated branch up... any guidance would be very helpful! |
Thanks for your contribution! I ran into itest issues relating to the ldap image that I was using, so I switched images and then had to rebase your change on top as well. The new image allows anon by default, simplifying things a lot too. |
Addresses this request for anonymous binds