Need help setting up LLDAP for Jellyfin
# troubleshooting
j
Hi everyone, I have setup LLDAP for my homelab, and I've already configured mealie to work with it. But I can't make Jellyfin work it. I've tried this guide : https://github.com/lldap/lldap/blob/main/example_configs/jellyfin.md I've read this thread : https://discord.com/channels/898492935446876200/1108731875645730886 But nothing seems to work for me. I set up jellyfin_users and jellyfin_admin groups and my config follow the first guide. When I click on “Save and Test LDAP Server Settings” I got
Connect: Connect Error
(as in the pic) And the logs say that :
Copy code
[16:15:24] [WRN] [124] Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin: Ldap Test Failed to Connect or Bind to server
LdapException: Unable to connect to server ldap://lldap.lsarlinmagnus.fr:389 (91) Connect Error
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known
   at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch)
   at System.Net.Dns.<>c.<GetHostEntryOrAddressesCoreAsync>b__33_0(Object s, ValueStopwatch stopwatch)
   at System.Net.Dns.<>c__DisplayClass39_0`1.<RunAsync>b__0(Task <p0>, Object <p1>)
   at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Novell.Directory.Ldap.AsyncExtensions.ResultAndUnwrap[T](Task`1 task)
   at Novell.Directory.Ldap.Connection.Connect(String host, Int32 port, Int32 semaphoreId)
Do you guys have any idea ? Thank you a lot !
n
Here's a brand new thread for you! Please keep the discussion for this problem in this thread.
n
Hello! I would double check the host name, and check that it's accessible from the jellyfin container. The error is in the DNS, it can't find the host.
j
Thanks ! I double-checked the host name, it's not this… I've
docker exec -it jellyfin /bin/bash
and then
ldapsearch -x -b "dc=mydomain,dc=fr" -H ldap://lldap.mydomain.fr
and I got
ldap_bind: Naming violation (64) Missing DN value
. So I guess I can access my LLDAP from the Jellyfin container, can't I? 🤷‍♂️
n
Sounds like it. Are they in the same network?
j
I didn't use docker network, so I would say yes...
I'm sorry, I've wasted your time ! I will ask on r/jellyfin or something like that I thought it was an LDAP misunderstanding from me Thanks a lot !
p
I'm still getting reacquainted with LDAP, but I'm pretty sure your bind should be
uid=<bindUser>,ou=people,dc=mydomain,dc=fr
rather than just
-b "dc=mydomain,dc=fr"
-see if that fixes it?