Merge pull request #13852 from fizyr-forks/self-signed-cert

feat: Add option to disable certificate validation for LDAP certificates.
This commit is contained in:
Tim Jaeryang Baek
2025-05-14 23:12:24 +04:00
committed by GitHub
4 changed files with 26 additions and 2 deletions

View File

@@ -2876,6 +2876,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")
)