Skip to content

Commit bb0be48

Browse files
author
robin.kluth
committed
1.1.19
* Fixed detection of domain while searching for a user
1 parent 2c768bf commit bb0be48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LdapAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ public function searchUser($searchFor, $attributes = "", $searchFilter = "", $au
257257
}
258258

259259
$domains = $autodetect ? [$this->domains[$autoDomain]] : $this->domains;
260+
$i = $autodetect ? $autoDomain : 0;
260261

261262
$return = [];
262-
$i = 0;
263263
foreach ($domains as $domain) {
264264
Yii::debug($domain, 'ldapAuth');
265265
if (!$this->login($domain['publicSearchUser'], $domain['publicSearchUserPassword'], $i)) {

0 commit comments

Comments
 (0)