From: Dietmar Maurer Date: Fri, 18 Jul 2014 09:24:55 +0000 (+0200) Subject: allow to write builtin auth domains X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=30be0de97ac8fc9b2a38ad49b7966a366333622f allow to write builtin auth domains So that we can set tfa, comment, default with the GUI. --- diff --git a/PVE/API2/Domains.pm b/PVE/API2/Domains.pm index fff3734..f78acbd 100644 --- a/PVE/API2/Domains.pm +++ b/PVE/API2/Domains.pm @@ -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}; diff --git a/PVE/Auth/Plugin.pm b/PVE/Auth/Plugin.pm index 1308340..46b2d3b 100755 --- a/PVE/Auth/Plugin.pm +++ b/PVE/Auth/Plugin.pm @@ -198,9 +198,6 @@ sub parse_config { sub write_config { my ($class, $filename, $cfg) = @_; - delete $cfg->{ids}->{pve}; - delete $cfg->{ids}->{pam}; - foreach my $realm (keys %{$cfg->{ids}}) { my $data = $cfg->{ids}->{$realm}; if ($data->{comment}) { diff --git a/changelog.Debian b/changelog.Debian index cc6d1b7..8f01f4d 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -9,6 +9,8 @@ libpve-access-control (3.0-14) unstable; urgency=low * dedend on oathtool * depend on libmime-base32-perl + + * allow to write builtin auth domains config (comment/tfa/default) -- Proxmox Support Team Thu, 17 Jul 2014 13:09:56 +0200