Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 649f3550 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

retrieve needed attributes with getAttributes

parent cf87f9d3
Loading
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -87,12 +87,7 @@ class UserService {
		foreach ($backends as $backend) {
			if ($backend->getBackendName() === 'LDAP') {
				$access = $backend->getLDAPAccess($uid);
				$requiredLDAPattributes = [
					'dn',
					strtolower($access->connection->ldapExpertUsernameAttr),
					strtolower($access->connection->ldapUserDisplayName)
				];
		
				$requiredLDAPattributes = $access->userManager->getAttributes();		
				$users = $access->fetchUsersByLoginName($uid, $requiredLDAPattributes);
				if (count($users) > 0) {
					$exists = true;