mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-02 21:32:52 +00:00
dfb3804d47
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 <https://bugzilla.redhat.com/show_bug.cgi?id=1018434>. Signed-off-by: Laszlo Ersek <lersek@redhat.com> ACKed-By: Cole Robinson <crobinso@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
# If you want to use the non-TLS socket, then you *must* include
|
|
# the GSSAPI or DIGEST-MD5 mechanisms, because they are the only
|
|
# ones that can offer session encryption as well as authentication.
|
|
#
|
|
# If you're only using TLS, then you can turn on any mechanisms
|
|
# you like for authentication, because TLS provides the encryption
|
|
#
|
|
# Default to a simple username+password mechanism
|
|
# NB digest-md5 is no longer considered secure by current standards
|
|
mech_list: digest-md5
|
|
|
|
# Before you can use GSSAPI, you need a service principle on the
|
|
# KDC server for libvirt, and that to be exported to the keytab
|
|
# file listed below
|
|
#mech_list: gssapi
|
|
#
|
|
# You can also list many mechanisms at once, then the user can choose
|
|
# by adding '?auth=sasl.gssapi' to their libvirt URI, eg
|
|
# qemu+tcp://hostname/system?auth=sasl.gssapi
|
|
#mech_list: digest-md5 gssapi
|
|
|
|
# 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
|
|
#
|
|
# 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]'
|
|
# to add entries, and 'sasldblistusers2 -f [sasldb_path]' to browse it
|
|
sasldb_path: /etc/qemu/passwd.db
|
|
|
|
|
|
auxprop_plugin: sasldb
|
|
|