From e537b5108135de9e84b12731731b34cecdebdcac Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 8 Feb 2024 19:03:10 +0100 Subject: [PATCH] LDAP sync: fix-up assembling valid attribute set Signed-off-by: Thomas Lamprecht (cherry picked from commit 8c3bf4124c216abb00b2d99b153c0039246d50aa) Signed-off-by: Thomas Lamprecht --- src/PVE/Auth/LDAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Auth/LDAP.pm b/src/PVE/Auth/LDAP.pm index b43f959..17e62c0 100755 --- a/src/PVE/Auth/LDAP.pm +++ b/src/PVE/Auth/LDAP.pm @@ -295,7 +295,7 @@ sub get_users { # NOTE: also ensure verify_sync_attribute_value can handle any new/changed attribute name }; # build on the fly as this is small and only called once per realm in a ldap-sync anyway - my $valid_sync_attributes = map { $_ => 1 } values $ldap_attribute_map->%*; + my $valid_sync_attributes = { map { $_ => 1 } values $ldap_attribute_map->%* }; foreach my $attr (PVE::Tools::split_list($config->{sync_attributes})) { my ($ours, $ldap) = ($attr =~ m/^\s*(\w+)=(.*)\s*$/);