Browse Source

fix: tls cert requirement

Timothy Jaeryang Baek 3 months ago
parent
commit
a1f3300767
1 changed files with 0 additions and 5 deletions
  1. 0 5
      backend/open_webui/routers/auths.py

+ 0 - 5
backend/open_webui/routers/auths.py

@@ -764,11 +764,6 @@ async def update_ldap_server(
         if not value:
         if not value:
             raise HTTPException(400, detail=f"Required field {key} is empty")
             raise HTTPException(400, detail=f"Required field {key} is empty")
 
 
-    if form_data.use_tls and not form_data.certificate_path:
-        raise HTTPException(
-            400, detail="TLS is enabled but certificate file path is missing"
-        )
-
     request.app.state.config.LDAP_SERVER_LABEL = form_data.label
     request.app.state.config.LDAP_SERVER_LABEL = form_data.label
     request.app.state.config.LDAP_SERVER_HOST = form_data.host
     request.app.state.config.LDAP_SERVER_HOST = form_data.host
     request.app.state.config.LDAP_SERVER_PORT = form_data.port
     request.app.state.config.LDAP_SERVER_PORT = form_data.port