mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-06-13 15:27:32 +00:00
allow to write builtin auth domains
So that we can set tfa, comment, default with the GUI.
This commit is contained in:
parent
1abc2c0aee
commit
30be0de97a
@ -142,9 +142,6 @@ __PACKAGE__->register_method ({
|
|||||||
|
|
||||||
my $realm = extract_param($param, 'realm');
|
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"
|
die "domain '$realm' does not exist\n"
|
||||||
if !$ids->{$realm};
|
if !$ids->{$realm};
|
||||||
|
|
||||||
|
@ -198,9 +198,6 @@ sub parse_config {
|
|||||||
sub write_config {
|
sub write_config {
|
||||||
my ($class, $filename, $cfg) = @_;
|
my ($class, $filename, $cfg) = @_;
|
||||||
|
|
||||||
delete $cfg->{ids}->{pve};
|
|
||||||
delete $cfg->{ids}->{pam};
|
|
||||||
|
|
||||||
foreach my $realm (keys %{$cfg->{ids}}) {
|
foreach my $realm (keys %{$cfg->{ids}}) {
|
||||||
my $data = $cfg->{ids}->{$realm};
|
my $data = $cfg->{ids}->{$realm};
|
||||||
if ($data->{comment}) {
|
if ($data->{comment}) {
|
||||||
|
@ -9,6 +9,8 @@ libpve-access-control (3.0-14) unstable; urgency=low
|
|||||||
* dedend on oathtool
|
* dedend on oathtool
|
||||||
|
|
||||||
* depend on libmime-base32-perl
|
* 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
|
-- Proxmox Support Team <support@proxmox.com> Thu, 17 Jul 2014 13:09:56 +0200
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user