X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=pveum;h=7c69688c85f95ce88d317b44beec3cd489742eac;hp=1a2f532ac0a7c57e564cff6e52bd3dde90ee91f6;hb=36ad0763f4f42e2b008093e34ec9bc28ce052e52;hpb=2c3a6c0aaac7fbdaeb26bc5a596d21e897f3343a diff --git a/pveum b/pveum index 1a2f532..7c69688 100755 --- a/pveum +++ b/pveum @@ -60,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'] ], @@ -72,18 +75,13 @@ my $cmddef = { rolemod => [ 'PVE::API2::Role', 'update_role', ['roleid'] ], roledel => [ 'PVE::API2::Role', 'delete_role', ['roleid'] ], - 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; -if ($cmd && $cmd eq 'verifyapi') { - PVE::RESTHandler::validate_method_schemas(); - exit 0; -} - -PVE::CLIHandler::handle_cmd($cmddef, "pveum", $cmd, \@ARGV, $read_password); +PVE::CLIHandler::handle_cmd($cmddef, "pveum", $cmd, \@ARGV, $read_password, $0); exit 0; @@ -95,8 +93,10 @@ pveum - PVE User Manager =head1 SYNOPSIS - pveum [OPTIONS] +=include synopsis =head1 DESCRIPTION -no description available +No description available. + +=include pve_copyright