mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #12835] [MERGED] Fix: Robust Handling of LDAP Email Attribute Types #9827
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12835
Author: @weisser-dev
Created: 4/14/2025
Status: ✅ Merged
Merged: 4/14/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
c749083Update auths.py📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/auths.py(+2 -0)📄 Description
Previously, the code only handled str and list types for the LDAP email attribute. This caused login failures when the attribute was returned as a different type (e.g., a custom LDAP object).
Old code fails with:
New code fixes this:
This makes login more robust across different LDAP setups and prevents edge case failures.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.