LDAP: use wrapper, not direct function call

This commit is contained in:
Arthur Schiwon 2013-09-06 19:31:41 +02:00
parent 5090ca3eb4
commit b9cd22cf78
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ class Connection extends BackendBase {
if(!$this->config['ldapOverrideMainServer'] && !$this->getFromCache('overrideMainServer')) { if(!$this->config['ldapOverrideMainServer'] && !$this->getFromCache('overrideMainServer')) {
$this->doConnect($this->config['ldapHost'], $this->config['ldapPort']); $this->doConnect($this->config['ldapHost'], $this->config['ldapPort']);
$bindStatus = $this->bind(); $bindStatus = $this->bind();
$error = $this->ldap->isResource($this->ldapConnectionRes) ? ldap_errno($this->ldapConnectionRes) : -1; $error = $this->ldap->isResource($this->ldapConnectionRes) ? $this->ldap->errno($this->ldapConnectionRes) : -1;
} else { } else {
$bindStatus = false; $bindStatus = false;
$error = null; $error = null;