2 — Configuring Rancher for Microsoft AD FS


可用版本 v2.0.7

After you complete Configuring Microsoft AD FS for Rancher, enter your AD FS information into Rancher to allow AD FS users to authenticate with Rancher.

Important Notes For Configuring Your AD FS Server:

  • From the Global view, select Security > Authentication from the main menu.

  • Select Microsoft Active Directory Federation Services.

  • Complete the Configure AD FS Account form. Microsoft AD FS lets you specify an existing Active Directory (AD) server. The examples below describe how you can map AD attributes to fields within Rancher.

FieldDescriptionDisplay Name FieldThe AD attribute that contains the display name of users. Example: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givennameUser Name FieldThe AD attribute that contains the user name/given name. Example: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameUID FieldAn AD attribute that is unique to every user. Example: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upnGroups FieldMake entries for managing group memberships. Example: http://schemas.xmlsoap.org/claims/GroupRancher API HostThe URL for your Rancher Server.Private Key / CertificateThis is a key-certificate pair to create a secure shell between Rancher and your AD FS. Ensure you set the Common Name (CN) to your Rancher Server URL.Certificate creation commandMetadata XMLThe federationmetadata.xml file exported from your AD FS server. You can find this file at https://<AD_SERVER>/federationmetadata/2007-06/federationmetadata.xml.

Tip: You can generate a certificate using an openssl command. For example:

  1. openssl req -x509 -newkey rsa:2048 -keyout myservice.key -out myservice.cert -days 365 -nodes -subj "/CN=myservice.example.com"
  • After you complete the Configure AD FS Account form, click Authenticate with AD FS, which is at the bottom of the page.

Rancher redirects you to the AD FS login page. Enter credentials that authenticate with Microsoft AD FS to validate your Rancher AD FS configuration.

Note: You may have to disable your popup blocker to see the AD FS login page.

Result: Rancher is configured to work with MS FS. Your users can now sign into Rancher using their MS FS logins.