throw an info message, when base dn test failed
This commit is contained in:
parent
bc17b40650
commit
a908bd5695
|
@ -567,6 +567,10 @@ class Wizard extends LDAPUtility {
|
||||||
//get a result set > 0 on a proper base
|
//get a result set > 0 on a proper base
|
||||||
$rr = $this->ldap->search($cr, $base, 'objectClass=*', array('dn'), 0, 1);
|
$rr = $this->ldap->search($cr, $base, 'objectClass=*', array('dn'), 0, 1);
|
||||||
if(!$this->ldap->isResource($rr)) {
|
if(!$this->ldap->isResource($rr)) {
|
||||||
|
$errorNo = $this->ldap->errno($cr);
|
||||||
|
$errorMsg = $this->ldap->error($cr);
|
||||||
|
\OCP\Util::writeLog('user_ldap', 'Wiz: Could not search base '.$base.
|
||||||
|
' Error '.$errorNo.': '.$errorMsg, \OCP\Util::INFO);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$entries = $this->ldap->countEntries($cr, $rr);
|
$entries = $this->ldap->countEntries($cr, $rr);
|
||||||
|
|
Loading…
Reference in New Issue