45Drives Knowledge Base
KB450459 - Joining an Active Directory in Houston UI with Rocky 8 Linux
https://knowledgebase.45drives.com/kb/kb450459-joining-an-active-directory-in-houston-ui-with-rocky-linux/

KB450459 - Joining an Active Directory in Houston UI with Rocky 8 Linux

Posted on September 2, 2021 by Bailey Allison


Scope/Description

Prerequisites

Steps

Installing packages

# dnf install -y realmd oddjob-mkhomedir oddjob samba-winbind-clients samba-winbind samba-common-tools samba samba-winbind-krb5-locator krb5-workstation samba-client

Configuring realmd to use winbind

#sed -i 's/^\(default-client = \).*$/\1winbind/' /usr/lib/realmd/realmd-defaults.conf

Configuring Hostname and DNS

Joining the Domain

Granting SeDiskOperatorPrivilege

# net rpc rights grant "45LAB\domain admins" SeDiskOperatorPrivilege -U "45LAB\bk"
Enter 45LAB\bk's password:
Successfully granted rights.
# net rpc rights list privileges SeDiskOperatorPrivilege -U "45LAB\bk"
Enter 45LAB\bk's password:
SeDiskOperatorPrivilege:
SeDiskOperatorPrivilege:
BUILTIN\Administrators
45LAB\domain admins

If this is not done, then we cannot set the initial group ownership to configure permissions on any SMB shares.

Verification

Troubleshooting