allow to write builtin auth domains

So that we can set tfa, comment, default with the GUI.
This commit is contained in:
Dietmar Maurer 2014-07-18 11:24:55 +02:00
parent 1abc2c0aee
commit 30be0de97a
3 changed files with 2 additions and 6 deletions

View File

@ -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};

View File

@ -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}) {

View File

@ -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 <support@proxmox.com> Thu, 17 Jul 2014 13:09:56 +0200