Skip to main content

2025 年 2 月 24 日

Use the Realmd Join Solution for RHEL 8.x

To ensure the operation of features such as single sign-on for a RHEL 8.x desktop, use the realmd solution to join the RHEL 8.x virtual machine to your Active Directory (AD) domain.

Procedure

  1. Configure a fully qualified host name for the RHEL 8.x virtual machine (VM).

    For example, if rhel8 is the unqualified host name of the VM and LXD.VDI is the AD domain, run the following command.

    # hostnamectl set-hostname rhel8.lxd.vdi
    
  2. Verify the network connection with the AD domain, as shown in the following example.

    # realm discover -vvv LXD.VDI
    
  3. Install the required dependency packages, as shown in the following example.

     # dnf install -y sssd adcli samba-common-tools oddjob oddjob-mkhomedir
    
  4. Join the AD domain, as shown in the following example.

    # realm join -U Administrator LXD.VDI
    
  5. Edit the /etc/sssd/sssd.conf.

  6. To ensure that the domain-join takes effect, restart the VM and log back in.

  7. Verify that the domain users are configured correctly. The following example shows how to use the id command to return the configuration output from domain user zyc1.

    # id zyc1
    
    uid=1084401403(zyc1) gid=1084400513(domain users) groups=1084400513(domain users)
    
  8. Using the credentials of a domain user, verify that you can successfully log in to the VM.

    Note: Horizon Agent only supports the X11 display server protocol for RHEL 8.x desktops.

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…