Chapter 3. Federation using Red Hat OpenStack Platform and Active Directory Federation Services
Red Hat supports using Microsoft Active Directory Federation Services (AD FS) as an identity provider for Red Hat OpenStack Platform (RHOSP) so that you can use the same federated solution for single sign-on in RHOSP, that exists in your wider organization.
3.1. Deploying Red Hat OpenStack Platform with Active Directory Federation Services Copy linkLink copied to clipboard!
Use the enable-federation-openidc.yaml environment file to deploy Red Hat OpenStack Platform (RHOSP) so that it can be integrated into your federated authentication solution. Federation allows users to log in to the OpenStack Dashboard using single sign-on (SSO). You must use the OpenStack Dashboard for SSO.
Prerequisites
- You have installed Red Hat OpenStack Platform director.
- You have Active Directory(c) for federation configured in your environment.
Procedure
Note your keystone endpoint. The keystone endpoint is the FQDN value you assign the
CloudNameparameter in thecustom-domain.yamlheat template, with the transport and port number included. The keystone endpoint has the following construction:https://<FQDN>:13000
https://<FQDN>:13000Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf you do not deploy TLS, your keystone endpoint is
http://<FQDN>:5000. Red Hat recommends deploying TLS with every production deployment of RHOSP.Provide your SSO administrator with the following redirect URIs:
Redirect URIs:
https://<FQDN>:13000/v3/auth/OS-FEDERATION/identity_providers/adfsIDP/protocols/openid/websso https://<FQDN>:13000/v3/auth/OS-FEDERATION/websso/openid
https://<FQDN>:13000/v3/auth/OS-FEDERATION/identity_providers/adfsIDP/protocols/openid/websso https://<FQDN>:13000/v3/auth/OS-FEDERATION/websso/openidCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
In response, your SSO administrator provides you with a
ClientIDand aClientSecret. Copy the
enable-federation-openidc.yamlyaml file into the stack home directory:cp /usr/share/openstack-tripleo-heat-templates/environments/enable-federation-openidc.yaml \ /home/stack/
cp /usr/share/openstack-tripleo-heat-templates/environments/enable-federation-openidc.yaml \ /home/stack/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit your copy of the
enable-federation-openidc.yamlenvironment file. Below is a sample configuration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- A comma delimited list of acceptable methods for authentication.
- 2
- Your client ID to use for the OpenID Connect provider handshake. You must get this from your SSO administrator
- 3
- The client secret to use for the OpenID Connect provider handshake. You must get this from your SSO administrator after providing your redirect URLs.
- 4
- Choose a passphrase to use when encrypting data for OpenID Connect handshake.
- 5
- The name associated with the IdP in the Identity service (keystone). The value for this parameter is always adfsIDP for Active Directory Federation Services.
- 6
- The Identity service introspection endpoint: https://{FQDN}/realms/<realm>/protocol/openid-connect/token/introspect
- 7
- The URL that points to your OpenID Connect provider metadata
- 8
- Attribute to be used to obtain the entity ID of the Identity Provider from the environment.
- 9
- Response type to be expected from the OpenID Connect provider.
- 10
- A dashboard URL trusted for single sign-on, this can also be a comma delimited list.
- 11
- Specifies the list of SSO authentication choices to present. Each item is a list of an SSO choice identifier and a display message.
- 12
- Specifies a mapping from SSO authentication choice to identity provider and protocol. The identity provider and protocol names must match the resources defined in keystone.
Add the
enable-federation-openidc.yamlto the stack with your other environment files and deploy the overcloud:openstack overcloud deploy --templates \ -e [your environment files] \ -e /home/stack/templates/enable-federation-openidc.yaml
(undercloud)$ openstack overcloud deploy --templates \ -e [your environment files] \ -e /home/stack/templates/enable-federation-openidc.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Integrating Red Hat OpenStack Platform with Active Directory Federation Services Copy linkLink copied to clipboard!
After you deploy Red Hat OpenStack Platform (RHOSP) with an Active Directory Federation Services (AD FS), you must complete the following steps to integrate the Identity provider (IdP) with the service provider (RHOSP).
Procedure
Create a federated domain:
openstack domain create <federated_domain_name>
openstack domain create <federated_domain_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set up the federation identity provider.
openstack identity provider create --remote-id https://<adfs_fqdn>:9443/adfs --domain <domain_name> adfsIdP
openstack identity provider create --remote-id https://<adfs_fqdn>:9443/adfs --domain <domain_name> adfsIdPCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<adfs_fqdn>with the fully qualified domain name Active Directory Federation Services Replace<federated_domain_name>with the name of the federated domain that you created in step 1.Example output:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Creating a mapping file. The mapping file will be unique to the identity needs of your cloud.
Example:
- 1
- The
federated_domainis the domain you created in a previous step. - 2
- Choose a name for the
federated_group_name. You will create this in a later step. - 3
- You must use `OIDC-upn`as the claim id for AD FS.
Use the mapping file to create the federation mapping rules for OpenStack. In the provided example, mapping rules created from the
mapping.jsonfile are calledADmap:openstack mapping create --rules <file> <name>
openstack mapping create --rules <file> <name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:
openstack mapping create --rules mapping.json ADmap
$ openstack mapping create --rules mapping.json ADmap
Create a federated group:
openstack group create --domain <federation_domain> <federation_group_name>
openstack group create --domain <federation_domain> <federation_group_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create an Identity service (keystone) project:
openstack project create --domain <federation_domain> <federation_project_name>
openstack project create --domain <federation_domain> <federation_project_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the Identity service federation group to a role.
openstack role add --group <federation_group_name> --group-domain <federation_domain> --project <federation_project_name> --project-domain <federation_domain> member
openstack role add --group <federation_group_name> --group-domain <federation_domain> --project <federation_project_name> --project-domain <federation_domain> member
Create the OpenID federation protocol:
openstack federation protocol create openid --mapping ADmap --identity-provider adfsIdP
openstack federation protocol create openid --mapping ADmap --identity-provider adfsIdPCopy to Clipboard Copied! Toggle word wrap Toggle overflow