From Fedora Project Wiki

1. Install the prerequisites:

# yum install -y realmd oddjob oddjob-mkhomedir sssd adcli samba-common

2. Have realmd discover the AD host:

# realm discover example.com

3. Have realmd join the AD host and type the AD Administrator password when prompted:

# realm join example.com

After following the above commands, you should be able to run the following against the AD domain:

# id someone@example.com
# ssh someone@example.com@localhost