mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-21 21:52:45 -05:00
[PR #8376] [MERGED] perf: use ldap3.NONE for parameter get_info in ldap_auth function to accelerate login #9007
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/8376
Author: @steelcg
Created: 1/7/2025
Status: ✅ Merged
Merged: 1/8/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
82ff6c3use ldap3.NONE for parameter get_info in ldap_auth function to accelerate login📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/auths.py(+2 -2)📄 Description
see: #8204
The project is a wonderful project and helps a lot.
We have deployed it in our internal network. But after our test, there is a little problem which bothering us that it takes more than 8 seconds to login in our environment.
Describe the solution you'd like
I searched related information and found there should be a solution. We can replace a value of parameter from "ALL" to "ldap3.NONE" to solve.
Refer to (https://github.com/cannatag/ldap3/issues/534, use NONE will obviously accelerate LDAP search.
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
Changed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.