Loading

×Sorry to interrupt
CSS Error

Refresh

My Subscriptions

Loading

Knowledge Base

Using the ESX Admins AD group on ESXi: domain membership and user authentication (1025569)

Last Updated: 7/20/2023Categories: Best PracticesTotal Views: 56749Language:
Chinese (Simplified)JapaneseEnglish

5 like this article

Subscribe to get an email
newsletter with new updates

5 people found this helpful Please provide article feedback:

Symptoms

After successfully joining an ESXi host to an Active Directory (AD) domain, you see this log spew in the /var/log/messages or /var/log/syslog.log file on the ESXi host:

nssquery: Group lookup failed for 'AD Domain Name\ESX Admins

In /var/log/hostd.log file, you see an error similar to:

[25CC6B90 warning 'UserDirectory'] Group lookup failed for 'AD_Domain_Name\ESX Admins'

The ESX Admins group does not exist in the AD domain.

If the ESX Admins group exists in the AD domain, joining an ESXi host to an Active Directory domain grants it the AD Domain Name\esx admins Administrator role.

Removing the Administrator role from the group is initially successful, but restarting the ESXi host grants the Administrative role again to the group.

Purpose

This article provides information on using the ESX Admins AD group and describes alternate methods of granting AD users/groups access to the ESXi hosts.

Cause

If the AD group that is configured for Administrator for ESXi hosts is not named ESX Admins, and an ESX Admins group doesn't exist in the AD, this error message will appear.

Impact / Risks

No functional impacts to ESXi operations.

Resolution

By default, an ESXi host joined to an AD domain queries the domain for the ESX Admins group, and this behavior is not configurable. If the group exists in AD, it is granted the Administrator role on the host, and any user accounts in that group receive full administrative privileges on the host and can log in to the host through SSH.

If this behavior is desirable, create the ESX Admins group in the AD domain and populate it with user accounts or groups to which administrative access to the hosts should be granted. Also, additional AD user accounts, and groups can be granted with appropriate access to hosts.

If granting the Administrator role to user accounts or groups in the ESX Admins group is not desirable, try one of these options.

Remove or do not create an ESX Admins group in AD. Grant other AD accounts/groups with appropriate roles. However, you continue to see the log spew in the /var/log/messages or /var/log/syslog.log file on the ESXi hosts.

Change the role assigned to the ESX Admins group from Administrator to No Access . Grant other AD accounts/groups the appropriate roles. In this case, any user accounts in the ESX Admins group cannot access the ESXi host. Also, ensure that any users that need access (administrative or otherwise) to the host are removed from the ESX Admins group.

Assign the Administrator role to the ESX Admins group, but ensure there are no user accounts or groups in this group. Grant other AD accounts/groups the appropriate roles. This requires the least administrative effort, but you must ensure that user accounts or groups are not added to the ESX Admins group later.

Workaround

Change the default esxAdminsGroup from ESX Admins to the domain group that are the administrators:

Navigate to the ESXi host in the vCenter vSphere Client (HTML5)

Click the Configuration tab and click Advanced Settings

Navigate to Config > HostAgent

Change the Config.HostAgent.plugins.hostsvc.esxAdminsGroup setting to match the Administrator group that you want to use in the Active Directory. These settings take effect within a minute, and no reboot is required.

Related Information

For more information, see the vSphere Datacenter Administration Guide. ESX/ESXi 4.1 および ESXi 5.0 ドメイン メンバーとユーザー認証による ESX Admins AD グループの使用
使用具有 ESX/ESXi 4.1 和 ESXi 5.0 域成员资格和用户身份验证的 ESX Admins AD 组

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware ESXi

Related Versions:

VMware vSphere ESXi 7.0.x

VMware ESXi 6.5.x

VMware ESXi 6.0.x

Take Our Survey

Cookie Preference Center

General Information on cookies

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Please confirm your settings by refreshing the page.

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Please confirm your settings by refreshing the page.

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Support Assistant