Include auth credentials in 'info vnc' ("Daniel P. Berrange")
commita99f4dec46161e16a05f96db09f7617f4dcc9aea
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 6 Mar 2009 20:27:32 +0000 (6 20:27 +0000)
committerMark McLoughlin <markmc@redhat.com>
Wed, 24 Jun 2009 16:39:33 +0000 (24 17:39 +0100)
tree2d3ca80c66d58101bd55cd37c927d52b96d9dde4
parent95b704fb6b2a9a7f62bbbfd1b9fd2e23d1c428a5
Include auth credentials in 'info vnc' ("Daniel P. Berrange")

This patch extends the 'info vnc' monitor output to include information
about the VNC client authentication credentials.

For clients authenticated using SASL, this will output the username.

For clients authenticated using x509 certificates, this will output
the x509 distinguished name.

Auth can be stacked, so both username & x509 dname may be shown.

    Server:
         address: 0.0.0.0:5902
            auth: vencrypt+x509+sasl
    Client:
         address: 10.33.6.67:38621
      x509 dname: C=GB,O=ACME,L=London,ST=London,CN=localhost
        username: admin
    Client:
         address: 10.33.6.63:38620
      x509 dname: C=GB,O=ACME,L=London,ST=London,CN=localhost
        username: admin

(cherry picked from commit 1263b7d6131cdaed2c460cf03757aaaf5696ec47)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
vnc-tls.c
vnc-tls.h
vnc.c