Search
Plugins > vCenter Server 5.5.3 > VcGuestAuthManager > acquireCredentialsInGuest

Method acquireCredentialsInGuest(VcVirtualMachine vm, VcGuestAuthentication requestedAuth, Number sessionID)

Authenticates in the guest and returns a VcGuestAuthentication object with the acquired credentials for use in subsequent guest operation calls.

This can be used to authenticate inside the guest and obtain a VcGuestAuthentication object for supported authentication types. This operation is not needed for Name and Password Authentication. To use Name and Password Authentication, see VcNamePasswordAuthentication. For SSPI authentication, requestAuth should be of the type VcSSPIAuthentication.

Returns

VcGuestAuthentication

Arguments

Name Type Description
vm VcVirtualMachine MoRef of the VM to perform the operation on.
requestedAuth VcGuestAuthentication The guest authentication data used to acquire credentials. See <a href="VcGuestAuthentication.html">VcGuestAuthentication</a>.
sessionID Number The sessionID number should be provided only when responding to a server challenge. The sessionID number to be used with the challenge is found in the <a href="VcGuestAuthenticationChallenge.html">VcGuestAuthenticationChallenge</a> object.