Blame SOURCES/0004-sasl-Emit-vnc-auth-failure-signal-on-SASL-auth-failu.patch

d1efb8
From 9cadf0ab5071d14066af233a11f994b166454267 Mon Sep 17 00:00:00 2001
d1efb8
From: Christophe Fergeau <cfergeau@redhat.com>
d1efb8
Date: Wed, 9 Jan 2019 14:01:23 +0100
d1efb8
Subject: [PATCH] sasl: Emit vnc-auth-failure signal on SASL auth failures
d1efb8
d1efb8
When the SASL username or password are wrong, at the moment client
d1efb8
application will not get any specific notification for it, they will
d1efb8
just know that the remote connection was closed because of an error.
d1efb8
d1efb8
This commit adds the emission of the vnc-auth-failure signal when
d1efb8
vnc_connection_perform_auth_sasl() fails.
d1efb8
d1efb8
https://bugzilla.redhat.com/show_bug.cgi?id=1456175
d1efb8
d1efb8
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
d1efb8
(cherry picked from commit 3f4f79ffbf74f31ae65055c03a8eb523ac631422)
d1efb8
Resolves: rhbz#1688275
d1efb8
---
d1efb8
 src/vncconnection.c | 1 +
d1efb8
 1 file changed, 1 insertion(+)
d1efb8
d1efb8
diff --git a/src/vncconnection.c b/src/vncconnection.c
d1efb8
index 58455df..aceb31d 100644
d1efb8
--- a/src/vncconnection.c
d1efb8
+++ b/src/vncconnection.c
d1efb8
@@ -4419,6 +4419,7 @@ static gboolean vnc_connection_perform_auth_sasl(VncConnection *conn)
d1efb8
  error:
d1efb8
     if (saslconn)
d1efb8
         sasl_dispose(&saslconn);
d1efb8
+    vnc_connection_auth_failure(conn, "Unknown authentication failure");
d1efb8
     return FALSE;
d1efb8
 }
d1efb8
 #endif /* HAVE_SASL */