qemu/ui
Anthony Liguori 1cd20f8bf0 vnc: Fix password expiration through 'change vnc ""' (v2)
commit 52c18be9e9 introduced a regression in the
change vnc password command that changed the behavior of setting the VNC
password to an empty string from disabling login to disabling authentication.

This commit refactors the code to eliminate this overloaded semantics in
vnc_display_password and instead introduces the vnc_display_disable_login.   The
monitor implementation then determines the behavior of an empty or missing
string.

Recently, a set_password command was added that allows both the Spice and VNC
password to be set.  This command has not shown up in a release yet so the
behavior is not yet defined.

This patch proposes that an empty password be treated as an empty password with
no special handling.  For specifically disabling login, I believe a new command
should be introduced instead of overloading semantics.

I'm not sure how Spice handles this but I would recommend that we have Spice
and VNC have consistent semantics here for the 0.14.0 release.

Reported-by: Neil Wilson <neil@aldur.co.uk>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
v1 -> v2
 - Add a proper return to make sure that login is really disabled instead of
   relying on the VNC server to treat empty passwords specially
2011-02-01 15:16:48 -06:00
..
cocoa.m Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00
curses_keys.h curses: Fix control-{@[\]^_} and ESC 2010-10-21 18:31:28 +02:00
curses.c curses: Fix control-{@[\]^_} and ESC 2010-10-21 18:31:28 +02:00
d3des.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
d3des.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00
keymaps.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
keymaps.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
qemu-spice.h vnc/spice: add set_passwd monitor command. 2010-12-09 14:23:25 +01:00
sdl_keysym.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl_zoom_template.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl_zoom.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl_zoom.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl.c sdl: remove unused variable 2011-01-29 22:52:33 +00:00
spice-core.c vnc/spice: add set_passwd monitor command. 2010-12-09 14:23:25 +01:00
spice-display.c spice-display: replace private lock with qemu mutex. 2010-11-02 12:43:04 +01:00
spice-display.h spice-display: replace private lock with qemu mutex. 2010-11-02 12:43:04 +01:00
spice-input.c spice: add tablet support 2010-09-21 18:36:43 +02:00
vnc_keysym.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc-auth-sasl.c vnc-auth-sasl: fix a memory leak 2011-01-12 19:48:56 +00:00
vnc-auth-sasl.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc-auth-vencrypt.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc-auth-vencrypt.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc-enc-hextile-template.h vnc: rename vnc-encoding-* vnc-enc-* 2010-07-26 17:36:13 -05:00
vnc-enc-hextile.c vnc: encapsulate encoding members 2010-07-26 17:36:14 -05:00
vnc-enc-tight.c Fix spelling in comments 2010-10-05 13:53:56 -05:00
vnc-enc-tight.h vnc: tight add PNG encoding 2010-07-26 17:36:14 -05:00
vnc-enc-zlib.c vnc: encapsulate encoding members 2010-07-26 17:36:14 -05:00
vnc-jobs-async.c vnc: threaded VNC server 2010-07-26 17:36:14 -05:00
vnc-jobs-sync.c vnc: threaded VNC server 2010-07-26 17:36:14 -05:00
vnc-jobs.h vnc: threaded VNC server 2010-07-26 17:36:14 -05:00
vnc-palette.c vnc: tight: stop using qdict for palette stuff 2010-07-26 17:36:14 -05:00
vnc-palette.h vnc: tight: stop using qdict for palette stuff 2010-07-26 17:36:14 -05:00
vnc-tls.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc-tls.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc.c vnc: Fix password expiration through 'change vnc ""' (v2) 2011-02-01 15:16:48 -06:00
vnc.h vnc: support password expire 2010-12-09 14:23:24 +01:00
x_keymap.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
x_keymap.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00