3.8 KiB
title | sidebar_label |
---|---|
Integrate with VMware vCenter | VMware vCenter |
VMware vCenter
Support level: Community
What is vCenter
vCenter Server is the centralized management utility for VMware, and is used to manage virtual machines, multiple ESXi hosts, and all dependent components from a single centralized location. VMware vMotion and svMotion require the use of vCenter and ESXi hosts.
:::caution Integration with authentik requires VMware vCenter 8.03 or newer. :::
The following placeholders will be used in the examples below:
vcenter.company
is the FQDN of the vCenter server.authentik.company
is the FQDN of the authentik install.
authentik configuration
Create an application and an OAuth2/OpenID provider, using the authentik Wizard.
-
Log into authentik as an admin, and navigate to Applications --> Applications, and then click Create with Wizard.
-
In the Wizard, follow the prompts to create an application and its provider.
Create the application with these settings:
- Select OIDC as the provider type.
- Ensure that the Redirect URI Setting is left empty.
Create the provider with these settings:
- Redirect URI: `https://vcenter.company/ui/login/oauth2/authcode` - Ensure that a signing key is selected, for example the Self-signed Certificate.
-
Click Submit to create the application and provider, and then click Close to close the Wizard.
Optionally, you can use a policy to apply access restrictions to the application.
vCenter configuration
-
Log in to vCenter with your local Administrator account. Using the menu in the left navigation bar, navigate to Administration -> Single Sign-on -> Configuration.
-
Click Change Provider in the top-right corner, and then select Okta from the drop-down list.
-
In the wizard, click Run Prechecks, select the confirmation box, and then click Next
- Enter the Directory Name. For example
authentik
or any other name. - Add a Domain Name. For example
authentik.company
. - Click on the Plus (+) sign to show the default domain name.
- Enter the Directory Name. For example
-
Click Next.
-
On the OpenID Connect page, enter the following values:
- Set Identity Provider Name to
authentik
. - Set Client Identifier to the client ID from authentik.
- Set Shared secret to the client secret from authentik.
- Set OpenID Address to the OpenID Configuration URL from authentik.
- Set Identity Provider Name to
-
Click Next, and then Finish.
-
On the Single Sign On -> Configuration page, in the User Provisioning area, take the following steps:
- Copy the Tenant URL and save to a safe place.
- Click on Generate to generate a SCIM token.
- Click Generate in the newly opened modal box.
- Copy the token and save to a safe place.
-
Return to the authentik Admin interface.
- Create a SCIM provider with the name
vcenter-scim
. - Paste the Tenant URL into URL field for the provider.
- Paste the token you saved into the Token field.
- If your vCenter certificate is self-signed (which is the default), toggle Verify SCIM server's certificates to be off.
- Configure options under
User filtering
to your needs. - Save the provider.
- Edit the application that you created earlier and select this newly created SCIM provider as the backchannel provider.
- Navigate to the provider and trigger a sync.
- Create a SCIM provider with the name
-
Return to vCenter.
- Navigate to Administration -> Access Control -> Global Permissions.
- Click Add.
- Select the Domain created above from the dropdown.
- Enter the name of the group to which you want to assign permissions.
- Select the role.
-
Click Save.