mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 08:15:00 -05:00
issue: Disabling TLS on LDAP Throws Error #4909
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sempervictus on GitHub (Apr 19, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.5
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Disabling TLS in the LDAP control panel should allow use of an unencrypted connection
Actual Behavior
Disabling TLS in the LDAP control panel produces the following error in logs upon save:
and throws an error attempting to log in whether the target on the LDAP host is set to use raw LDAP or LDAPS.
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@sempervictus commented on GitHub (Apr 19, 2025):
Seems this is the call involved which is odd because
Tlsis being imported fromldap3above but something seem to be making it sad :-.Cant quite get it to work w/ TLS even though a CA cert is provided but getting cleartext to work merely requires
@sempervictus commented on GitHub (Apr 20, 2025):
Spoke too soon, lack of an error in the logs is not success - entire webapp just hangs, nothing in the logs. I do eventually see LDAP on the wire but the app is completely destabilized at that point requiring the docker container (all in one, nvidia) to be stopped and started again (
restartdoesnt seem to do it).@gaby commented on GitHub (Apr 21, 2025):
This is because the import of
Tlsis broken. It was working, then broke, then got fixed, now broken again.It's a fixable bug
@Star-caorui commented on GitHub (Apr 23, 2025):
Same problem: 2025-04-23 03:30:55.053 | ERROR | open_webui.routers.auths:ldap_auth:197 - TLS configuration error: name 'Tls' is not defined - {}
@zuhao-chen commented on GitHub (Apr 24, 2025):
how could i solve this problem
@andresmorago commented on GitHub (Apr 24, 2025):
having the same issue here. Im on version v0.6.5
@sempervictus commented on GitHub (May 2, 2025):
@gaby That's probably because TLS is evil asym security by obscurity 😉, but for the time being it does kind of underpin tons of stuff. Apologies i've not had time to dive into the sources of this project; but could you provide any hints as to how this normally gets fixed when the breakage occurs?
@gaby commented on GitHub (May 6, 2025):
@sempervictus Problem is related to a PR that was done a long time ago to make importing Tls optional, not an issue with TLS.
Related PR: https://github.com/open-webui/open-webui/pull/10755
Related Issue: https://github.com/open-webui/open-webui/discussions/11138
You have to set the
ENABLE_LDAP=trueenvironment variable for this module to be loaded.@hhclaes commented on GitHub (May 6, 2025):
After setting
ENABLE_LDAP=trueI still getopen_webui.routers.auths:ldap_auth:345 - LDAP authentication error: malformed filter - {}Filter is
&(objectClass=user). I've tried other filters too (default, etc.).@gaby commented on GitHub (May 6, 2025):
@hhclaes That's unrelated to this issue.
The correct filter is
(objectClass=user). All ldap filters must start with(and end with).If you want to
ANDconditions then:(&(objectClass=user) (objectCategory=person))@hhclaes commented on GitHub (May 6, 2025):
@gaby Thanks a lot! It works now.