NSX Manager acts as an LDAP client, and interfaces with LDAP servers.
Three identity sources can be configured for user authentication. When a user logs into NSX Manager, the user is authenticated against the appropriate LDAP server of the user's domain. The LDAP server responds back with the authentication results, and the user group information. Once successfully authenticated, the user is assigned the roles corresponding to the groups that they belong to.
When integrating with Active Directory, NSX Manager allows users to log in using their samAccountName, or userPrincipalName. If the @domain portion of the userPrincipalName does not match the domain of the Active Directory instance, then you should also configure an alternative domain in the LDAP configuration for NSX.
In the following example, the domain of the Active Directory instance is "example.com" and a user with a samAccountName "jsmith" has a userPrincipalName of John.Smith@acquiredcompany.com. If you configure an alternative domain of "acquiredcompany.com", then this user can log in as "firstname.lastname@example.org" using the samAccountName, or as John.Smith@acquiredcompany.com using the userPrincipalName.
Logging in as email@example.com will not work because the samAccountName can only used with the primary domain.
- Navigate to .
- Click Add Identity Source.
- Enter a Name for the identity source.
- Enter the Domain Name This must correspond to the domain name of your Active Directory server, if using Active Directory.
- Select the type: either Active Directory over LDAP or Open LDAP.
- Click Set to configure LDAP servers. You can add up to three LDAP servers for failover support, to each domain.
The hostname or IP address of your LDAP server.
LDAP Protocol Select the protocol: LDAP (unsecured) or LDAPS (secured). Port The default port is populated based on the selected protocol. If your LDAP server is running on a non-standard port, you can edit this text box to give the port number. Connection Status After filling in the mandatory text boxes, including the LDAP server information, you can click Connection Status to test the connection. Use StartTLS
If selected, the LDAPv3 StartTLS extension is used to upgrade the connection to use encryption. To determine if you should use this option, consult your LDAP server administrator.This option can only be used if LDAP protocol is selected.
If you are using LDAPS or LDAP + StartTLS, this text box should contain the PEM-encoded X.509 certificate of the server. If you leave this text box blank and click the Check Status link, NSX connects to the LDAP server. NSX then retrieves the LDAP server's certificate, and asks if you want to trust that certificate. If you have verified that the certificate is correct, click OK, and the certificate text box will be populated with the retrieved certificate.
Bind Identity The format is user@domainName, or you can specify the distinguished name.
For Active Directory, you can use either the userPrincipalName (user@domainName) or the distinguished name. For OpenLDAP, you must supply a distinguished name.
This text box is required unless your LDAP server supports anonymous bind, then it is optional. Consult your LDAP server administrator if you are not sure.
Password Enter a password for the LDAP server.
This text box is required unless your LDAP server supports anonymous bind, then it is optional. Consult your LDAP server administrator.
- Click Add.
- Enter the Base DN.
To add an Active Directory domain, a base distinguished name (Base DN) is needed. A Base DN is the starting point that an LDAP server uses when searching for users authentication within an Active Directory domain. For example, if your domain name is corp.local the DN for the Base DN for Active Directory is "DC=corp,DC=local".
All of the user and group entries you intend to use to control access to NSX-T Data Center must be contained within the LDAP directory tree rooted at the specified Base DN. If the Base DN is set to something too specific, such as an Organizational Unit deeper in your LDAP tree, NSX may not be able to find the entries it needs to locate users and determine group membership. Selecting a broad Base DN is a best practice if you are unsure.
- Your NSX-T Data Center end users can now log in using their login name followed by @ and the domain name of your LDAP server, user_name@domain_name.
What to do next
Assign roles to users and groups. See Add a Role Assignment or Principal Identity.