Merge branch 'wip_master_mdl-3941_add_support_for_LDAP_TLS' of git://github.com/iaren...
[moodle.git] / enrol / ldap / lib.php
index f602ffb..2e2b6b6 100644 (file)
@@ -618,7 +618,7 @@ class enrol_ldap_plugin extends enrol_plugin {
         if ($ldapconnection = ldap_connect_moodle($this->get_config('host_url'), $this->get_config('ldap_version'),
                                                   $this->get_config('user_type'), $this->get_config('bind_dn'),
                                                   $this->get_config('bind_pw'), $this->get_config('opt_deref'),
-                                                  $debuginfo)) {
+                                                  $debuginfo, $this->get_config('start_tls'))) {
             $this->ldapconns = 1;
             $this->ldapconnection = $ldapconnection;
             return $ldapconnection;