Received: from eggs.gnu.org ([2001:4830:134:3::10]:52042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOlL5-0001lG-8c for qemu-devel@nongnu.org; Sat, 15 Mar 2014 05:57:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOlKz-0004Qh-Hq for qemu-devel@nongnu.org; Sat, 15 Mar 2014 05:57:11 -0400 From: Michael Tokarev Date: Sat, 15 Mar 2014 13:56:47 +0400 Message-Id: <1394877419-19949-2-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1394877419-19949-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1394877419-19949-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PULL 01/13] sasl: Avoid 'Could not find keytab file' in syslog List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Michael Tokarev , Laszlo Ersek From: Laszlo Ersek The "keytab" specification in "qemu.sasl" only makes sense if "gssapi" is selected in "mech_list". Even if the latter is not done (ie. "gssapi" is not selected), the cyrus-sasl library tries to open the specified keytab file, although nothing has a use for it outside the gssapi backend. Since the default keytab file "/etc/qemu/krb5.tab" is usually absent, the cyrus-sasl library emits a warning to syslog at startup, which tends to annoy users (who didn't ask for gssapi in the first place). Comment out the keytab specification per default. "qemu-doc.texi" already correctly explains how to use "mech_list: gssapi" together with "keytab:". See also: - upstream libvirt commit fe772f24, - Red Hat Bugzilla . Signed-off-by: Laszlo Ersek ACKed-By: Cole Robinson Signed-off-by: Michael Tokarev --- qemu.sasl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qemu.sasl b/qemu.sasl index 9dc8323..64fdef3 100644 --- a/qemu.sasl +++ b/qemu.sasl @@ -22,7 +22,9 @@ mech_list: digest-md5 # Some older builds of MIT kerberos on Linux ignore this option & # instead need KRB5_KTNAME env var. # For modern Linux, and other OS, this should be sufficient -keytab: /etc/qemu/krb5.tab +# +# There is no default value here, uncomment if you need this +#keytab: /etc/qemu/krb5.tab # If using digest-md5 for username/passwds, then this is the file # containing the passwds. Use 'saslpasswd2 -a qemu [username]' -- 1.7.10.4