# Data Object - NamePasswordAuthentication(vim.vm.guest.NamePasswordAuthentication)

Extends
  GuestAuthentication
Since
  vSphere API 5.0

## Data Object Description

NamePasswordAuthentication contains the information necessary to authenticate within a guest using a name and password. This is the typical method for authentication within a guest and the one currently used by VIX. This method of authentication is stateless.

To use NamePasswordAuthentication, populate username and password with the appropriate login information. You should not use AcquireCredentialsInGuest or ReleaseCredentialsInGuest for NamePasswordAuthentication.

Once populated, you can use NamePasswordAuthentication in any guest operations function call.

Properties

Name | Type | Description
--- | --- | ---
password | xsd:string | The password for Name-Password authentication.
username | xsd:string | The user name for Name-Password authentication.
Properties inherited from GuestAuthentication
interactiveSession
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="NamePasswordAuthentication"> <complexContent> <extension base="vsan:GuestAuthentication"> <sequence> <element name="username" type="xsd:string"/> <element name="password" type="xsd:string"/> </sequence> </extension> </complexContent> </complexType>