From 7c8597765f671d9b222e158d84caf236aafca3cd Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 8 May 2025 22:06:44 +0400 Subject: [PATCH] refac/fix: ldap issue --- backend/open_webui/routers/auths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/auths.py b/backend/open_webui/routers/auths.py index acc456d206..309862ed55 100644 --- a/backend/open_webui/routers/auths.py +++ b/backend/open_webui/routers/auths.py @@ -234,7 +234,7 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm): ], ) - if not search_success: + if not search_success or not connection_app.entries: raise HTTPException(400, detail="User not found in the LDAP server") entry = connection_app.entries[0]