Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
blizzz committed Apr 10, 2024
commit 9beb5a90ea6d81235d148f7e27282a4a9a83353a
7 changes: 1 addition & 6 deletions apps/user_ldap/lib/User_Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,7 @@ public function countUsers() {
*/
public function countMappedUsers(): int {
$this->setup();

$users = 0;
foreach ($this->backends as $backend) {
$users += $backend->countMappedUsers();
}
return $users;
return $this->refBackend?->countMappedUsers() ?? 0;
}

/**
Expand Down