Skip to content

Commit

Permalink
Fix returning attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Apr 7, 2024
1 parent 4f83765 commit cac692a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth/Source/X509userCert.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function authenticate(array &$state): void
// do not check for certificate match
$attributes = array_intersect_key(
$entry->getAttributes(),
array_fill_keys(array_values($this->x509attributes), null),
array_fill_keys(array_values($this->ldapConfig->getArray('attributes')), null),
);

$state['Attributes'] = $attributes;
Expand Down Expand Up @@ -234,7 +234,7 @@ public function authenticate(array &$state): void
if ($ldap_cert_data === $client_cert_data) {
$attributes = array_intersect_key(
$entry->getAttributes(),
array_fill_keys(array_values($this->x509attributes), null)
array_fill_keys(array_values($this->ldapConfig->getArray('attributes')), null)
);
$state['Attributes'] = $attributes;
$this->authSuccesful($state);
Expand Down

0 comments on commit cac692a

Please sign in to comment.