]> git.proxmox.com Git - pve-access-control.git/commitdiff
LDAP sync: fix-up assembling valid attribute set
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Feb 2024 18:03:10 +0000 (19:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Feb 2024 18:03:10 +0000 (19:03 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Auth/LDAP.pm

index 0f9403d3349ce5fd5319721d2c1184bb3ed6c4de..bf7e968cb1824065bd5225ce1fe53df50e8e0fb7 100755 (executable)
@@ -289,7 +289,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*$/);