From 8bd527be6a53e52b770ff8527ebf8bdb51b99d9c Mon Sep 17 00:00:00 2001 From: Scott Cheng <60510scott@gmail.com> Date: Sat, 8 Mar 2025 08:15:17 -0500 Subject: [PATCH] anonymous bind when LDAP_APP_DN is not specified --- 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 399283ee4..f30ae50c3 100644 --- a/backend/open_webui/routers/auths.py +++ b/backend/open_webui/routers/auths.py @@ -210,7 +210,7 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm): LDAP_APP_DN, LDAP_APP_PASSWORD, auto_bind="NONE", - authentication="SIMPLE", + authentication="SIMPLE" if LDAP_APP_DN else "ANONYMOUS", ) if not connection_app.bind(): raise HTTPException(400, detail="Application account bind failed")