Fix LDAP access using TLS protocol
authorPaul <paul@claws-mail.org>
Thu, 28 May 2015 07:43:20 +0000 (08:43 +0100)
committerPaul <paul@claws-mail.org>
Thu, 28 May 2015 07:43:20 +0000 (08:43 +0100)
Patch by Darko Koruga.

src/ldapserver.c

index 541d2fb..4282748 100644 (file)
@@ -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);