https://github.com/lldap/lldap logo
Flying Phoenix - Hello, I’m new to LDAP and nee...
# troubleshooting
f
Hello, I’m new to LDAP and need a bit of help. I installed lldap in Docker and got the basic settings configured, but I need some context on how to properly create new accounts and how to secure the server. Does using an Nginx reverse proxy with a Let’s Encrypt certificate help for securing it? I also tried to create an account with: uid=testuser,ou=people,dc=aclab,dc=lan but I get this error:
Copy code
Error: Error getting user details: Errors: [user:2:3: Entity not found: uid=testuser,ou=people,dc=aclab,dc=lan]
I’d appreciate some help since I can’t find useful information on the internet.
a
message has been deleted
t
Welcome! In what sense do you need to 'secure' the server? Were you planning on exposing it to the outside world?
p
I have used Caddy to provide TLS termination (https) for the frontend, but the port that is used to get data from i dont expose outside of localhost
f
I’m running this in my homelab, mostly for learning and tinkering. I’ve been playing around with different services, like a mail server I run behind a VPN, Jellyfin, and a couple of others, and I’d like to experiment with using LDAP as a central account system. So it’s not production-critical, just a way to learn how the LDAP protocol works and how to hook multiple services into it.
p
I then use authelia to connect to lldap and provide oidc to other services
f
My mail server is publicly reachable, so I need to ensure LDAP traffic is encrypted and safe
That’s a good point, but not all services support OIDC, for example, Jellyfin.
p
That is true, some of them support user headers though that authelia/caddy can provide to identify the user after they have authenticated
t
Okay so if you want the admin panel exposed to the world, nginx as rev proxy is definitely a good idea. For the ldap ssl setup you can either go with the LLDAP built-in way where you just give the server a cert in the config, or you can go the route of letting nginx terminate the connection, although I'm not entirely sure what you'd need to do for that
For the error: where do you see this error?
If anything about this is unclear, please say so btw:)
f
Regarding the error, I figured out what I did wrong, I had created the user incorrectly. As for the LDAP admin panel, it’s online and secure. The only problem I have now is LDAPS: I’m not sure whether I need to use a self-signed certificate or if I can use the “Streams” option in NPM to encrypt the outgoing traffic using a Let’s Encrypt certificate. That would be easier to manage.
t
I think you'd just have to try both ways out🙂
In the case that your nginx is on the same server as LLDAP you should be able to just mount the directory for the SSL cert
f
What about the default LDAP search , shown on the GitHub page It’s a bit confusing. Will this filter work: (memberOf=ou=people,dc=example,dc=com)?
n
memberOf is for groups
ou=people is not a group, you can think of it like the folder that holds your users
If you want all users, it would be (objectClass=person)
f
I had problems setting things up with a certificate from Let's Encrypt, but it worked with a self-signed certificate. Now I need to figure out how to create groups and set up the LDAP search filter. I also have to test whether the streams over NPM work or not. I want to thank all of you for the support, it has helped me understand it a bit more.
I created groups named "JellyfinUsers" and "JellyfinAdministrator" and I’m using the LDAP search filter in Jellyfin:
memberOf=cn=JellyfinUsers,ou=groups,dc=aclab,dc=tech
with an account
ldapcon
that only has the
ldap_strict_readonly
group. The connection works, showing
Connect (Success); Bind (Success); Base Search (Found 9 entities); Found 2 user(s), 1 admin(s)
as there are two accounts in that group and one is an admin. That part works, but when I try the "Test Login Name" to see if I can log in with my user, I get "Failure: Error completing LDAP login while applying user filter." I’m a bit confused.
n
I'm guessing you're setting up jellyfin. Did you check out our configurations guides?
f
I just found the example_configs directory on GitHub.
I see the logs:
Copy code
2025-09-26T14:50:03.236983102+00:00 INFO LDAP request [96.7ms | 100.00%] session_id: fc71818a-bc5d-462c-9d52-0a59d8f76285
2025-09-26T14:50:03.237391953+00:00 INFO ┕━ i [info]: Login attempt for "ldapmail"
But it doesn’t show that the login is successful. I followed the guides on GitHub for Mailcow and Jellyfin, and I’m getting the same login problem on both. The connection to the LLDAP server itself works, and it detects the two accounts with the filter I’m using, but when I try to log in to the service with the LLDAP credentials, it doesn’t work.
the account 'ldapmail' im for LDAP Bind User
n
You can enable verbose mode in LLDAP and have more useful logs
f
okay, ill try that after a break
thanks