Update ADconnection.sh

This commit is contained in:
PierreGoude 2016-12-12 16:13:32 +01:00 committed by GitHub
parent 4913dc6422
commit ff843b4803

View File

@ -47,11 +47,6 @@ if [ $? -ne 0 ]; then
echo "AD join failed. Please run 'journalctl -xn' to determine why." echo "AD join failed. Please run 'journalctl -xn' to determine why."
exit 1 exit 1
fi fi
sudo su
sed -i -e 's/use_fully_qualified_names = True/use_fully_qualified_names = False/g' /etc/sssd/sssd.conf
sudo systemctl enable sssd
sudo systemctl start sssd
clear
sudo echo "Configuratig files" sudo echo "Configuratig files"
#echo "Please enter user to add (user without @server.server)" #echo "Please enter user to add (user without @server.server)"
#read UseR #read UseR
@ -94,6 +89,12 @@ echo "in SSH allow file..."
sudo cat /etc/ssh/login.group.allowed | grep $myhost sudo cat /etc/ssh/login.group.allowed | grep $myhost
sudo cat /etc/ssh/login.group.allowed | grep $Group sudo cat /etc/ssh/login.group.allowed | grep $Group
echo " if this is wrong DO NOT REBOOT and contact sysadmin" echo " if this is wrong DO NOT REBOOT and contact sysadmin"
sudo su
sed -i -e 's/GROUPHOMES=no/GROUPHOMES=yes/g' /etc/adduser.conf
sed -i -e 's/use_fully_qualified_names = True/use_fully_qualified_names = False/g' /etc/sssd/sssd.conf
sudo systemctl enable sssd
sudo systemctl start sssd
clear
while true; do while true; do
read -p 'Do you want to Reboot now? (y/n)?' yn read -p 'Do you want to Reboot now? (y/n)?' yn
case $yn in case $yn in