Skip to content

Commit

Permalink
Merge pull request #7 from ewaldkleefstra/ldap_get_attributes_fix
Browse files Browse the repository at this point in the history
Account filter cannot be set for `getAttributes()` in LDAP adapter
  • Loading branch information
s-aebischer authored Jan 31, 2022
2 parents d287bc9 + d3d0668 commit c21afcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Basic/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function plainAuth(string $username, string $password)
public function getAttributes(IdentityInterface $identity): array
{
$search = array_column($this->map, 'attr');
$filter = htmlspecialchars_decode(sprintf($this->identity_attribute.'=%s)', $identity->getIdentifier()));
$filter = htmlspecialchars_decode(sprintf($this->account_filter, $identity->getIdentifier()));

$this->logger->debug("fetch ldap object attributes with [$filter]", [
'category' => get_class($this),
Expand Down

0 comments on commit c21afcc

Please sign in to comment.