Fixed ldap user table id attribute detection without existing users

This commit is contained in:
Lucas Bartholemy 2016-08-05 15:17:04 +02:00
parent bc33d2660d
commit 248e2ca7e5

View File

@ -309,6 +309,8 @@ class ZendLdapClient extends BaseFormAuth implements interfaces\AutoSyncUsers, i
$baseDn = Yii::$app->getModule('user')->settings->get('auth.ldap.baseDn');
$userCollection = $this->getLdap()->search($userFilter, $baseDn, Ldap::SEARCH_SCOPE_SUB);
$authClient = null;
$ids = [];
foreach ($userCollection as $attributes) {
$authClient = new static;