Authenticate CentOS7 to Active Directory

Here we look at the steps we need to take to authenticate CentOS7 to Active Directory
1. Install the following packages

yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python -y

2. Verify correct SRV records

dig -t SRV _ldap._tcp.ad.example.com

3. Join your windows domain with account that has permissions to join domain

realm join --user=account windows_domain

4. Now you can edit /etc/sudoers and add your domain accounts

username@my_ad_domain  ALL=(ALL)       ALL