--- rcube_ldap.inc.orig	2008-06-04 13:46:44.000000000 -0700
+++ rcube_ldap.inc	2008-06-04 13:48:33.000000000 -0700
@@ -95,6 +95,12 @@
         ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['ldap_version']);
         $this->prop['host'] = $host;
         $this->conn = $lc;
+      	
+      	if (isset($this->prop['start_tls']) && $this->prop['start_tls'] === 'true') 
+	      {
+          ldap_start_tls($this->conn);
+        }
+        
         break;
       }
     }
