mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
issue: Administration with LDAP User not accessible after upgrade to 0.5.19 #4253
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 @Pacman1988 on GitHub (Mar 5, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.5.19
Ollama Version (if applicable)
Operating System
Windows 11
Browser (if applicable)
Edge
Confirmation
README.md.Expected Behavior
Login and can go to Admin Panel with LDAP Administrator User, like E-Mail User:
Actual Behavior
Login and no Admin Panel there like normal user. Trying to access /admin does also not help and redirect to main page.
Steps to Reproduce
Upgrade from older version to 0.5.19.
Logs & Screenshots
See upper screenshots,
Additional Information
Maybe its related to the update notes:
v0.5.19 - 2024-03-04
LDAP Email Case Sensitivity
Resolved an issue where LDAP login failed due to email case sensitivity mismatches, improving authentication reliability.
No response
@tjbck commented on GitHub (Mar 5, 2025):
You should manually update the database to lowercase the emails.
Here's an example code you can run:
@Pacman1988 commented on GitHub (Mar 5, 2025):
Can you tell me how to do this in my docker container? Because the docker container does not have a text editor like vi or nano and I cannot even install one to run the script.
Can't you do it with db migration in the next update? Will this not affect more users?
@Classic298 commented on GitHub (Mar 5, 2025):
Do you use sqlite? External PostgreSQL?
If external, just connect to the DB
If SQLITE, move the script inside the docker container and execute it on the sqlite file?
@Pacman1988 commented on GitHub (Mar 5, 2025):
I hope it helps others, but Im not satisfied to fix it myself when the application broke it.
Steps to fix with SQLITE and Docker Image
webui.db- you can find it withdocker exec -it open-webui ls dataand there is a *.db file)docker cp fix.py open-webui:/app/backend/data/docker exec -it open-webui /bin/shcd datapython fix.pyEmails have been updated to lowercase.@Classic298 commented on GitHub (Mar 5, 2025):
yeah i can understand you. the application should've migrated the emails in the database
@ips972 commented on GitHub (Mar 20, 2025):
did you not see my post about this, as soon as this error started appearing i opened a discussions on it.
ldap authentication causing duplicate users since CASE sensitive issue was "fixed" #11513
with no response from management :-)
still causing duplication of accounts in my net, until all users finish re-login.