|
This is unreleased documentation for SUSE® Rancher Manager v2.16 (Unreleased). |
Configure FreeIPA
If your organization uses FreeIPA for user authentication, you can configure Rancher to allow your users to login using their FreeIPA credentials.
|
Prerequisites:
|
-
Sign into Rancher using a local user assigned the
administratorrole (i.e., the local principal). -
In the top left corner, click ☰ > Users & Authentication.
-
In the left navigation menu, click Auth Provider.
-
Click FreeIPA.
-
Complete the Configure an FreeIPA server form.
You may need to log in to your domain controller to find the information requested in the form.
Using TLS?If the certificate is self-signed or not from a recognized certificate authority, make sure you provide the complete chain. That chain is needed to verify the server’s certificate.
User Search Base vs. Group Search BaseSearch base allows Rancher to search for users and groups that are in your FreeIPA. These fields are only for search bases and not for search filters.
-
If your users and groups are in the same search base, complete only the User Search Base.
-
If your groups are in a different search base, you can optionally complete the Group Search Base. This field is dedicated to searching groups, but is not required.
-
-
If your FreeIPA deviates from the standard AD schema, complete the Customize Schema form to match it. Otherwise, skip this step.
Search AttributeThe Search Attribute field defaults with three specific values:
uid|sn|givenName. After FreeIPA is configured, when a user enters text to add users or groups, Rancher automatically queries the FreeIPA server and attempts to match fields by user id, last name, or first name. SUSE Rancher Prime specifically searches for users/groups that begin with the text entered in the search field.The default field value
uid|sn|givenName, but you can configure this field to a subset of these fields. The pipe (|) between the fields separates these fields.-
uid: User ID -
sn: Last Name -
givenName: First Name
With this search attribute, Rancher creates search filters for users and groups, but you cannot add your own search filters in this field.
To keep principal IDs stable when entries move in the directory, set User Identifier Attribute and Group Identifier Attribute. You cannot change these attributes after you enable the provider. For more information, see Principal Identifier attributes.
-
-
Enter your FreeIPA username and password in Authenticate with FreeIPA to confirm that Rancher is configured to use FreeIPA authentication.
-
Click Enable.
Result:
-
FreeIPA authentication is configured.
-
You are signed into Rancher with your FreeIPA account (i.e., the external principal).
Principal Identifier Attributes
By default, SUSE Rancher Prime uses a directory entry’s distinguished name (DN) as the user or group principal ID. Because a DN reflects the entry’s path in the directory, moving or renaming the entry changes its DN. When an entry’s DN changes, SUSE Rancher Prime treats the entry as a new principal, and permissions assigned to the previous principal no longer apply.
To keep principal IDs stable across directory moves, configure User Identifier Attribute and Group Identifier Attribute in the Customize Schema section. SUSE Rancher Prime then uses the specified attribute’s value as the principal ID instead of the DN. For example, use sAMAccountName in Active Directory or uid for users in OpenLDAP and FreeIPA. Leave the attributes empty to keep using the DN.
Select attributes that meet the following requirements:
-
The value is unique across all users (for the user attribute) or across all groups (for the group attribute).
-
The value remains unchanged when an entry moves to a different container or organizational unit in the directory.
-
Every user and group entry contains the specified attribute. Users cannot log in if their entry lacks the user identifier attribute.
-
Both values are valid LDAP attribute names.
|
Changing identifier attributes after enabling the provider
You cannot modify identifier attributes while an authentication provider is enabled. To change them, disable the provider, update the attributes, and re-enable the provider. By default, disabling a provider deletes its associated users, role bindings, and other provider resources. To retain existing users and bindings, add the |