Skip to content

Commit 690ca88

Browse files
author
robin.kluth
committed
1.1.22
* Throw an exception, if a AD-Server is not available during a query
1 parent 18fbc03 commit 690ca88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LdapAuth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function searchUser($searchFor, $attributes = "", $searchFilter = "", $au
263263
foreach ($domains as $domain) {
264264
Yii::debug($domain, 'ldapAuth');
265265
if (!$this->login($domain['publicSearchUser'], $domain['publicSearchUserPassword'], $i)) {
266-
throw new ErrorException('LDAP Connect or Bind error! Code: ' . ldap_errno($this->_l) . ' MSG: ' . ldap_error($this->_l));
266+
throw new ErrorException('LDAP Connect or Bind error (' . ldap_errno($this->_l) . ' - ' . ldap_error($this->_l) . ') on ' . $domain['hostname']);
267267
}
268268

269269
$searchFilter = str_replace("%searchFor%", addslashes($searchFor), $searchFilter);

0 commit comments

Comments
 (0)