[evolution-data-server] Bug #653385 - ldaps fails with server using self-signed certificate



commit 04a5981aba2e3f81801b6a3fdb7f41275f32f112
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 30 13:28:17 2011 +0200

    Bug #653385 - ldaps fails with server using self-signed certificate

 addressbook/backends/ldap/e-book-backend-ldap.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/backends/ldap/e-book-backend-ldap.c b/addressbook/backends/ldap/e-book-backend-ldap.c
index 37173c4..abef023 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -882,6 +882,10 @@ e_book_backend_ldap_connect (EBookBackendLDAP *bl)
 #if defined (LDAP_OPT_X_TLS_HARD) && defined (LDAP_OPT_X_TLS)
 				gint tls_level = LDAP_OPT_X_TLS_HARD;
 				ldap_set_option (blpriv->ldap, LDAP_OPT_X_TLS, &tls_level);
+
+				/* setup this on the global option set */
+				tls_level = LDAP_OPT_X_TLS_ALLOW;
+				ldap_set_option (NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &tls_level);
 #elif defined (G_OS_WIN32)
 				ldap_set_option (blpriv->ldap, LDAP_OPT_SSL, LDAP_OPT_ON);
 #else



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