changeset 7192:5b654defd376 HEAD

If any of the tls_* settings are used but support isn't compiled in, log a warning.
author Timo Sirainen <tss@iki.fi>
date Fri, 25 Jan 2008 14:30:07 +0200
parents 1cbaa724aba8
children e5af14239137
files src/auth/db-ldap.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		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
 }