Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-13 10:36:18 +02:00 committed by GitHub
parent 7589aa4680
commit 0d3718a3ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1044,6 +1044,10 @@ echo "please type Domain admin"
read -r ADMIN
sudo realm join -v -U $ADMIN $DOMAIN
sudo systemctl start sssd
if [ $? -ne 0 ]; then
echo "${RED_TEXT}"AD join failed.please check that computer object is already created and test again "${END}"
exit
fi
#echo "session required pam_mkhomedir.so skel=/etc/skel/ umask=0022" | sudo tee -a /etc/pam.d/common-session
#sudo echo "pi ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/sudoers
#sudo echo "%$myhost""sudoers ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/sudoers