[pve-devel] applied: [PATCH access-control 2/9] add realm commands to pveum

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Mar 7 19:54:25 CET 2020


On 3/6/20 11:05 AM, Dominik Csapak wrote:
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  PVE/CLI/pveum.pm | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/PVE/CLI/pveum.pm b/PVE/CLI/pveum.pm
> index 9cae774..d3721b6 100755
> --- a/PVE/CLI/pveum.pm
> +++ b/PVE/CLI/pveum.pm
> @@ -10,6 +10,7 @@ use PVE::API2::Group;
>  use PVE::API2::Role;
>  use PVE::API2::ACL;
>  use PVE::API2::AccessControl;
> +use PVE::API2::Domains;
>  use PVE::CLIFormatter;
>  use PVE::CLIHandler;
>  use PVE::JSONSchema qw(get_standard_option);
> @@ -141,6 +142,14 @@ our $cmddef = {
>  	delete => [ 'PVE::API2::ACL', 'update_acl', ['path'], { delete => 1 }],
>  	list   => [ 'PVE::API2::ACL', 'read_acl', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
>      },
> +
> +    realm => {
> +	add    => [ 'PVE::API2::Domains', 'create', ['realm'] ],
> +	modify => [ 'PVE::API2::Domains', 'update', ['realm'] ],
> +	delete => [ 'PVE::API2::Domains', 'delete', ['realm'] ],
> +	list   => [ 'PVE::API2::Domains', 'index', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
> +    },
> +
>      ticket => [ 'PVE::API2::AccessControl', 'create_ticket', ['username'], undef,
>  		sub {
>  		    my ($res) = @_;
> 

applied




More information about the pve-devel mailing list