Use the following procedure to add an ESXi host as a vMA target for Active Directory authentication.

1

Log in to vMA as vi-admin.

2

Add an ESXi server as a vMA target by running the following command: vifp addserver server3.mycomp.com --authpolicy adauth --username ADDOMAIN\\user1

Here, --authpolicy adauth indicates that the target needs to use the Active Directory authentication.

If you run this command without the --username option, vMA prompts for the name of the user that can connect to the ESXi Server. You can specify this user name as shown in the following example: Enter username for machinename.example.com:ADDOMAIN\user1

If --authpolicy is not specified in the command, then fpauth is taken as the default authentication policy.

3

Verify that the target server has been added.

The display shows all target servers and the authentication policy used for each target.

vifp listservers --long
server1.mycomp.com ESX adauth
server2.mycomp.com ESX fpauth
server3.mycomp.com ESXi adauth
vc1.mycomp.com vCenter adauth
4

Set the target as the default for the current session: vifptarget --set | -s <server>

5

Verify that you can run a vSphere CLI command without authentication by running a command, for example: esxcli network nic list

The command runs without prompting for authentication information.

Important

If the name of a target server changes, you must remove the target server by using vifp removeserver with the old name, then add the server using vifp addserver with the new name.