REALM(8)
okay bestie, welcome to REALM(8) β User Commands β the realm page. Itβs giving sysadmin main character energy, and weβre gonna get through every single flag together π
β¨
π NAME π
realm β manage enrollment in realms. Thatβs it, thatβs the whole job, and it ate π
π SYNOPSIS π
hereβs the shape of every invocation, exactly as the manual says it:
realm discover [realm-name]
realm join [-U user] [realm-name]
realm leave [-U user] [realm-name]
realm list
realm permit [-ax] [-R realm] {user@domain...}
realm deny -a [-R realm]
β¨ DESCRIPTION β¨
realm is a command line tool that can be used to manage enrollment in kerberos realms, like Active Directory domains or IPA domains. Lowkey iconic.
peep the various sub commands below. These global options can be used:
-i,--install=/pathβ Run in install mode. This makesrealmdchroot into the directory specified by an absolute path and place files in appropriate locations for use during an installer. No packages will be installed or services will be started when running in this mode. π οΈ--unattendedβ Run in unattended mode without prompting for input. no questions, just vibes β¨-v,--verboseβ Display verbose diagnostics while doing running commands.
π DISCOVER π
Discover a realm and its capabilities. itβs like a vibe check for domains π«
$ realm discover
$ realm discover domain.example.com
After discovering a realm, its name, type and capabilities are displayed.
If no domain is specified, then the domain assigned through DHCP is used as a default.
The following options can be used:
-a,--allβ Show all discovered realms (in various configurations). π--client-software=xxxβ Only discover realms for which we can use the given client software. Possible values includesssdorwinbind.-n,--nameβ Only show the names of the discovered realms.--server-software=xxxβ Only discover realms which run the given server software. Possible values includeactive-directoryoripa.--membership-software=xxxβ Only discover realms for which the given membership software can be used to subsequently perform enrollment. Possible values includesambaoradcli.--use-ldapsβ See option description in the section called βJOINβ. π
π οΈ JOIN π οΈ
Configure the local machine for use with a realm. big commit energy fr fr π
$ realm join domain.example.com
$ realm join --user=admin --computer-ou=OU=Special domain.example.com
The realm is first discovered, as we would with the discover command. If no domain is specified, then the domain assigned through DHCP is used as a default.
After a successful join, the computer will be in a state where it is able to resolve remote user and group names from the realm. For kerberos realms, a computer account and host keytab is created.
π¨ Joining arbitrary kerberos realms is not supported. The realm must have a supported mechanism for joining from a client machine, such as Active Directory or IPA. no cap, this is important.
If the domain has been preconfigured, and unless --user is explicitly specified, an automatic join is attempted first.
β οΈ Note that the--user,--no-password, and--one-time-passwordoptions are mutually exclusive. At most one of them can be specified. pick one, bestie, not all three π
It is generally possible to use kerberos credentials to perform a join operation. Use the kinit command to acquire credentials prior to starting the join. Do not specify the --user argument, the user will be selected automatically from the credential cache. The realm respects the KRB5_CCACHE environment variable, but uses the default kerberos credential cache if itβs not present. Not all types of servers can be joined using kerberos credentials, some (like IPA) insist on prompting for a password.
The following options can be used:
--automatic-id-mapping=noβ Do not perform UID/GID mapping for users and groups, but expect these identifiers to be present in the domain already.--client-software=xxxβ Only join realms for which we can use the given client software. Possible values includesssdorwinbind. Not all values are supported for all realms. By default the client software is automatically selected.--computer-ou=OU=xxxβ The distinguished name of an organizational unit to create the computer account. The exact format of the distinguished name depends on the client software and membership software. You can usually omit the root DSE portion of distinguished name. This is an Active Directory specific option.--membership-software=xxxβ The software to use when joining to the realm. Possible values includesambaoradcli. Not all values are supported for all realms. By default the membership software is automatically selected.--computer-name=xxxβ This option only applies to Active Directory realms. Specify this option to override the default name used when creating the computer account. The system's FQDN will still be saved in thedNSHostNameattribute. Specify the name as a string of 15 or fewer characters that is a valid NetBIOS computer name.--no-passwordβ Perform the join automatically without a password.--one-time-password=xxxxβ Perform the join using a one time password specified on the command line. This is not possible with all types of realms.--os-name=xxxβ The name of the operation system of the client. When joining an AD domain the value is store in the matching AD attribute.--os-version=xxxβ The version of the operation system of the client. When joining an AD domain the value is store in the matching AD attribute.--server-software=xxxβ Only join realms for run the given server software. Possible values includeactive-directoryoripa.-U,--user=xxxβ The user name to be used to authenticate with when joining the machine to the realm. You will be prompted for a password.--user-principal=host/name@REALMβ Set theuserPrincipalNamefield of the computer account to this kerberos principal. If you omit the value for this option, then a principal will be set based on the defaults of the membership software. AD makes a distinction between user and service principals. Only with user principals you can request a Kerberos Ticket-Granting-Ticket (TGT), i.e. only user principals can be used with thekinitcommand. By default the user principal and the canonical principal name of an AD computer account isshortname$@AD.DOMAIN, whereshortnameis the NetBIOS name which is limited to 15 characters. If there are applications which are not aware of the AD default and are using a hard-coded default principal the--user-principalcan be used to make AD aware of this principal. Please note thatuserPrincipalNameis a single value LDAP attribute, i.e. only one alternative user principal besides the AD default user principal can be set.--use-ldapsβ Use the ldaps port when connecting to AD where possible. In general this option is not needed becauserealmditself only read public information from the Active Directory domain controller which is available anonymously. The supported membership software products will use encrypted connections protected with GSS-SPNEGO/GSSAPI which offers a comparable level of security than ldaps. This option is only needed if the standard LDAP port (389/tcp) is blocked by a firewall and only the LDAPS port (636/tcp) is available. Given that and to lower the initial effort to discover a remote domainrealmddoes not require a strict certificate check. If the validation of the LDAP server certificate failsrealmdwill continue to setup the encrypted connection to the LDAP server. If this option is set to yesrealmdwill use the ldaps port when reading therootDSEand call theadclimembership software with the option--use-ldaps. The Samba base membership currently offers only deprecated ways to enable ldaps. Support will be added inrealmdwhen a new way is available.--do-not-touch-configβ Run the join operation but do not touch the local configuration of the client except adding new Kerberos keys to the keytab. The purpose of this option is to synchronize the keytab entries with the ones stored in AD or recreate the computer object in AD without changing the local configuration which might contain changes which would get overwritten by a fully leave/join cycle. If runningrealm joinwith this options does not help to fix issues it is recommended to callrealm leavefollowed byrealm jointo enforce a fresh configuration with default settings. Since this might overwrite manual changes to the related configuration files it is recommend to save those change before running the commands. This options is only available when joining AD domains.
π¦ LEAVE π¦
Deconfigure the local machine for use with a realm. itβs the breakup era π
$ realm leave
$ realm leave domain.example.com
If no realm name is specified, then the first configured realm will be used.
The following options can be used:
--client-software=xxxβ Only leave the realm which is using the given client software. Possible values includesssdorwinbind.--server-software=xxxβ Only leave the realm which is using the given server software. Possible values includeactive-directoryoripa.--removeβ Remove or disable computer account from the directory while leaving the realm. This will usually prompt for a password.-U,--userβ The user name to be used to authenticate with when leaving the realm. You will be prompted for a password. Implies--remove.--use-ldapsβ See option description in the section called βJOINβ.
πΈ LIST πΈ
List all the discovered and configured realms. inventory check, but make it cute πβ¨
$ realm list
By default, realms that have been discovered, but not configured (using the join command), are not displayed. Also, by default, the list of realm details displayed is verbose. The options below can be used to change this default behavior.
The following options can be used:
--allβ Show all discovered realms (whether or not they have been configured).--name-onlyβ Display only realm names (as opposed to verbose output).
π PERMIT β let the girlies in
Okay so this is the one where you're literally opening the door and saying "come in bestie." realm permit permits local login by users of the realm. Iconic behavior, truly.
$ realm permit --all
$ realm permit user@example.com
$ realm permit DOMAIN\\User2
$ realm permit --withdraw user@example.com
Want to see what the current login policy is and what format the user names take? Just run realm list and it'll spill all the tea. π«
The following options can be used:
--all,-aβ Permit logins using realm accounts on the local machine according to the realm policy. β¨ This usually defaults to allowing any realm user to log in β so yeah, everybody's invited to the party.--groups,-gβ Treat the specified names as groups rather than user login names. Basically you're permitting login by users in the specified groups. Group chat energy only. π--realm,-Rβ Specify the name of the realm to change login policy for. Gotta name your realm, no cap.--withdraw,-xβ Remove a login from the list of realm accounts permitted to log into the machine. It's giving "you're uninvited from the group chat" π but like, respectfully.
π DENY β the door is closed, periodt
Deny local login by realm accounts. Straight up.
$ realm deny --all
This command prevents realm accounts from logging into the local machine. Use realm permit to restrict logins to specific accounts instead β like, don't just slam the door, curate the guest list, bestie. π
The following options can be used:
--all,-aβ This option should be specified. Like, it's not optional-optional, it's required, okay? π₯--realm,-Rβ Specify the name of the realm to deny users login to. Name the realm or it's not happening.
π¦ SEE ALSO
realmd.conf(5) β go read it, iykyk π
π AUTHOR
Stef Walter <stef@thewalter.net>
- Maintainer
and that's the whole manual, bestie β slayed, every single option accounted for β¨π
This was realmd, dated 01/10/2025, from manual page REALM(8) β go forth and manage your realm, main character π§π
π¦ where this page comes from
- opensuse-leap 16.0: realmd 0.17.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: realmd 0.17.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: realmd 0.17.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: realmd 0.17.1-160000.2.2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms