Would you like to learn how to configure Vmware ESXi Active Directory Authentication? In this tutorial, we are going to show you how to authenticate Vmware users using the Microsoft Windows database Active directory and the LDAP protocol.

This tutorial was tested on Vmware ESXi 6.5

This tutorial was tested on Vmware ESXi 6.7

This tutorial does not use Vcenter.

Vmware ESXi Playlist:

On this page, we offer quick access to a list of videos related to Vmware ESXi.

Don’t forget to subscribe to our youtube channel named FKIT.

Windows Domain Controller Firewall

First, we need to create a Firewall rule on the Windows domain controller.

This firewall rule will allow the Vmware server to query the Active Directory database.

On the domain controller, open the application named Windows Firewall with Advanced Security.

Create a new Inbound firewall rule.

zabbix active directory

Select the PORT option.

Select the TCP option.

Select the Specific local ports option.

Enter the following TCP ports: 123, 137, 139, 3268, 389, 445, 464, 7476, 88

Vmware windows firewall port active directory

Select the Allow the connection option.

zabbix windows firewall allow connection

Check the DOMAIN option.

Check the PRIVATE option.

Check the PUBLIC option.

Enter a description to the firewall rule.

Vmware windows firewall description

Congratulations, you have created the required firewall rule.

This rule will allow Vmware ESXi to query the Active Directory database.

Windows Domain Account Creation

Next, we need to create a domain group named: ESX Admins.

The name of the group must be: ESX Admins

Members of the ESX Admins group will be allowed to login on the Vmware ESXi web interface.

Members of the ESX Admins group will have administrative permission over the VMware ESXi server.

On the domain controller, open the application named: Active Directory Users and Computers

Create the new group inside the Users container.

Active Directory New Group

Create a new account named: ESX Admins

Vmware ESX Admins group

Add members to this group.

Vmware ESX Admins members

In our example, the following users were included as members of the ESX Admins group:

• Administrator
• Gohan
• Trunks

Congratulations, you have created the required Active Directory configuration.

Vmware Date and Time Configuration

The Vmware server and the Active Directory domain controller must have the same date and time.

We are going to use NTP to configure the correct date and time on the Vmware ESXi server.

First, you need to access the Vmware web interface.

Open a browser software, enter the IP address of your Vmware ESXi server and access web interface.

vmware web interface

On the prompt screen, enter the administrative login information.

After a successful login, the Vmware dashboard will be displayed.

Vmware web export virtual machine

On the Vmware Dashboard, Access the Manage Menu.

Access the System tab and select the Time and Date option.

Click on the Edit settings option.

Vmware NTP

On the new screen, enter the NTP configuration desired.

Vmware NTP Configuration

In our example, the Vmware will receive the Date and time from NTP server: POOL.NTP.BR

In our example, the Vmware will start the NTP service during boot time.

Now, we need to start the NTP service.

Click on the Actions button.

Select the NTP service menu.

Click on the Start option.

The NTP will start immediately.

Vmware NTP Service Startup

You finished the Vmware ESXi NTP configuration.

Vmware Firewall Configuration

The Vmware firewall must be configured to allow the communication between the ActiveDirectory domain controller and the Vmware ESXi server.

On the Vmware Dashboard, Access the Networking Menu.

Access the Firewall rules tab.

Select the option named Active Directory All.

Click on the Actions button and select the Enable option.

Vmware Active Directory Firewall

You finished the Vmware ESXi Firewall configuration.

Vmware DNS Settings

The Vmware ESXi server must be configured as a DNS client of the Active Directory domain.

On the Vmware Dashboard, Access the Networking Menu.

Access the TCP/IP stacks tab.

Click on the Default TCP/IP stack option.

On the new screen, click on the Actions menu and select the Edit settings option.

Vmware ESXi Networking

On the Top of the screen, click on the Actions menu and select the Edit settings option.

Vmware ESXi Configure Networking

On this screen, you are able to change the following network configuration:

• Hostname – Vmware server hostname
• DNS Domain Name – Active Directory Domain name
• DNS Servers – Domain controllers IP address

You finished the Vmware ESXi DNS configuration.

Vmware Joining the Active Directory Domain

The Vmware ESXi server must be a member of the Active directory domain.

On the Vmware Dashboard, Access the Manage Menu.

Access the Security & Users tab.

Select the Authentication option and click on the Join domain button.

Vmware ESXi Join Domain

On the new screen, you need to configure the following items:

• Domain name – Your Active Directory Domain
• Use authentication proxy – No
• Username – Domain administrator account
• Password – Domain administrator password

After finishing the configuration, click on the Join domain button.

Wait for the system to confirm that your Vmware ESXi server is now a member of the domain.

Vmware Join Domain

You finished the Vmware ESXi Active Directory integration.

You finished the Vmware ESXi DNS configuration.

Vmware Active Directory Authentication

All members of the ESX Admins group are now able to remotely login on the Vmware ESXi server.

Open a browser software, enter the IP address of your Vmware ESXi server and access web interface.

vmware active directoly authentication

On the prompt screen, enter the login information of a user that is a member of the ESX Admins group.

Keep in mind, that you need to enter the information using this format: USERNAME@DOMAIN 

After a successful login, the Vmware dashboard will be displayed.

Vmware web export virtual machine

You successfully integrated the Vmware ESXi login to the Active Directory domain.