mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #14898] [MERGED] feat: Configure LDAP group synchronization with Open WebUI #10431
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/14898
Author: @jackthgu
Created: 6/11/2025
Status: ✅ Merged
Merged: 6/11/2025
Merged by: @tjbck
Base:
dev← Head:ldap-group-sync📝 Commits (1)
ba591d8Configure LDAP group synchronization with Open WebUI📊 Changes
4 files changed (+123 additions, -6 deletions)
View changed files
📝
backend/open_webui/config.py(+20 -0)📝
backend/open_webui/main.py(+9 -0)📝
backend/open_webui/routers/auths.py(+93 -5)📝
backend/open_webui/utils/access_control.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
LDAP Group Management Configuration: New configuration options to enable/disable LDAP group synchronization
ENABLE_LDAP_GROUP_MANAGEMENT: Master switch for LDAP group synchronizationENABLE_LDAP_GROUP_CREATION: Option to automatically create groups from LDAPLDAP_ATTRIBUTE_FOR_GROUPS: Configurable LDAP attribute for group information (default: "memberOf")Automatic Group Synchronization: Users' LDAP group memberships are automatically synchronized with Open WebUI groups during authentication
Group Extraction Logic: Robust parsing of LDAP group Distinguished Names (DNs) to extract group names
Comprehensive Logging: Detailed logging for LDAP group operations for debugging and monitoring purposes
Changed
LDAP Authentication Flow: Enhanced LDAP authentication to include group attribute retrieval when group management is enabled
Search Attributes: Dynamically includes group attributes in LDAP search when group management is enabled
User Group Assignment: Non-admin users have their group memberships synchronized automatically based on LDAP groups
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.