jellyfin / jellyfin-plugin-ldapauth

LDAP Authentication for Jellyfin
https://jellyfin.org
MIT License
117 stars 33 forks source link

LDAP Filter #144

Open julien3400 opened 1 year ago

julien3400 commented 1 year ago

Hello can someone help me I am on openLdap the server and reachable but I do not understand why my filters do not work it puts me Found 0 user(s), 0 admin(s) with this filter the (memberOf=CN=jellyfin_users,ou=groups,,DC=home, DC=local) and admin filter (memberOf=cn=jellyfin_admins,ou=groups,dc=home,dc=local)

Thanks for your help

Roncarlos commented 1 year ago

image image image

Is this normal behaviour? Looks like it's related to the problem in this issue.

DarkVirtue commented 1 year ago

OS: Debian 12 Jellyfin version: 10.8.10 via official Docker container Plugin version: 17.0.0.0

I've also just run into this issue. My LDAP implementation is brand new (via authentik), so this is the first time I'm setting up the LDAP plugin.

The server settings find the expected number of entities (33, in my case). When I try to test filters, however, it always finds 0 users, 0 admins. If I try the same filters (copy-pasted) on the host server's CLI via ldapsearch, I get the expected user results (3 users, 2 admins). This is also true for the filter I copied from the LDAP outpost's query log.

This isn't just a display bug - if I try to actually log in using LDAP auth, the login fails even though the LDAP user exists and the credentials are correct. I am not currently using certs/LDAPS for this connection.

Roncarlos commented 1 year ago

I'm also using Authentik. (It's not working on either version 15 or 16 of the plugin) so it's maybe related to the implementation of LDAP by Authentik?

DarkVirtue commented 1 year ago

@Roncarlos Yes, that seems to be the case. authentik version 2023.6.1 just released and included a bunch of fixes for LDAP. Jellyfin LDAP is getting all the correct results after I updated authentik.