From cac692a72fdb6f2ba5407b15e7c315a7530b01a6 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 7 Apr 2024 23:08:06 +0200 Subject: [PATCH] Fix returning attributes --- src/Auth/Source/X509userCert.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth/Source/X509userCert.php b/src/Auth/Source/X509userCert.php index 3ac4eed..a4cff35 100644 --- a/src/Auth/Source/X509userCert.php +++ b/src/Auth/Source/X509userCert.php @@ -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; @@ -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);