mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-11 04:42:49 +00:00
LDAP sync: fix-up assembling valid attribute set
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 8c3bf4124c
)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2c450c34d4
commit
e537b51081
@ -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*$/);
|
||||
|
Loading…
Reference in New Issue
Block a user