allow more characters with realm IDs

This commit is contained in:
Dietmar Maurer 2012-02-20 08:54:40 +01:00
parent 09d270580b
commit 8461960715
3 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=1.0 VERSION=1.0
PACKAGE=libpve-access-control PACKAGE=libpve-access-control
PKGREL=11 PKGREL=12
DESTDIR= DESTDIR=
PREFIX=/usr PREFIX=/usr

View File

@ -705,6 +705,7 @@ sub normalize_path {
my $realm_regex = qr/[A-Za-z][A-Za-z0-9\.\-_]+/; my $realm_regex = qr/[A-Za-z][A-Za-z0-9\.\-_]+/;
PVE::JSONSchema::register_format('pve-realm', \&pve_verify_realm);
sub pve_verify_realm { sub pve_verify_realm {
my ($realm, $noerr) = @_; my ($realm, $noerr) = @_;
@ -748,7 +749,7 @@ PVE::JSONSchema::register_standard_option('userid', {
PVE::JSONSchema::register_standard_option('realm', { PVE::JSONSchema::register_standard_option('realm', {
description => "Authentication domain ID", description => "Authentication domain ID",
type => 'string', format => 'pve-configid', type => 'string', format => 'pve-realm',
maxLength => 32, maxLength => 32,
}); });

View File

@ -1,3 +1,9 @@
libpve-access-control (1.0-12) unstable; urgency=low
* allow more characters with realm IDs
-- Proxmox Support Team <support@proxmox.com> Mon, 20 Feb 2012 08:50:33 +0100
libpve-access-control (1.0-11) unstable; urgency=low libpve-access-control (1.0-11) unstable; urgency=low
* fix bug in exec_api2_perm_check * fix bug in exec_api2_perm_check