-
Notifications
You must be signed in to change notification settings - Fork 156
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
Support LDAP authentication with unauthorized reads #740
Conversation
faecd41
to
2452267
Compare
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.
Not bad, for first-time go code :) I will look some more tomorrow.
I wonder if there's a small ldap server we could spin up during an end-to-end test? https://github.com/bradleypeabody/godap might work.
* use LDAP fake server package * expose config from YAML function * update go repository and deps list
4ef6685
to
e2a1d74
Compare
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.
so I've fixed your remarks and added a end-to-end fake LDAP server test. But the remaining golangci
linter errors are beyond my knowledge to fix them by myself.
I have to admit that I simply copied the httpServer thing from an example ...
Sorry it took me longer than expected to get back to this. I should have some time to read through this while I'm travelling later this week. |
Hey @mostynb how are you doing? Might it be possible to find some time for this PR during your next trip? 😉 |
@mostynb I'm sorry to ask again for your time + help with this PR, it's been now in review since almost 2 months |
Sorry this took me so long. I landed a modified version of this in #768. Could you please try it out? Some of the bigger changes:
|
This PR is based on #101 and resolves #100
It provides unauthorized reads when using LDAP, config via command line args and minimal config file testing for the new LDAP section
This is my first GO thing ever, so it might not be perfect