mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac/fix: ldap issue
This commit is contained in:
parent
08b6ea0e17
commit
7c8597765f
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
raise HTTPException(400, detail="User not found in the LDAP server")
|
||||||
|
|
||||||
entry = connection_app.entries[0]
|
entry = connection_app.entries[0]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue