]> 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)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 30 Nov 2012 19:16:05 +0000 (19:16 +0000)
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

src/rpc/virnetsaslcontext.c

index 3001871bcdb0db47fad330644a9a72e3331db60b..b6b68d5556792030fb4255a50d3cad7fca37a3c3 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",