Timothy Jaeryang Baek 4 mēneši atpakaļ
vecāks
revīzija
9123c57c8a
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2 3
      backend/open_webui/routers/auths.py

+ 2 - 3
backend/open_webui/routers/auths.py

@@ -55,9 +55,8 @@ from typing import Optional, List
 
 from ssl import CERT_NONE, CERT_REQUIRED, PROTOCOL_TLS
 
-if ENABLE_LDAP.value:
-    from ldap3 import Server, Connection, NONE, Tls
-    from ldap3.utils.conv import escape_filter_chars
+from ldap3 import Server, Connection, NONE, Tls
+from ldap3.utils.conv import escape_filter_chars
 
 router = APIRouter()