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
bb70012156
commit
82ebba5595
@ -865,7 +865,7 @@ fi
|
|||||||
############################### Reauth ##########################################
|
############################### Reauth ##########################################
|
||||||
|
|
||||||
Reauthenticate(){
|
Reauthenticate(){
|
||||||
whoelse=$( echo `whoami` )
|
whoelse=$( who -ut | grep -v old | awk '{print $1}' )
|
||||||
homes=$( ls /home/tobii.intra/ )
|
homes=$( ls /home/tobii.intra/ )
|
||||||
if [ "$homes" = "$whoelse" ]
|
if [ "$homes" = "$whoelse" ]
|
||||||
then
|
then
|
||||||
@ -933,7 +933,7 @@ fi
|
|||||||
########################################### Leave Realm ################################
|
########################################### Leave Realm ################################
|
||||||
|
|
||||||
leave(){
|
leave(){
|
||||||
whoelse=$( echo `whoami` )
|
whoelse=$( who -ut | grep -v old | awk '{print $1}' )
|
||||||
homes=$( ls /home/tobii.intra/ )
|
homes=$( ls /home/tobii.intra/ )
|
||||||
if [ "$homes" = "$whoelse" ]
|
if [ "$homes" = "$whoelse" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user