]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/Domains.pm
change from dpkg-deb to dpkg-buildpackage
[pve-access-control.git] / PVE / API2 / Domains.pm
index fff3734a5969e2a3cd17f0f772cb8bde8076c1fc..b5fa65efc9253847ee49e73bef577c0ab9cf2bf9 100644 (file)
@@ -40,8 +40,11 @@ __PACKAGE__->register_method ({
                    enum => [ 'yubico', 'oath' ],
                    optional => 1,
                },
-               comment => { type => 'string', optional => 1 },
-               comment => { type => 'string', optional => 1 },
+               comment => {
+                   description => "A comment. The GUI use this text when you select a domain (Realm) on the login window.",
+                   type => 'string',
+                   optional => 1,
+               },
            },
        },
        links => [ { rel => 'child', href => "{realm}" } ],
@@ -142,9 +145,6 @@ __PACKAGE__->register_method ({
 
                my $realm = extract_param($param, 'realm');
 
-               die "unable to modify bultin domain '$realm'\n"
-                   if ($realm eq 'pam' || $realm eq 'pve');
-
                die "domain '$realm' does not exist\n" 
                    if !$ids->{$realm};