fix: tls cert requirement

This commit is contained in:
Timothy Jaeryang Baek 2025-04-03 10:01:03 -07:00
parent dfdde8bb1f
commit a1f3300767

View File

@ -764,11 +764,6 @@ async def update_ldap_server(
if not value:
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_HOST = form_data.host
request.app.state.config.LDAP_SERVER_PORT = form_data.port