https://github.com/lldap/lldap logo
HackinDoge - Anyone successfully using LLDAP wi...
# troubleshooting
h
Anyone successfully using LLDAP with Jellyfin? I cannot for the life of me get it to work
Copy code
[16:14:36] [WRN] [44] Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin: Ldap Test Failed to Connect or Bind to server
2025-06-25 16:14:36.887558+00:00LdapException: Unable to connect to server lldap:3890 (91) Connect Error
2025-06-25 16:14:36.887585+00:00System.Net.Sockets.SocketException (111): Connection refused
2025-06-25 16:14:36.887604+00:00at Novell.Directory.Ldap.AsyncExtensions.WaitAndUnwrap(Task task, Int32 timeout)
2025-06-25 16:14:36.887687+00:00at Novell.Directory.Ldap.Connection.Connect(String host, Int32 port, Int32 semaphoreId)
This is the error I get when running "Save and Test LDAP Server Settings" in Jellyfin. To me its not a container network issue because I can ping the lldap container from the jellyfin container... What's weird is the exact same connection details I'm trying to use with Jellyfin work just fine with Open WebUI...
t
Maybe try a nmap scan on port 3890 from the jellyfin container?
h
Thanks for the response. I’ll check to see if the Jellyfin container even includes nmap I did curl lldap:3890 from both the OpenWebUI and Jellyfin containers and both returned the same - “Empty response from server”, which I guess is to be expected without the right connections params
I guess what I’m trying to determine is - is this a Jellyfin LDAP plugin issue, an LLDAP issue, or a skill issue?
t
xD
n
Do you get a message in the LLDAP logs when you try to log in from jellyfin?
When you curl, check the http response code
You can also try ldapsearch
h
I can’t tell, I think the OpenWebUI connection might be polluting the logs so will disconnect it first then try and see
ldapsearch isn’t in the Jellyfin container sadly
t
apt-get install -y ldap-utils
h
If I don’t get any logs when attempting to “test server connection” from Jellyfin, what could it be?? It’s weird bc I can ping the lldap container from the Jellyfin container so to me it isn’t a connectivity issue per se?
t
I'd first try the ldapsearch to verify your lldap instance is not the issue
h
Will do, appreciate both your replies and time
t
🙂
n
If you don't get logs, it means your query is not reaching LLDAP
j
A connection refused sounds to me, like it's not reaching the LLDAP instance.
n
Check that the port is correct, that the host is the right one, that they're on the same network and so on
h
Copy code
# ldapsearch -H ldap://lldap:3890 -D "uid=_readonly,ou=people,dc=idm,dc=redacted,dc=red" -b "ou=people,dc=idm,dc=redacted,dc=red" -W "(objectClass=user)"    
Enter LDAP Password: 
# extended LDIF
#
# LDAPv3
# base <ou=people,dc=idm,dc=redacted,dc=red> with scope subtree
# filter: (objectClass=user)
# requesting: ALL
#

# search result
search: 2
result: 0 Success
control: 1.2.840.113556.1.4.319 false MAUCAQAEAA==
pagedresults: cookie=

# numResponses: 1
From within the jellyfin container...
n
How did you configure jellyfin, and are there any relevant logs?
Relevant Jellyfin log is at the beginning of the thread
n
Huh, well you've got me stumped... The ldapsearch command looks to do functionally the same thing as what you've configured jellyfin to do, so I'm not sure why one works but not the other...
h
Glad I’m not totally crazy lmao This is my first foray into LDAP so I barely know what I’m doing and wasn’t sure if I made a newbie mistake, or if there was a known issue people knew about
The fact that these same connection details work with Open WebUI is also weird
n
And you ran ldapsearch from within the jellyfin container?
h
Correct, had to apt-get it as per the advice in this thread
j
Have you tried with an IP address instead of the lldap hostname? Maybe they somehow resolve differently. Could be jellyfin gets an ipv6 address that doesn’t work
Ensure the ip address you find works with ldapsearch of course
n
If it's docker, an IP address would be unwieldy, but I guess good for debugging
h
It’s Docker 💀 I was thinking the same
I can try though!!
j
It’s not uncommon to both have an ipv6 and ipv4 address for localhost in /etc/hosts, which can give problems
n
Domain names are supposed to be the way to go with docker, but yeah...
j
Yeah, but if nothing makes sense, rule out dns, has saved me countless times 🙂
h
Hear hear 😂
n
Did that work?!
h
Oop sorry have yet to try it, was just agreeing with them I’ll keep you posted, thanks all again for your eyes and time! 🙏
I’LL BE DAMNED IT DID WORK LMAO
So I guess… I should probably disable IPv6 on one or both ends…? Definitely shouldn’t be hard coding or keeping track of Docker IPs I’d think
Why would Open WebUI work with just the hostname?? Is it that it handles IPv6 better? ie would love to know if this needs to be a bug report on the Jellyfin side, would love to be able to just plug n play like with Open WebUI
n
I think jellyfin will redirect you to their LDAP library, but it's worth a try
j
it's not certain it's because of IPv6, but they resolve differently then, it seems
maybe check whats in /etc/hosts in the container
h
Just to see, I recreated the container net with
--ipv6=false
and lo and behold, Jellyfin connects with just the lldap container hostname now
Now that I know root cause, I was able to search around and I guess this is a known issue? https://github.com/jellyfin/jellyfin-plugin-ldapauth/issues/125
j
nice 🙂
yeah, it's not uncommon, I generally disable IPv6 entirely on servers I manage, unfortunately (also aren't ipv6 reachable anyway)
t
Ipv6 could've been so great if it just only expanded the amount of usable addresses:,)
j
yeah