X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=pveum;h=7c69688c85f95ce88d317b44beec3cd489742eac;hp=9214d1f9d69e02efc3e484218c6626c47eba90b7;hb=7b395f990d138c831589b202df6e61ee0999aab3;hpb=39c85db819dc564e89270f6f6d15dbce79d0540b diff --git a/pveum b/pveum index 9214d1f..7c69688 100755 --- a/pveum +++ b/pveum @@ -14,7 +14,6 @@ use PVE::API2::User; use PVE::API2::Group; use PVE::API2::Role; use PVE::API2::ACL; -use PVE::API2::Pool; use PVE::API2::AccessControl; use PVE::JSONSchema qw(get_standard_option); use PVE::CLIHandler; @@ -61,6 +60,9 @@ my $cmddef = { my ($res) = @_; print "$res->{ticket}\n"; }], + + passwd => [ 'PVE::API2::AccessControl', 'change_passsword', ['userid'] ], + useradd => [ 'PVE::API2::User', 'create_user', ['userid'] ], usermod => [ 'PVE::API2::User', 'update_user', ['userid'] ], userdel => [ 'PVE::API2::User', 'delete_user', ['userid'] ], @@ -73,12 +75,8 @@ my $cmddef = { rolemod => [ 'PVE::API2::Role', 'update_role', ['roleid'] ], roledel => [ 'PVE::API2::Role', 'delete_role', ['roleid'] ], - pooladd => [ 'PVE::API2::Pool', 'create_pool', ['poolid'] ], - poolmod => [ 'PVE::API2::Pool', 'update_pool', ['poolid'] ], - pooldel => [ 'PVE::API2::Pool', 'delete_pool', ['poolid'] ], - - aclmod => [ 'PVE::API2::ACL', 'update_acl', ['path', 'roles'], { delete => 0 }], - acldel => [ 'PVE::API2::ACL', 'update_acl', ['path', 'roles'], { delete => 1 }], + aclmod => [ 'PVE::API2::ACL', 'update_acl', ['path'], { delete => 0 }], + acldel => [ 'PVE::API2::ACL', 'update_acl', ['path'], { delete => 1 }], }; my $cmd = shift;