mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #9011] LDAP auth doesn't load user permissions on first sign in #15353
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 @bunnerz-king on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9011
Bug Report
Installation Method
Pulled down the repo and am running the app locally.
Environment
Confirmation:
Expected Behavior:
After logging into the app with LDAP, users should enter the app without issue.
Actual Behavior:
After logging into the app with LDAP, users see a blank white screen. Need to refresh page to see the app.
Description
Bug Summary:
In the endpoint to authenticate with LDAP, the new user permissions data is not returned in the response. As a result, the UI is erroring out because it is looking for those permissions.
Refreshing the page fixes this issue because the next time the app is hit, it authenticates using the token instead of going through the LDAP endpoint.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Additional Information
Fix needs to be made in auths.py in the "/ldap" endpoint. The user permissions needs to be returned (like how the other auth endpoints are doing it)
@tjbck commented on GitHub (Jan 28, 2025):
PR Welcome!