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 authored and GitHub committed 2025-05-14 23:12:24 +04:00
commit e358a66fb1
4 files changed
+26 -2

No files matched your search

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