]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #2457: ga: set-user-password: increase maxLength of password
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Nov 2019 15:18:45 +0000 (16:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Nov 2019 15:28:44 +0000 (16:28 +0100)
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 <d.csapak@proxmox.com>
PVE/API2/Qemu/Agent.pm

index 839146c6287562e943d68ff9cb3efcd8bc8b13d8..51fb0d8e089a1544fe75da1a2ae852fe81644d83 100644 (file)
@@ -227,7 +227,7 @@ __PACKAGE__->register_method({
                type => 'string',
                description => 'The new password.',
                minLength => 5,
-               maxLength => 64,
+               maxLength => 1024,
            },
            crypted => {
                type => 'boolean',