summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/connection.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-08-20 14:23:49 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-09-27 13:34:15 +0200
commit6e850e0bee24f1fcea6c59e074d576bee1ec3e5b (patch)
treedbbca2ccbe06b224912b546d2bc53724de08d14e /apps/user_ldap/lib/connection.php
parent52454e39b7e04869f2cb3253d6978bbef5ece7fc (diff)
downloadnextcloud-server-6e850e0bee24f1fcea6c59e074d576bee1ec3e5b.tar.gz
nextcloud-server-6e850e0bee24f1fcea6c59e074d576bee1ec3e5b.zip
LDAP: establish wrapper interface to allow proper mocking
Diffstat (limited to 'apps/user_ldap/lib/connection.php')
-rw-r--r--apps/user_ldap/lib/connection.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 6a0d00405c0..6850169f2df 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -656,10 +656,10 @@ class Connection extends BackendBase {
$host .= ':' . $port;
}
$this->ldapConnectionRes = $this->ldap->connect($host, $port);
- if($this->ldap->set_option($this->ldapConnectionRes, LDAP_OPT_PROTOCOL_VERSION, 3)) {
- if($this->ldap->set_option($this->ldapConnectionRes, LDAP_OPT_REFERRALS, 0)) {
+ if($this->ldap->setOption($this->ldapConnectionRes, LDAP_OPT_PROTOCOL_VERSION, 3)) {
+ if($this->ldap->setOption($this->ldapConnectionRes, LDAP_OPT_REFERRALS, 0)) {
if($this->config['ldapTLS']) {
- $this->ldap->start_tls($this->ldapConnectionRes);
+ $this->ldap->startTls($this->ldapConnectionRes);
}
}
}