Add option to disable certificate validation.

This commit is contained in:
Hans Gaiser
2025-05-13 17:36:50 +02:00
parent 950f3cdcc0
commit f63e76e653
4 changed files with 26 additions and 2 deletions

View File

@@ -2839,6 +2839,12 @@ LDAP_CA_CERT_FILE = PersistentConfig(
os.environ.get("LDAP_CA_CERT_FILE", ""),
)
LDAP_VALIDATE_CERT = PersistentConfig(
"LDAP_VALIDATE_CERT",
"ldap.server.validate_cert",
os.environ.get("LDAP_USE_TLS", "True").lower() == "true",
)
LDAP_CIPHERS = PersistentConfig(
"LDAP_CIPHERS", "ldap.server.ciphers", os.environ.get("LDAP_CIPHERS", "ALL")
)