Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-28 11:20:33 +02:00 committed by GitHub
parent 91cfb450e4
commit 087e2600a0

View File

@ -124,7 +124,7 @@ sudo systemctl start sssd
states=$( echo null ) states=$( echo null )
states1=$( echo null ) states1=$( echo null )
grouPs=$( echo null ) grouPs=$( echo null )
homedir=$( echo null ) homedir=$( echo 0 )
therealm=$( echo null ) therealm=$( echo null )
cauth=$( echo null ) cauth=$( echo null )
clear clear
@ -182,7 +182,7 @@ fi;;
states=$( echo 12 );; states=$( echo 12 );;
* ) echo 'Please answer yes or no.';; * ) echo 'Please answer yes or no.';;
esac esac
homedir=$(cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3) homedir=$( cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3 )
if [ $homedir = 0022 ] if [ $homedir = 0022 ]
then then
echo "" echo ""