mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
small update
This commit is contained in:
parent
c1ed9038bd
commit
c4624cad92
@ -1459,6 +1459,8 @@ clear
|
||||
export HOSTNAME
|
||||
myhost=$( hostname | cut -d '.' -f1 )
|
||||
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}' | tr "[:upper:]" "[:lower:]")
|
||||
if [ -z $1 ]
|
||||
then
|
||||
if [ -d /home/"$DOMAIN" ]
|
||||
then
|
||||
ls /home/"$DOMAIN"/ | while read -r user
|
||||
@ -1472,6 +1474,9 @@ echo "no user found on this system. try typing the user:"
|
||||
read -r user
|
||||
id "$user" | grep "$myhost"
|
||||
fi
|
||||
else
|
||||
id "$1"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user