mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #12647] [MERGED] fix: choose the first mail if multiple are returned from LDAP #61851
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/12647
Author: @behrmann
Created: 4/9/2025
Status: ✅ Merged
Merged: 4/9/2025
Merged by: @tjbck
Base:
dev← Head:multimail📝 Commits (1)
2e7a01ffix: choose the first mail if multiple are returned from LDAP📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
backend/open_webui/routers/auths.py(+5 -3)📄 Description
Pull Request Checklist
If an LDAP entry has multiple mail attributes, the returned entry object has a list of strings as the mail attribute. This is stringified here, which produces non-sense mail addresses like ["foo@example.com", "bar@example.com"].
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.