Bring back user count in ldap backend inspection

We already use count later in the wizard anyways.

refs #9630
This commit is contained in:
Matthias Jentsch 2015-07-16 16:52:56 +02:00
parent 67f46bab27
commit 5478027855
1 changed files with 1 additions and 4 deletions

View File

@ -387,7 +387,7 @@ class LdapUserBackend extends LdapRepository implements UserBackendInterface, In
if ($res === false) {
throw new AuthenticationException('Error, no users found in backend');
}
$result->write('Users found in backend');
$result->write(sprintf('%d users found in backend', $this->select()->count()));
if (! isset($res->user_name)) {
throw new AuthenticationException(
'UserNameAttribute "%s" not existing in objectClass "%s"',
@ -395,9 +395,6 @@ class LdapUserBackend extends LdapRepository implements UserBackendInterface, In
$this->userClass
);
}
// (mj) don't do this until we have a more scalable count() implementation
// $result->write('User count: ' . $this->select()->count());
} catch (AuthenticationException $e) {
if (($previous = $e->getPrevious()) !== null) {
$result->error($previous->getMessage());