]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/Domains.pm
drop libdigest-hmac-perl dependency
[pve-access-control.git] / PVE / API2 / Domains.pm
index dac56608da05aec8e639187514433308d6b2e63f..f78acbd13a0548f5d1e307905446d2793661db55 100644 (file)
@@ -37,7 +37,7 @@ __PACKAGE__->register_method ({
                tfa => {
                    description => "Two-factor authentication provider.",
                    type => 'string',
-                   enum => [ 'yubico' ],
+                   enum => [ 'yubico', 'oath' ],
                    optional => 1,
                },
                comment => { type => 'string', optional => 1 },
@@ -142,9 +142,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};