]> git.proxmox.com Git - pve-access-control.git/commit
do not modify ACLs/Groups for missing users
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 13 Mar 2020 12:18:48 +0000 (13:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 21 Mar 2020 15:05:38 +0000 (16:05 +0100)
commit5654260eabaf9b46bb03d9e8cd9fe7da54deae8c
treedd6a087345c1f7dd96bcb2e2848030c9a99d7e95
parent673d2bf2674d77ca967e1583770cddfdf28d7abf
do not modify ACLs/Groups for missing users

instead of dropping ACLs and group membership for missing users,
simply warn and leave it in the config

for users that get removed via the api this happens explicitely

this is to prevent that a 'faulty' ldapsync removes users temporarily
and with it all acls that the admin created

we still have a 'purge' flag for the sync where ACLs get removed
explicitly for users removed from ldap

also adapt the tests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/AccessControl.pm
test/parser_writer.pl