root / qemu.sasl @ f8bfb1dc
History | View | Annotate | Download (1.3 kB)
1 | 2f9606b3 | aliguori | # If you want to use the non-TLS socket, then you *must* include |
---|---|---|---|
2 | 2f9606b3 | aliguori | # the GSSAPI or DIGEST-MD5 mechanisms, because they are the only |
3 | 2f9606b3 | aliguori | # ones that can offer session encryption as well as authentication. |
4 | 2f9606b3 | aliguori | # |
5 | 2f9606b3 | aliguori | # If you're only using TLS, then you can turn on any mechanisms |
6 | 2f9606b3 | aliguori | # you like for authentication, because TLS provides the encryption |
7 | 2f9606b3 | aliguori | # |
8 | 2f9606b3 | aliguori | # Default to a simple username+password mechanism |
9 | 2f9606b3 | aliguori | # NB digest-md5 is no longer considered secure by current standards |
10 | 2f9606b3 | aliguori | mech_list: digest-md5 |
11 | 2f9606b3 | aliguori | |
12 | 2f9606b3 | aliguori | # Before you can use GSSAPI, you need a service principle on the |
13 | 2f9606b3 | aliguori | # KDC server for libvirt, and that to be exported to the keytab |
14 | 2f9606b3 | aliguori | # file listed below |
15 | 2f9606b3 | aliguori | #mech_list: gssapi |
16 | 2f9606b3 | aliguori | # |
17 | 2f9606b3 | aliguori | # You can also list many mechanisms at once, then the user can choose |
18 | 2f9606b3 | aliguori | # by adding '?auth=sasl.gssapi' to their libvirt URI, eg |
19 | 2f9606b3 | aliguori | # qemu+tcp://hostname/system?auth=sasl.gssapi |
20 | 2f9606b3 | aliguori | #mech_list: digest-md5 gssapi |
21 | 2f9606b3 | aliguori | |
22 | 2f9606b3 | aliguori | # Some older builds of MIT kerberos on Linux ignore this option & |
23 | 2f9606b3 | aliguori | # instead need KRB5_KTNAME env var. |
24 | 2f9606b3 | aliguori | # For modern Linux, and other OS, this should be sufficient |
25 | 2f9606b3 | aliguori | keytab: /etc/qemu/krb5.tab |
26 | 2f9606b3 | aliguori | |
27 | 2f9606b3 | aliguori | # If using digest-md5 for username/passwds, then this is the file |
28 | 2f9606b3 | aliguori | # containing the passwds. Use 'saslpasswd2 -a qemu [username]' |
29 | 2f9606b3 | aliguori | # to add entries, and 'sasldblistusers2 -a qemu' to browse it |
30 | 2f9606b3 | aliguori | sasldb_path: /etc/qemu/passwd.db |
31 | 2f9606b3 | aliguori | |
32 | 2f9606b3 | aliguori | |
33 | 2f9606b3 | aliguori | auxprop_plugin: sasldb |