[pmg-devel] [PATCH pmg-api 1/4] api: authrealm: create: add quarantine as reserved realm
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Feb 26 20:16:59 CET 2025
Reported-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
src/PMG/API2/AuthRealm.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PMG/API2/AuthRealm.pm b/src/PMG/API2/AuthRealm.pm
index e9fee38..4851582 100644
--- a/src/PMG/API2/AuthRealm.pm
+++ b/src/PMG/API2/AuthRealm.pm
@@ -94,7 +94,7 @@ __PACKAGE__->register_method ({
if $ids->{$realm};
die "unable to use reserved name '$realm'\n"
- if ($realm eq 'pam' || $realm eq 'pmg');
+ if ($realm eq 'pam' || $realm eq 'pmg' || $realm eq 'quarantine');
die "unable to create builtin type '$type'\n"
if ($type eq 'pam' || $type eq 'pmg');
--
2.39.5
More information about the pmg-devel
mailing list