Este contenido no está disponible en el idioma seleccionado.
Chapter 42. Managing subID ranges manually
In a containerized environment, sometimes an IdM user needs to assign subID ranges manually. The following instructions describe how to manage the subID ranges.
42.1. Generating subID ranges using IdM CLI Copiar enlaceEnlace copiado en el portapapeles!
As an Identity Management (IdM) administrator, you can generate a subID range and assign it to IdM users.
Prerequisites
- The IdM users exist.
-
You have obtained an IdM
adminticket-granting ticket (TGT). See Using kinit to log in to IdM manually for more details. -
You have
rootaccess to the IdM host where you are executing the procedure.
Procedure
Optional: Check for existing subID ranges:
ipa subid-find
# ipa subid-findCopy to Clipboard Copied! Toggle word wrap Toggle overflow If a subID range does not exist, select one of the following options:
Generate and assign a subID range to an IdM user:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Generate and assign subID ranges to all IdM users:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Optional: Assign subID ranges to new IdM users by default:
ipa config-mod --user-default-subid=True
# ipa config-mod --user-default-subid=TrueCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the user has a subID range assigned:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
42.2. Generating subID ranges using IdM WebUI interface Copiar enlaceEnlace copiado en el portapapeles!
As an Identity Management (IdM) administrator, you can generate a subID range and assign it to a user in the IdM WebUI interface.
Prerequisites
- The IdM user exists.
-
You have obtained an IdM
adminKerberos ticket (TGT). See Logging in to IdM in the Web UI: Using a Kerberos ticket for more details. -
You have
rootaccess to the IdM host where you are executing the procedure.
Procedure
- In the IdM WebUI interface expand the Subordinate IDs tab and choose the Subordinate IDs option.
- When the Subordinate IDs interface appears, click the Add button in the upper-right corner of the interface. The Add subid window appears.
- In the Add subid window choose an owner, that is the user to whom you want to assign a subID range.
- Click the Add button.
Verification
- View the table under the Subordinate IDs tab. A new record shows in the table. The owner is the user to whom you assigned the subID range.
42.3. Viewing subID information about IdM users by using IdM CLI Copiar enlaceEnlace copiado en el portapapeles!
As an Identity Management (IdM) user, you can search for IdM user subID ranges and view the related information.
Prerequisites
- You have configured a subID range on the IdM client. For more information, see Generating subID ranges using IdM CLI.
- You have obtained an IdM user ticket-granting ticket (TGT). See Using kinit to log in to IdM manually for more details.
Procedure
To view the details about a subID range:
If you know the unique ID hash of the Identity Management (IdM) user that is the owner of the range:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you know a specific subID from that range:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
42.4. Listing subID ranges using the getsubid command Copiar enlaceEnlace copiado en el portapapeles!
As a system administrator, you can use the command line to list the subID ranges of Identity Management (IdM) or local users.
Prerequisites
- The idmuser user exists in IdM.
-
The
shadow-utils-subidpackage is installed. -
You can edit the
/etc/nsswitch.conffile.
Procedure
Open the
/etc/nsswitch.conffile and configure theshadow-utilsutility to use IdM subID ranges by setting thesubidvariable to thesssvalue:[...] subid: sss
[...] subid: sssCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou can provide only one value for the
subidfield. Setting thesubidfield to thefilevalue or no value instead ofsssconfigures theshadow-utilsutility to use the subID ranges from the/etc/subuidand/etc/subgidfiles.List the subID range for an IdM user:
getsubids idmuser
$ getsubids idmuser 0: idmuser 2147483648 65536Copy to Clipboard Copied! Toggle word wrap Toggle overflow The first value, 2147483648, indicates the subID range start. The second value, 65536, indicates the size of the range.