[Commits] [SCM] claws branch, master, updated. 3.11.1-103-g084d8dc

claws at claws-mail.org claws at claws-mail.org
Thu May 28 09:43:28 CEST 2015


The branch, master has been updated
       via  084d8dcadc1bfb53b0084a4a717d9bfdc122e48b (commit)
      from  a52401526d1d7d9257623a5dac44ffb378371303 (commit)

Summary of changes:
 src/ldapserver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 084d8dcadc1bfb53b0084a4a717d9bfdc122e48b
Author: Paul <paul at claws-mail.org>
Date:   Thu May 28 08:43:20 2015 +0100

    Fix LDAP access using TLS protocol
    
    Patch by Darko Koruga.

diff --git a/src/ldapserver.c b/src/ldapserver.c
index 541d2fb..4282748 100644
--- a/src/ldapserver.c
+++ b/src/ldapserver.c
@@ -765,7 +765,7 @@ LDAP *ldapsvr_connect(LdapControl *ctl) {
 
 	ldapsrv_set_options (ctl->timeOut, NULL);
 	uri = g_strdup_printf("ldap%s://%s:%d",
-				ctl->enableSSL?"s":"",
+				(ctl->enableSSL || ctl->enableTLS)?"s":""
 				ctl->hostName, ctl->port);
 #ifdef G_OS_UNIX
 	ldap_initialize(&ld, uri);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list