]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Quote client identity in SASL whitelist log message
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 30 Nov 2012 15:05:48 +0000 (15:05 +0000)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:53:41 +0000 (16:53 -0500)
When seeing a message

 virNetSASLContextCheckIdentity:146 : SASL client admin not allowed in whitelist

it isn't immediately obvious that 'admin' is the identity
being checked. Quote the string to make it more obvious
(cherry picked from commit 07da0a6b54057f48238e35f1756d137c10e0bef5)

src/rpc/virnetsaslcontext.c

index e65ff6fa82538e4637c4d2159882d74c1619f8bb..8434f3c4114273f6ee500c7f6fb8e951f621f324 100644 (file)
@@ -163,7 +163,7 @@ int virNetSASLContextCheckIdentity(virNetSASLContextPtr ctxt,
     }
 
     /* Denied */
-    VIR_ERROR(_("SASL client %s not allowed in whitelist"), identity);
+    VIR_ERROR(_("SASL client identity '%s' not allowed in whitelist"), identity);
 
     /* This is the most common error: make it informative. */
     virReportError(VIR_ERR_SYSTEM_ERROR, "%s",