mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
7589aa4680
commit
0d3718a3ce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user