[evolution-data-server/gnome-3-0] Bug #640083 - Force secured connection when using LDAPS port



commit 70466da417cf26ce0580f985002aaacaaddf63fb
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 2 09:31:22 2011 +0200

    Bug #640083 - Force secured connection when using LDAPS port

 addressbook/backends/ldap/e-book-backend-ldap.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/backends/ldap/e-book-backend-ldap.c b/addressbook/backends/ldap/e-book-backend-ldap.c
index 8ad5a20..e32cf04 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -5094,6 +5094,9 @@ e_book_backend_ldap_load_source (EBookBackend             *backend,
 		return;
 	}
 
+	if (bl->priv->ldap_port == LDAPS_PORT)
+		bl->priv->use_tls = E_BOOK_BACKEND_LDAP_TLS_ALWAYS;
+
 	if (bl->priv->cache) {
 		g_object_unref (bl->priv->cache);
 		bl->priv->cache = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]