fix(LDAP): do not count mapped users x-times active configs

- the method counts all rows in the mapping tables, which are not
  specific to single configurations, but contains users from all

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2024-04-10 12:35:02 +02:00
parent e70cf9c14b
commit 9beb5a90ea
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -415,12 +415,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP
*/
public function countMappedUsers(): int {
$this->setup();
$users = 0;
foreach ($this->backends as $backend) {
$users += $backend->countMappedUsers();
}
return $users;
return $this->refBackend?->countMappedUsers() ?? 0;
}
/**