Conversation
TODO: Make the styles match the rest of the page and move them out of inline.
|
Heya! Thanks a bunch for picking this up, I meant to fix that linting error but life got in the way. I've done a very informal glance over the code and everything looked pretty good, but I just had two questions/comments. The first is on: + //nolint:gochecknoglobals
var ldapStore = make(LDAPStore)This line is the reason that #346 wasn't getting merged, - if doesLDAPUserExist(username, config, l) && !isAdmin {
+ if !doesLDAPUserExist(username, config, l) {Does this work if someone wants to configure two different filters for admin and user accounts? I know it seems like an edge case, but given how different each LDAP server is configured it didn't seem like that bad of an idea when I was originally writing that code. Just out of curiosity, how has it been working for you over the past couple of weeks? |
7decea6 to
971d22d
Compare
|
Answering all of these in reverse order :) Yes, it has been working great! There are still some things I'd like to see (like song play counts etc.) but it's not of concern to this PR. New users get their accounts auto-created created in gonic when they log in using a subsonic client with LDAP credentials which is really convenient - and getting to the next thing - it's possible due to the line change you have mentioned. I've tested it and it works for having a separate user and admin filter, although there isn't the nice quality-of-life capability of checking/changing admin privileges each time you log in - it gets set when you register. As for the linting error, I'm not much of a Go developer, but I'll try to move things to |
|
+1 for this!! LDAP support would really complete the usability of this as a service! Look forward to seeing where this goes. |
|
Sorry for the delay, lots of stuff has been happening lately. I hope this is how you have envisioned moving |
|
Loving the work you've done @yaemiku. Im no expert, but from the env documentation you've included in your fork, and doing a bit of diving through the logs, it looks like the bind user is looked up using a hardcoded uid=, is it possible to make this part of the variable? my workflow uses cn= but Im unable to bind with it as its automatically inserting uid= beforehand (uid=cn=myuser)... Would love to get this up and running! :) |
|
Added another flag to change that behavior. Let's for example say that you have a user Hope that helps :) |
|
Thank you for the quick fix! Seems to be working now! Now to sort out my syntax for the admin filters! Much appreciated! |
66c0eb5 to
b2674f8
Compare
I have come across PR #346 while looking for a way to have a music server that integrates with LDAP. I managed to get it working for me. I have