-
Notifications
You must be signed in to change notification settings - Fork 703
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
LDAP support #477
LDAP support #477
Conversation
There are some style errors causing the checks to fail: https://travis-ci.org/thelounge/lounge/jobs/143304208#L160 |
Tests are passing, please squash your commits [1] so we can keep a nice and concise git commit log. Other then that looks good to me :) [1] http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html |
Agreed for the squash. I'll try to give it a try and review later in the day. We've been a little bit behind PR's lately, sorry about the delays :/ This one proved kinda hard to test as nobody on the team knows LDAP, but with the resources shared on #170 it should be a lot easier. Thanks a lot for updating that old PR! |
This is a bit of a silly comment, but on top of the squash, something that bothers me a bit is the authorship change here. This is not a rebase, it's essentially a copy and paste, therefore completely shadowing @lindskogen's work/contribution. |
I have squashed my commits into one, but I am not sure how would I be able to keep the original commit. |
This is all set, changed the author to @lindskogen. |
Very nice of you, @thisisdarshan, thanks! |
Go ahead! 👍 |
} | ||
|
||
function ldapAuth(client, user, password, callback) { | ||
var bindDN = Helper.config.ldap.primaryKey + "=" + user + "," + Helper.config.ldap.baseDN; |
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.
I don't speak LDAP, but wouldn't the user here need to be escaped, for example if user
here is Max-P,dn=evil.max-p.me\0
?
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.
@lindskogen can you comment on this?
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.
Yeah, I guess that could be a problem
What is the status of this? We're hoping to use this soon |
@maxpoulin64 i have escaped the user - this will address your concern. |
Took a lot of work, but I think I finally got the thing to work! 🎉 👍 |
@thisisdarshan, @maxpoulin64 nice job guys! Is is ready for merge? 👍 |
Tested on our corporate ldap, works like a dream! |
Alright, I couldn't test this but @maxpoulin64 did plus apparently several folks here. I don't see anything that bugs me code-wise so... it's happeniiiing 🎉 |
LDAP support
This fixes a regression introduced by LDAP support addition (thelounge#477), which forces users to re-login when the server restarts. This was originally implemented in thelounge#370.
Implementing LDAP Support.
Rebase @lindskogen commit with master.