Timothy Jaeryang Baek 9 месяцев назад
Родитель
Сommit
7c8597765f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      backend/open_webui/routers/auths.py

+ 1 - 1
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]