Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ruzickap/3bbc10379b542b1feb2d to your computer and use it in GitHub Desktop.
Save ruzickap/3bbc10379b542b1feb2d to your computer and use it in GitHub Desktop.
# Turn OFF Firewall
chkconfig firewalld off
service firewalld stop
echo "192.168.122.46 centos7-client.ec.example.com centos7-client" >> /etc/hosts
# Change DNS server to 192.168.122.247 (ad.example.com)
cat >> /etc/dhcp/dhclient-eth0.conf << EOF
supersede domain-name-servers 192.168.122.247;
supersede domain-search "ec.example.com";
EOF
service network restart
yum install -y ipa-client
# Register to IPA (there is automatic discovery of IPA IP via DNS)
ipa-client-install -w secret --mkhomedir
---
# DNS checks
dig SRV _ldap._tcp.example.com
dig SRV _ldap._tcp.ec.example.com
kinit admin
smbclient -L ipa.ec.example.com -k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment