[PR #6743] [MERGED] feat: LDAP User management #44991

Closed
opened 2026-04-29 19:15:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/6743
Author: @morgan55555
Created: 11/5/2024
Status: Merged
Merged: 11/5/2024
Merged by: @tjbck

Base: devHead: dev


📝 Commits (1)

  • 5d934d7 feat: LDAP User management

📊 Changes

9 files changed (+791 additions, -21 deletions)

View changed files

📝 backend/open_webui/apps/webui/main.py (+25 -0)
📝 backend/open_webui/apps/webui/models/auths.py (+5 -0)
📝 backend/open_webui/apps/webui/routers/auths.py (+197 -1)
📝 backend/open_webui/config.py (+77 -0)
📝 backend/open_webui/main.py (+1 -0)
📝 backend/requirements.txt (+3 -0)
📝 src/lib/apis/auths/index.ts (+144 -0)
📝 src/lib/components/admin/Settings/Connections.svelte (+223 -1)
📝 src/routes/auth/+page.svelte (+116 -19)

📄 Description

Based on @WilsonZiweiWang work. (https://github.com/open-webui/open-webui/pull/5056)

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:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

Added

  • Frontend:

    • Added a button to the login page following the existing style for oauth options to show LDAP login form if LDAP is enabled.
    • Added UI for LDAP configs through admin settings -> Connection
    • LDAP will be used as default auth if no other auth form is enabled.
  • Backend:

    • Added endpoints to handle LDAP authentication requests and configs.
    • Now LDAP login is case insensitive.
  • Configs:

    • Added a config to toggle LDAP sign-in method.
    • Added configs for LDAP server including host, port, Application DN, etc. You can also specify the values in the env file.

Changed

  • Integrated with onboarding feature.

Fixed

  • LDAP now will work with ENABLE_LOGIN_FORM = false.
  • Fixed exception "User does not match the record."

Additional Information

Screenshots or Videos

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/6743 **Author:** [@morgan55555](https://github.com/morgan55555) **Created:** 11/5/2024 **Status:** ✅ Merged **Merged:** 11/5/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`5d934d7`](https://github.com/open-webui/open-webui/commit/5d934d7d1502891f0d6d6e5f155aba43d456f2fa) feat: LDAP User management ### 📊 Changes **9 files changed** (+791 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/apps/webui/main.py` (+25 -0) 📝 `backend/open_webui/apps/webui/models/auths.py` (+5 -0) 📝 `backend/open_webui/apps/webui/routers/auths.py` (+197 -1) 📝 `backend/open_webui/config.py` (+77 -0) 📝 `backend/open_webui/main.py` (+1 -0) 📝 `backend/requirements.txt` (+3 -0) 📝 `src/lib/apis/auths/index.ts` (+144 -0) 📝 `src/lib/components/admin/Settings/Connections.svelte` (+223 -1) 📝 `src/routes/auth/+page.svelte` (+116 -19) </details> ### 📄 Description Based on @WilsonZiweiWang work. (https://github.com/open-webui/open-webui/pull/5056) # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description - Fixes for LDAP authentication integration (https://github.com/open-webui/open-webui/pull/5056) ### Added - Frontend: - Added a button to the login page following the existing style for oauth options to show LDAP login form if LDAP is enabled. - Added UI for LDAP configs through admin settings -> Connection - LDAP will be used as default auth if no other auth form is enabled. - Backend: - Added endpoints to handle LDAP authentication requests and configs. - Now LDAP login is case insensitive. - Configs: - Added a config to toggle LDAP sign-in method. - Added configs for LDAP server including host, port, Application DN, etc. You can also specify the values in the env file. ### Changed - Integrated with onboarding feature. ### Fixed - LDAP now will work with ENABLE_LOGIN_FORM = false. - Fixed exception "User does not match the record." --- ### Additional Information - Based on @WilsonZiweiWang work. (https://github.com/open-webui/open-webui/pull/5056) ### Screenshots or Videos ![image](https://github.com/user-attachments/assets/dac6f16f-b56b-47be-969d-aa75e86dd827) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 19:15:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#44991