Created
March 1, 2016 22:25
-
-
Save devynspencer/2b10510c5ef747f4638b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # hostname server.domain.com | |
| # vi /etc/hostname | |
| # deb http://apt.numeezy.fr wheezy main | |
| # deb-src http://apt.numeezy.fr wheezy main | |
| # wget -qO - http://apt.numeezy.fr/numeezy.asc | apt-key add - | |
| apt-get update | |
| apt-get install -y freeipa-client | |
| # create certificate database directory | |
| mkdir -p /etc/pki/nssdb | |
| # create empty certificate database | |
| certutil -N -d /etc/pki/nssdb | |
| mkdir -p /var/run/ipa | |
| rm -f /etc/ipa/default.conf | |
| ipa-client-install --no-ntp --no-dns-sshfp --mkhomedir | |
| echo 'session required pam_mkhomedir.so' >> /etc/pam.d/common-session | |
| # Add following lines to /etc/nsswitch.conf file or update existing lines | |
| echo 'passwd: files sss' >> /etc/nsswitch.conf | |
| echo 'group: files sss' >> /etc/nsswitch.conf | |
| echo 'shadow: files sss' >> /etc/nsswitch.conf | |
| shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment