diff options
author | Sascha Schneider <development@suntsu.org> | 2011-08-26 16:37:22 +0200 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2011-08-28 12:56:04 +0200 |
commit | 04eebccc39f974a2df754aa41ffea94c90935f63 (patch) | |
tree | 20f6fae7f5dcab0d27ac5579149472f1cc088d68 /apps/user_ldap | |
parent | bcfdc12852ba5bc7b1a9085ce79f3743d888ba9b (diff) | |
download | nextcloud-server-04eebccc39f974a2df754aa41ffea94c90935f63.tar.gz nextcloud-server-04eebccc39f974a2df754aa41ffea94c90935f63.zip |
apps/user_ldap/user_ldap.php: - Add support for ldapv3 and tls
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 54fc51fe0cd..2d94ef828ab 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 |