Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Instance enrollment workflow for domain join in RHEL

April 21, 2025
Alexandra Nikandrova Andre Boscatto Fraser Tweedale
Related topics:
Automation and managementDevOpsHybrid CloudIntegrationLinuxPlatform engineeringSecurity
Related products:
Image mode for Red Hat Enterprise LinuxRed Hat Enterprise LinuxRed Hat Insights

Share:

    In our previous article, How to register IdM deployment with RHEL domain join, we explored the registration workflow for the domain join feature in Red Hat Enterprise Linux (RHEL). In this third and final installment, we will dive into the join workflow to explain how an instance successfully becomes part of the domain. 

    Additionally, we will discuss an essential prerequisite step, building an image using the Red Hat Hybrid Cloud Console (HCC) and Insights image builder, ensuring the instance has the necessary configuration before deployment. If you haven't already, check out our first article in this series, Introducing IdM in RHEL Domain Join feature - Enroll your machines on boot.

    Create blueprints with Insights image builder

    Before an instance can join the domain, it needs to be properly configured with the steps for image preparation. Follow these steps to create blueprints with Hybrid Cloud Console and image builder, a tool bundled within Red Hat Insights:

    1. Access the images service via Hybrid Cloud Console.
    2. Create a new image blueprint that defines the workload image. The image configuration is up to you, but there are a couple of requirements for the domain join feature to work:
      • In the Register step, select Automatically register and enable advanced capabilities.
      • In the Additional packages step, include the ipa-hcc-client package in the image. This package is currently in the Extra Packages in Enterprise Linux (EPEL) repository, but we plan to release it in RHEL.
    3. Build and export the image for deployment across cloud or on-premise environments.

    For a step-by-step demonstration of blueprint creation and image build, you can watch this recorded demo.

    With this step complete, instances launched from this image will be preconfigured for domain join.

    The join workflow

    Figure 1 illustrates the domain join registration and join workflows.

    Domain Join Workflow Diagram
    Diagram describing the workflow and orchestration of Domain Join feature.
    Figure 1: Diagram describing the worflow and orchestration of the domain join feature.

    The domain join workflow steps

    1. Obtain an enrollment token.
      • The instance requests an enrollment token from the Hybrid Cloud Console backend service.
    2. Create enrollment token.
      • The backend service verifies the request and generates a secure enrollment token.
    3. Token retrieval response.
      • The instance receives the enrollment token, along with information about the domain to join.
    4. Request domain join.
      • The instance initiates a join request to the ipa-hcc-server on the IdM server.
      • The request is authorized using the enrollment token.
    5. Register the host in IdM.
      • The ipa-hcc-server registers the instance as a host in the IdM system.
      • The IdM API (ipa host-add) is called to create the entry in the directory.
    6. Invoking client enrollment.
      • The instance executes the ipa-client-install command to complete the domain join process.
    7. Complete the join process.
      • The ipa-client-install command retrieves necessary authentication credentials (keytabs, policies, etc.). The instance's subscription manager certificate is used to authenticate the operation.
      • It is now a fully enrolled client in the IdM system.

    For a step-by-step demonstration of the registration workflow, watch the following demo.

    Troubleshooting common issues

    While the registration workflow is designed to be seamless, some challenges may arise. These are common issues and resolutions:

    • Failed authorization during join request
      • Automatic domain join only works when the clients and servers belong to the same organization, and the IdM deployment is registered with the Directory and Domain Services service.
      • Currently, we support only one (active) IdM domain per organization. If there are multiple active registrations, enrollment token retrieval fails. There is a proposal to implement this in our backlog (Domain Join - IDM: support for multiple domains).
      • Check that the IdM server has the ipa-hcc-server package installed and is reachable from the environment where the client was launched.
    • Client installation issues
      • Run ipa-client-install --force to retry enrollment.
      • Ensure the ipa-hcc-client package is installed.

    Conclusion

    This concludes our three-part series, a comprehensive guide to the RHEL domain join feature. The join workflow ensures that instances successfully integrate into an organization's identity domain. By preparing images with the Insights image builder tool, automating token-based authentication, and leveraging ipa-hcc-client, organizations can achieve secure, scalable, and policy-enforced domain management in RHEL.

    By following this guide, administrators can streamline the domain join process, reducing manual effort and enhancing security across cloud and on-premise deployments. Stay tuned for further insights into optimizing identity management in RHEL.

    Last updated: April 29, 2025

    Related Posts

    • How to register IdM deployment with RHEL domain join

    • Red Hat technologies make open hybrid cloud a reality

    • Extend Red Hat Insights client to execute custom automation

    • How to use content templates in Red Hat Insights

    Recent Posts

    • How to run a fraud detection AI model on RHEL CVMs

    • How we use software provenance at Red Hat

    • Alternatives to creating bootc images from scratch

    • How to update OpenStack Services on OpenShift

    • How to integrate vLLM inference into your macOS and iOS apps

    What’s up next?

    This cheat sheet provides a collection of Linux commands and executables for developers and system administrators looking to advance beyond the basics. It includes tips on managing processes, users, and groups, as well as monitoring disk and network usage.
    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue