use PVE::JSONSchema qw(get_standard_option);
use PVE::SafeSyslog;
-
-use Data::Dumper; # fixme: remove
-
use PVE::RESTHandler;
my $domainconfigfile = "domains.cfg";
protected => 1,
path => '',
method => 'POST',
+ permissions => {
+ check => ['perm', '/access', ['Sys.Modify']],
+ },
description => "Add an authentication server.",
parameters => {
additionalProperties => 0,
name => 'update',
path => '{realm}',
method => 'PUT',
+ permissions => {
+ check => ['perm', '/access', ['Sys.Modify']],
+ },
description => "Update authentication server settings.",
protected => 1,
parameters => {
path => '{realm}',
method => 'GET',
description => "Get auth server configuration.",
+ permissions => {
+ check => ['perm', '/access', ['Sys.Audit']],
+ },
parameters => {
additionalProperties => 0,
properties => {
name => 'delete',
path => '{realm}',
method => 'DELETE',
+ permissions => {
+ check => ['perm', '/access', ['Sys.Modify']],
+ },
description => "Delete an authentication server.",
protected => 1,
parameters => {