Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d75b475

Browse filesBrowse files
mr-svenfabpot
authored andcommitted
[Ldap] Fixing the behaviour of getting LDAP Attributes
1 parent 2fe4442 commit d75b475
Copy full SHA for d75b475

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Ldap/Security/LdapUserProvider.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Ldap/Security/LdapUserProvider.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function loadUserByIdentifier(string $identifier): UserInterface
7878
$this->ldap->bind($this->searchDn, $this->searchPassword);
7979
$identifier = $this->ldap->escape($identifier, '', LdapInterface::ESCAPE_FILTER);
8080
$query = str_replace(['{username}', '{user_identifier}'], $identifier, $this->defaultSearch);
81-
$search = $this->ldap->query($this->baseDn, $query);
81+
$search = $this->ldap->query($this->baseDn, $query, ['filter' => 0 == \count($this->extraFields) ? '*' : $this->extraFields]);
8282
} catch (ConnectionException $e) {
8383
$e = new UserNotFoundException(sprintf('User "%s" not found.', $identifier), 0, $e);
8484
$e->setUserIdentifier($identifier);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.