From ba728fb53599ddf6a20eb297d0a9f248243d1015 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 11 Nov 2019 16:18:45 +0100 Subject: [PATCH] fix #2457: ga: set-user-password: increase maxLength of password SHA-512 crypted passwords are longer than 64 byte, and it also does not make sense to limit passwords to such a short length. Increase to 1024, that should be enough for a while, but still limits maximal password payload to avoid DOS or the like. Signed-off-by: Dominik Csapak --- PVE/API2/Qemu/Agent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu/Agent.pm b/PVE/API2/Qemu/Agent.pm index 839146c6..51fb0d8e 100644 --- a/PVE/API2/Qemu/Agent.pm +++ b/PVE/API2/Qemu/Agent.pm @@ -227,7 +227,7 @@ __PACKAGE__->register_method({ type => 'string', description => 'The new password.', minLength => 5, - maxLength => 64, + maxLength => 1024, }, crypted => { type => 'boolean',