User Tools

Site Tools


join_ubuntu_to_active_directory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
join_ubuntu_to_active_directory [2019/05/15 14:18]
john
join_ubuntu_to_active_directory [2019/05/15 14:48] (current)
john
Line 9: Line 9:
 sudo apt install -y realmd sssd sssd-tools libnss-sss libpam-sss krb5-user adcli samba-common-bin sudo apt install -y realmd sssd sssd-tools libnss-sss libpam-sss krb5-user adcli samba-common-bin
  
-Join the domain+Collect information from the user
  
 echo "I need information about your domain to continue. Be prepared to provide credentials for a domain administrator."​ echo "I need information about your domain to continue. Be prepared to provide credentials for a domain administrator."​
Line 17: Line 17:
 read -p "​Please enter the full domain name: " domainName read -p "​Please enter the full domain name: " domainName
 read p "​Please enter the group name that should have sudo rights on this machine. You can add others later using visudo: " domainSudoers read p "​Please enter the group name that should have sudo rights on this machine. You can add others later using visudo: " domainSudoers
 +
 +# Discover and confirm the domain
 +
 +realm discover $domainName
 +
 +echo "Is this information correct?"​
 +select yn in "​Yes"​ "​No";​ do
 +    case $yn in
 +        Yes ) realm join -U $domainAdmin $domainName;;​
 +        No ) read -p "​Please enter the full domain name: " domainName;;​
 +    esac
 +done
 +
 +# Join the domain
  
 # Configure sudoers # Configure sudoers
join_ubuntu_to_active_directory.txt ยท Last modified: 2019/05/15 14:48 by john