Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 765d893

Browse files
committed
fixes retrieving multiple values of extra fields
1 parent 89d1dde commit 765d893

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function getAttributeValue(Entry $entry, string $attribute)
187187
}
188188

189189
$values = $entry->getAttribute($attribute);
190-
if (!in_array($attribute, [$this->uidKey, $this->passwordAttribute])) {
190+
if (!\in_array($attribute, [$this->uidKey, $this->passwordAttribute])) {
191191
return $values;
192192
}
193193

src/Symfony/Component/Ldap/Tests/Security/LdapUserProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public function testLoadUserByIdentifierIsSuccessfulWithMultipleExtraAttributes(
345345
$ldap = $this->createMock(LdapInterface::class);
346346
$memberOf = [
347347
'cn=foo,ou=MyBusiness,dc=symfony,dc=com',
348-
'cn=bar,ou=MyBusiness,dc=symfony,dc=com'
348+
'cn=bar,ou=MyBusiness,dc=symfony,dc=com',
349349
];
350350
$result
351351
->expects($this->once())

0 commit comments

Comments
 (0)