Home Resources ESX and ESXi Server
Active Directory Authentication on ESX Print E-mail

To enable active directory authentication on ESX servers you need to do the following...

1. Login to the ESX server as root. You may have to do this at the console, as the default configuration of SSH will deny access to the root user.

2.  Run the following command, placing your own domain controller server name and domain name in the appropriate places.
/usr/sbin/esxcfg-auth --enablead --addomain=yourdomain.tld --addc=dc1.yourdomain.tld --krb5realm=yourdomain.tld --krb5kdc=dc1.yourdomain.tld --krb5adminserver=dc1.yourdomain.tld --krb5enable

3. Add a user from active directory that will be allowed to login to the ESX server.
/usr/sbin/useradd john.doe

NOTES:
Repeat steps 1 to 3 for each ESX server you have. Once this is complete at least the passwords will not have to be kept being updated, AD will manage that.
Repeat step 3 for each user you want to be able to login, not all users will be allowed to login, you have to specify which.

If you have more than one domain controller you can specify the "--addc=" option again when you run esxcfg-auth for redundancy.
Tested working on ESX 3.5 using active directory 2003. (Let me know if you have this working on anything else).

 

vcplogo

  

 

DISCLAIMER: All advice, tips, guides and other information on this website is provided as-is with no warranty or guarantee. While most information is correct to the best of my knowledge, I am not reponsible for any issues that may arise in using the information, and you do so at your own risk. As always before doing anything; check, double check, test and always make a backup.

 

Help VMadmin

All resources on this site are provided absolutley free. However it takes time and money to keep the site running. If any information has been helpful to you or your company, and you wish to make a donation to help keep VMadmin.co.uk running you can do so via paypal, and it would be much appreciated.
Click to donate to VMadmin.co.uk via paypal.