mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-17 14:19:44 +00:00
fix buf in userid-param permission check
This commit is contained in:
parent
d9483d9406
commit
a69bbe2e7e
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=2.0
|
||||
|
||||
VERSION=1.0
|
||||
PACKAGE=libpve-access-control
|
||||
PKGREL=13
|
||||
PKGREL=14
|
||||
|
||||
DESTDIR=
|
||||
PREFIX=/usr
|
||||
|
@ -424,10 +424,10 @@ sub exec_api2_perm_check {
|
||||
return 1;
|
||||
} elsif ($test eq 'userid-param') {
|
||||
my ($userid, undef, $realm) = PVE::AccessControl::verify_username($param->{userid});
|
||||
return if !$self->check_user_exist($userid, $noerr);
|
||||
my ($t, $subtest) = @$check;
|
||||
die "missing parameters" if !$subtest;
|
||||
if ($subtest eq 'self') {
|
||||
return 0 if !$self->check_user_exist($userid, $noerr);
|
||||
return 1 if $username eq 'userid';
|
||||
return 0 if $noerr;
|
||||
raise_perm_exc();
|
||||
|
@ -1,3 +1,9 @@
|
||||
libpve-access-control (1.0-14) unstable; urgency=low
|
||||
|
||||
* fix buf in userid-param permission check
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Wed, 22 Feb 2012 10:52:35 +0100
|
||||
|
||||
libpve-access-control (1.0-13) unstable; urgency=low
|
||||
|
||||
* allow more characters in ldap base_dn attribute
|
||||
|
Loading…
Reference in New Issue
Block a user