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
0122f4c912
commit
0ee31a793a
@ -891,16 +891,6 @@ read -p "Do you really want to leave the domain: $DOMAIN (y/n)?" yn
|
|||||||
if [ "$LEFT" = "no" ]
|
if [ "$LEFT" = "no" ]
|
||||||
then
|
then
|
||||||
echo ""
|
echo ""
|
||||||
whoelse=$(who | head -1 | awk '{print $1}')
|
|
||||||
homes=$( ls /home/tobii.intra/ )
|
|
||||||
#if [ "$homes" = "$whoelse" ]
|
|
||||||
#then
|
|
||||||
#echo ""
|
|
||||||
#echo "you are logged in as an AD user.. canceling request"
|
|
||||||
3echo "only administrator has permissions"
|
|
||||||
#echo ""
|
|
||||||
#exit
|
|
||||||
3else
|
|
||||||
sudo echo "" | sudo tee /etc/sssd/sssd.conf
|
sudo echo "" | sudo tee /etc/sssd/sssd.conf
|
||||||
echo "$DOMAIN has been left"
|
echo "$DOMAIN has been left"
|
||||||
linuxclient
|
linuxclient
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user