Bug 1663395
| Summary: | 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 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | wangyuehui <345036846> |
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
| Status: | CLOSED NOTABUG | QA Contact: | Lili Zhu <lizhu> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | 345036846, yalzhang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-04-17 13:24:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
wangyuehui
2019-01-04 07:58:40 UTC
libvirtd log: libvirtd: 2019-01-04 07:26:51.224+0000: 286002: error : virNetSASLSessionServerStart:544 : authentication failed: Failed to start SASL negotiation: -20 (SASL(-13): user not found: unable to canonify user and get auxprops) libvirtd: 2019-01-04 07:26:51.224+0000: 286002: error : remoteDispatchAuthSaslStart:3596 : authentication failed: authentication failed libvirtd: 2019-01-04 07:26:51.225+0000: 286000: error : virNetSocketReadWire:1791 : Cannot recv data: Input/output error if I comment the auth_tls = "sasl" line in libvirtd.conf, then "virsh -c qemu+tls://ip/system" will login successfully. I am confused by the libvirtd error log "user not found" because I have already add this user and have no idear when google it. When I use libvirt 3.9.0 on other kvm host, it works for me. Does this also happen if you connect via a hostname matching the output of sasldblistusers2? Alternatively, supply the full username (admin@c2-app-kvm1) to the "authentication name:" prompt. Either way, this does not seem like a libvirt bug. two resolvtions: 1. when use sasldb to create user, need to give "-f /etc/libvirt/passwd.db", if no "-f" options, in some version of OS, it is not store in " /etc/libvirt/passwd.db" 2. in some version of libvirtd, use full username and hostname as admin@c2-app-kvm1 to login to libvirtd |