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 a330f53

Browse filesBrowse files
committed
[Ldap] Fixing the behaviour of getting LDAP Attributes
1 parent 2fe4442 commit a330f53
Copy full SHA for a330f53

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

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' => count($this->extraFields) == 0 ? '*' : $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.