From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lceap-0000ED-BV for qemu-devel@nongnu.org; Thu, 26 Feb 2009 06:39:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lcean-0000E1-PJ for qemu-devel@nongnu.org; Thu, 26 Feb 2009 06:39:54 -0500 Received: from [199.232.76.173] (port=56777 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lcean-0000Dy-L4 for qemu-devel@nongnu.org; Thu, 26 Feb 2009 06:39:53 -0500 Received: from mx1.redhat.com ([66.187.233.31]:40267) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lcean-0003X1-9B for qemu-devel@nongnu.org; Thu, 26 Feb 2009 06:39:53 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n1QBdXmh024165 for ; Thu, 26 Feb 2009 06:39:33 -0500 Received: from file.fab.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1QBdYKH021192 for ; Thu, 26 Feb 2009 06:39:34 -0500 Received: from file.fab.redhat.com (localhost.localdomain [127.0.0.1]) by file.fab.redhat.com (8.13.1/8.13.1) with ESMTP id n1QBdXxa003242 for ; Thu, 26 Feb 2009 11:39:33 GMT Received: (from berrange@localhost) by file.fab.redhat.com (8.13.1/8.13.1/Submit) id n1QBdX74003238 for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:39:33 GMT Date: Thu, 26 Feb 2009 11:39:33 +0000 From: "Daniel P. Berrange" Message-ID: <20090226113933.GA29854@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] PATCH: 0/9: Support SASL authentication in VNC server (version 3) Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Previously I provided patches for QEMU's VNC server to support SSL/TLS and x509 certificates. This provides good encryption capabilities for the VNC session. It doesn't really address the authentication problem though. I have been working to create a new authentication type in the RFB protocol to address this need in a generic, extendable way, by mapping the SASL API into the RFB protocol. Since SASL is a generic plugin based API, this will allow use of a huge range of auth mechanims over VNC, without us having to add any more auth code. For example, PAM, Digest-MD5, GSSAPI/Kerberos, One-time key/password, LDAP password lookup, SQL db password lookup, and more. I have got a VNC auth type assigned by the RFB spec maintainers: http://realvnc.com/pipermail/vnc-list/2008-December/059463.html With the full current spec for the SASL extension currently documented here: http://realvnc.com/pipermail/vnc-list/2008-December/059462.html This is the 3rd version of the patches I previously posted: v1: http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00255.html v2: http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00826.html Changes since last time - Split the keymap refactoring out into separate patch - Switch to use sys-queue.h TAILQ for ACL management - Added monitor command to remove an ACL entry - Misc minor bug fixes - Adjust to cope with multiple client connections The combined diffstat for all 9 patches about to follow, is Makefile | 27 + Makefile.target | 5 b/acl.c | 274 ++++++++++++ b/acl.h | 77 +++ b/keymaps.h | 60 ++ b/qemu.sasl | 34 + b/vnc-auth-sasl.c | 636 ++++++++++++++++++++++++++++ b/vnc-auth-sasl.h | 74 +++ b/vnc-auth-vencrypt.c | 175 +++++++ b/vnc-auth-vencrypt.h | 33 + b/vnc-tls.c | 450 ++++++++++++++++++++ b/vnc-tls.h | 76 +++ configure | 34 + curses.c | 3 curses_keys.h | 9 keymaps.c | 45 -- monitor.c | 95 ++++ qemu-doc.texi | 109 ++++ sdl.c | 3 sdl_keysym.h | 7 vl.c | 12 vnc.c | 1108 ++++++++++++++++++-------------------------------- vnc.h | 229 +++++++++- vnc_keysym.h | 7 25 files changed, 2830 insertions(+), 770 deletions(-) -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|