Integrate with Nutanix Prism Element
Support level: Community
What is Nutanix Prism Element?
Localized cluster manager responsible for local cluster management and operations. Every Nutanix Cluster has Prism Element built-in.
-- https://www.nutanixbible.com/3a-book-of-prism-architecture.html
Preparation
The following placeholders are used in this guide:
ldap.companyis the FQDN of the authentik LDAP outpost.
Prism Element authenticates users against LDAP. Prism Element must be able to reach the authentik LDAP outpost on port 636 and trust the certificate that the outpost presents for ldap.company.
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
authentik configuration
To support the integration of Prism Element with authentik, you need to create groups for Prism Element access and configure an LDAP provider and outpost.
Create access groups
Create groups that Prism Element maps to roles. Prism Element grants a role to a group rather than to individual users, so create one group for each role that you want to assign.
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Directory > Groups and click Create.
- Set Name to
npe-usersand click Create. - Open the group, select the Users tab, and add the users who should have non-administrative access to Prism Element.
- Repeat these steps with the name
npe-admins, and add the users who should have Prism Element administrator privileges.
Create the LDAP resources
Follow the LDAP provider setup to create or reuse an LDAP application and provider, create a service account with LDAP search permissions, and create an LDAP outpost.
Use the following Prism Element settings while completing the LDAP provider setup:
- Use
npe-ldapas the service account username. Note its password and full DN for the Prism Element configuration. - Note the LDAP provider's Base DN as
<base_dn>. - On the LDAP provider, set Certificate to the certificate that Prism Element should trust for
ldap.company. - Set TLS Server Name to
ldap.company. - Select the Prism Element LDAP application on the outpost and expose the outpost as
ldap.company.
If you configure application bindings, ensure that npe-ldap, npe-users, and npe-admins have access to the LDAP application.
Nutanix Prism Element configuration
Configure LDAP authentication
Selecting Directory Service adds LDAP as an authentication type. Prism Element keeps accepting local accounts.
- Log in to Prism Element as a user with administrator privileges.
- Click the gear icon in the top right and navigate to Users and Roles > Authentication.
- On the Directory List tab, click Add.
- Configure the following settings. Replace
<base_dn>with the Base DN of the authentik LDAP provider.- Directory Type:
OpenLDAP - Name:
authentik - Domain: the base DN in dotted form. For example, if
<base_dn>isdc=ldap,dc=goauthentik,dc=io, the domain isldap.goauthentik.io. - Directory URL:
ldaps://ldap.company:636 - User Object Class:
user - User Search Base:
ou=users,<base_dn> - Username Attribute:
cn - Group Object Class:
group - Group Search Base:
ou=groups,<base_dn> - Group Member Attribute:
member - Group Member Attribute Value:
dn - Service Account:
cn=npe-ldap,ou=users,<base_dn> - Service Account Password: the password for the
npe-ldapservice account
- Directory Type:
- Click Save.
- Open the Authentication Types tab, select Directory Service, and click Save.
Users append the Domain value to their username when they log in. With a domain of ldap.goauthentik.io, the user akadmin logs in as [email protected].
Create the role mappings
Prism Element does not grant permissions to directory users automatically. After you save the directory, map each authentik group to the role that its members should receive.
- Click the gear icon in the top right and navigate to Users and Roles > Role Mapping.
- Click New Mapping.
- Select the directory that you created from the Directory or Provider list.
- Select
Groupin the Type list. - Enter the group name exactly as it appears in authentik, for example
npe-admins. - Select the role to grant, then click Save.
- Repeat these steps for
npe-users.
Configuration verification
To confirm that authentik is properly configured with Prism Element, open Prism Element and log in with an authentik username and the Domain value appended, along with the authentik password. A user in npe-users should reach Prism Element with the role that you mapped, and a user in npe-admins should have administrator privileges.
You can also test the directory without logging out. On the Directory List tab, click Test, then enter the same username and password. Prism Element reports Authentication test successful when the directory is reachable and the credentials are accepted.