Include auth credentials in 'info vnc' ("Daniel P. Berrange")
commite61c19737387273e305a2da5c9b28fe42e2eef67
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 6 Mar 2009 20:27:32 +0000 (6 20:27 +0000)
committerMark McLoughlin <markmc@redhat.com>
Tue, 4 Aug 2009 15:16:30 +0000 (4 16:16 +0100)
tree32c1617a8324fb016a25113485525fb4b12564b9
parent1b4f956f40315ecc756e34cdeb923424c7095684
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>
Fedora-patch: 07-vnc-monitor-authinfo.patch
vnc-tls.c
vnc-tls.h
vnc.c