using realm command to join the domain in centOS/RHEL machine
Join Linux Machine to a Domain using realm command
Download the required package from internet
Install the required packages using yum command: (CentOS/RHEL)
yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python
Now Join Windows Domain or Integrate with AD using realm command:
- [root@centos ~]# realm join --user=user1 dc01.domainname.com
- Password for user1:
Check and Verify AD users on REHL 7 or CentOS 8 Servers: # id user1@example.com
uid=1889988966(user1@example.com) gid=1785634513(domain users@example.com) groups=1997800513(domain users@example.com)
Check and Verify AD users on REHL 7 or CentOS 8 Servers: # id user1
Enable the search without FQDN by editing the file: vi /etc/sssd/sssd.conf
Restart the sssd service.
- systemctl restart sssd
- systemctl daemon-reload
Comments
Post a Comment