mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-30 21:12:05 +00:00
LDAP auth: warn on unset ldap_ssl_ca_file when certificate verification is wanted
This commit is contained in:
parent
c58eef4bac
commit
73b77defe4
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ class Auth(auth.BaseAuth):
|
||||||
logger.info("Inferring 'ldap_security' = tls from 'ldap_uri' starting with 'ldaps://'")
|
logger.info("Inferring 'ldap_security' = tls from 'ldap_uri' starting with 'ldaps://'")
|
||||||
self._ldap_security = "tls"
|
self._ldap_security = "tls"
|
||||||
|
|
||||||
|
if self._ldap_ssl_ca_file == "" and self._ldap_ssl_verify_mode != ssl.CERT_NONE and self._ldap_security in ("tls", "starttls"):
|
||||||
|
logger.warning("Certificate verification not possible: 'ldap_ssl_ca_file' not set")
|
||||||
|
|
||||||
logger.info("auth.ldap_uri : %r" % self._ldap_uri)
|
logger.info("auth.ldap_uri : %r" % self._ldap_uri)
|
||||||
logger.info("auth.ldap_base : %r" % self._ldap_base)
|
logger.info("auth.ldap_base : %r" % self._ldap_base)
|
||||||
logger.info("auth.ldap_reader_dn : %r" % self._ldap_reader_dn)
|
logger.info("auth.ldap_reader_dn : %r" % self._ldap_reader_dn)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue