<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I am trying to set up sasl authentication in virt-manager. I read in one existing bug, that it is better to use tls for encryption and sasl for authentication, but not use  sasl for both.</div><div><br></div><div>I configured tls, it was fine. Then I created a user "u" on server and modified libvirtd.conf.</div><div><br></div><div>I set auth_tls = "sasl" there and mech_list: scram-sha-1 in sasl2 config for libvirt.</div><div><br></div><div>The output of sasl:</div><div>u@ubuntu2:~$ sudo sasldblistusers2 -f /etc/libvirt/passwd.db
<br>u@ubuntu: userPassword</div><div><br></div><div>Then I connect to server using tls and entering as the user u.</div><div><br></div><div>Then I have the following message:</div><div><br></div><div>Unable to connect to libvirt qemu+tls://<a href="http://u@192.168.246.135/system">u@192.168.246.135/system</a>.
<br> <br>authentication failed: authentication failed</div><div><br></div><div>What are the correct steps to set up everything right. I just followed this: set up tls, set up user, modify config file, relaunch and connect.<br></div></div></div></div></div></div>