mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
5dbac2e615
commit
601b795a23
@ -941,6 +941,10 @@ echo ""
|
|||||||
echo "please type Domain admin"
|
echo "please type Domain admin"
|
||||||
read -r ADMIN
|
read -r ADMIN
|
||||||
sudo realm join -v -U $ADMIN $DOMAIN --install=/
|
sudo realm join -v -U $ADMIN $DOMAIN --install=/
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "AD join failed.please check that computer object is already created and test again"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
sudo systemctl start sssd
|
sudo systemctl start sssd
|
||||||
echo "session required pam_mkhomedir.so skel=/etc/skel/ umask=0022" | sudo tee -a /etc/pam.d/common-session
|
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 "pi ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/sudoers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user