mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #5056] [CLOSED] feat: Integrate LDAP authentication #37244
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/5056
Author: @WilsonZiweiWang
Created: 8/31/2024
Status: ❌ Closed
Base:
dev← Head:local-test📝 Commits (1)
529820cfeat: Integrate LDAP authentication #668📊 Changes
10 files changed (+768 additions, -7 deletions)
View changed files
📝
backend/open_webui/apps/webui/main.py(+25 -0)📝
backend/open_webui/apps/webui/models/auths.py(+4 -0)📝
backend/open_webui/apps/webui/routers/auths.py(+181 -0)📝
backend/open_webui/config.py(+76 -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(+226 -2)📝
src/lib/stores/index.ts(+1 -0)📝
src/routes/auth/+page.svelte(+107 -5)📄 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
Integrate LDAP authentication
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->ConnectionBackend:
Added endpoints to handle LDAP authentication requests and configs.
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.
Additional Information
The initial implementation was based on my use case with my LDAP server so it might not work out of the box.
Related issue: https://github.com/open-webui/open-webui/issues/668
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.