mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-08-24 09:49:59 +03:00
esx: Change the default username when connecting to VCenter
While it's true that the default username is: administrator@${SSO-Domain} in majority of cases the ${SSO-Domain} is "vsphere.local". But our code (and what virsh displays then) says it's just "administrator". This is wrong also from a different POV: the username must contain the suffix no matter what and our default suggests otherwise. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2181234 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
@ -701,7 +701,8 @@ esxConnectToVCenter(esxPrivate *priv,
|
|||||||
if (conn->uri->user) {
|
if (conn->uri->user) {
|
||||||
username = g_strdup(conn->uri->user);
|
username = g_strdup(conn->uri->user);
|
||||||
} else {
|
} else {
|
||||||
if (!(username = virAuthGetUsername(conn, auth, "esx", "administrator",
|
if (!(username = virAuthGetUsername(conn, auth, "esx",
|
||||||
|
"administrator@vsphere.local",
|
||||||
hostname)))
|
hostname)))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user