From 04eebccc39f974a2df754aa41ffea94c90935f63 Mon Sep 17 00:00:00 2001 From: Sascha Schneider Date: Fri, 26 Aug 2011 16:37:22 +0200 Subject: [PATCH] apps/user_ldap/user_ldap.php: - Add support for ldapv3 and tls --- apps/user_ldap/user_ldap.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 54fc51fe0c..2d94ef828a 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -63,6 +63,9 @@ class OC_USER_LDAP extends OC_User_Backend { private function getDs() { if(!$this->ds) { $this->ds = ldap_connect( $this->ldap_host, $this->ldap_port ); + if(ldap_set_option($this->ds, LDAP_OPT_PROTOCOL_VERSION, 3)) + if(ldap_set_option($this->ds, LDAP_OPT_REFERRALS, 0)) + ldap_start_tls($this->ds); } // login