mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 07:25:53 +03:00
[GH-ISSUE #397] Maybe the computer login name need more string #248
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#248
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lushtech on GitHub (Dec 12, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/397
My comuputer software installed:
ubun18.04LTS
qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.34)
ibvirt version: 4.0.0, package: 1ubuntu8.17 (Marc Deslauriers marc.deslauriers@ubuntu.com Wed, 06 May 2020 14:18:23 -0400)
The issue description
And use these below command is normal:
virsh listsudo saslpasswd2 -a libvirt virtadminAnd I check the username virtadmin ,
sudo sasldblistusers2 -f /etc/libvirt/passwd.dbIt is ok ,result is
But when I use the command below and put in the usename and password :
virsh -c qemu+tcp://localhost/system listIt show error:
In the sametime I check the libvirt.log,it shows error message:
2020-12-12 16:47:51.760+0000: 2715: error : virNetSASLSessionServerStep:594 : authentication failed: Failed to start SASL negotiation: -20 (SASL(-13): user not found: unable to canonify user and get auxprops)2020-12-12 16:47:51.760+0000: 2715: error : remoteDispatchAuthSaslStep:3625 : authentication failed: authentication failed2020-12-12 16:47:51.762+0000: 2706: error : virNetSocketReadWire:1811 : End of file while reading data: Input/output errorThe issue located
I took my one daytime to find how to solve the problem:
In some version of libvirtd or sasl, must use full username and hostname as admin@hostname to login to libvirtd.
I test login like this:
virsh -c qemu+tcp://localhost/system listwhen ask put in the usename ,I put in virtadmin@dell-ubuntu-server1804 not just virtadmin,and then password,and it login successful.
The issue for discuss
But now ,another problem coming, the webvirtcloud login name it is not enough long in the creat computer webpage.So I can not use virtadmin@dell-ubuntu-server1804 to fill the login field.
@catborise commented on GitHub (Dec 12, 2020):
Did you change the digest mechanism.?
Look to that question:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1835427
Change mechanism to digest-md5 , probably the problem will be solved.
@lushtech commented on GitHub (Dec 13, 2020):
Yes,I had changed mechanism to digest-md5,but the problem still appears.
But I have another computer installed With ubuntu-18.04.5-live-server-amd64.iso ,no this problem.
The problem’computer installed with Ubuntu-18.04-server-arm64.iso,because I use this Ubuntu version made a software raid1 for my hard disk when installing os system.
Maybe the difference between no live and live Ubuntu version cause the problem.And someone discussed the same issue in Bug 1663395 - when libvirtd use listen_tls and auth_tls="sasl", libvirtd report error: authentication failed: Failed to start SASL negotiation: -20 (SASL(-13): user not found: unable to canonify user and get auxprops.
You inspired me. I look at the code digestmd5.c in the cyrussasl,because libvirt.org said: Libvirt integrates with the cyrus-sasl library to provide a pluggable authentication system using the SASL protocol. And I found some scripts in digestmd5.c :
The defaul value client_ignores_realm = 0
and a function check the parameters
and another function do the real thing,but I can not find why I no use realm in virsh command and then here run into the
"unable to canonify user and get auxprops".
Maybe someone familiar with the cyrus-sasl can find the reason.