mirror of
https://github.com/open-webui/open-webui
synced 2025-05-21 13:36:35 +00:00
anonymous bind when LDAP_APP_DN is not specified
This commit is contained in:
parent
dc3abc2bcb
commit
8bd527be6a
@ -210,7 +210,7 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm):
|
|||||||
LDAP_APP_DN,
|
LDAP_APP_DN,
|
||||||
LDAP_APP_PASSWORD,
|
LDAP_APP_PASSWORD,
|
||||||
auto_bind="NONE",
|
auto_bind="NONE",
|
||||||
authentication="SIMPLE",
|
authentication="SIMPLE" if LDAP_APP_DN else "ANONYMOUS",
|
||||||
)
|
)
|
||||||
if not connection_app.bind():
|
if not connection_app.bind():
|
||||||
raise HTTPException(400, detail="Application account bind failed")
|
raise HTTPException(400, detail="Application account bind failed")
|
||||||
|
Loading…
Reference in New Issue
Block a user