dovecot: If any of the tls_* settings are used but support isn't...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 25 14:30:11 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/5b654defd376
changeset: 7192:5b654defd376
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 25 14:30:07 2008 +0200
description:
If any of the tls_* settings are used but support isn't compiled in, log a
warning.

diffstat:

1 file changed, 8 insertions(+)
src/auth/db-ldap.c |    8 ++++++++

diffs (18 lines):

diff -r 1cbaa724aba8 -r 5b654defd376 src/auth/db-ldap.c
--- a/src/auth/db-ldap.c	Fri Jan 25 14:25:11 2008 +0200
+++ b/src/auth/db-ldap.c	Fri Jan 25 14:30:07 2008 +0200
@@ -696,6 +696,14 @@ static void db_ldap_set_tls_options(stru
 		db_ldap_set_opt(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &value,
 				"tls_require_cert", conn->set.tls_require_cert);
 	}
+#else
+	if (conn->set.tls_ca_cert_file != NULL ||
+	    conn->set.tls_ca_cert_dir != NULL ||
+	    conn->set.tls_cert_file != NULL ||
+	    conn->set.tls_key_file != NULL ||
+	    conn->set.tls_cipher_suite != NULL)
+		i_warning("LDAP: tls_* settings ignored, "
+			  "your LDAP library doesn't seem to support them");
 #endif
 }
 


More information about the dovecot-cvs mailing list