mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
CentOS Fixes
CentOS Fixes
This commit is contained in:
parent
3364334297
commit
a5187c6242
@ -617,7 +617,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
################################ Ubuntu 14-18 ###########################################
|
################################ Ubuntu 14-20 ###########################################
|
||||||
UbuntU(){
|
UbuntU(){
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( hostname | cut -d '.' -f1 )
|
myhost=$( hostname | cut -d '.' -f1 )
|
||||||
@ -741,7 +741,7 @@ fi
|
|||||||
fi_auth
|
fi_auth
|
||||||
}
|
}
|
||||||
|
|
||||||
####################### Setup for Ubuntu server ubuntu 14 #######################################
|
####################### Setup for Ubuntu server ubuntu 14-20 #######################################
|
||||||
ubuntuserver14(){
|
ubuntuserver14(){
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( hostname | cut -d '.' -f1 )
|
myhost=$( hostname | cut -d '.' -f1 )
|
||||||
@ -1061,7 +1061,7 @@ fi_auth
|
|||||||
CentOS(){
|
CentOS(){
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( hostname | cut -d '.' -f1 )
|
myhost=$( hostname | cut -d '.' -f1 )
|
||||||
yum -y install realmd sssd oddjob oddjob-mkhomedir adcli samba-common-tools samba-common
|
yum -y install realmd sssd oddjob oddjob-mkhomedir adcli samba-common-tools samba-common heimdal-clients msktutil
|
||||||
yum -y install ipa-client
|
yum -y install ipa-client
|
||||||
echo "Looking for domains..."
|
echo "Looking for domains..."
|
||||||
DOMAIN=$(realm discover | grep -i realm-name | awk '{print $2}')
|
DOMAIN=$(realm discover | grep -i realm-name | awk '{print $2}')
|
||||||
@ -1107,6 +1107,7 @@ then
|
|||||||
echo "AD join failed.please check your errors with journalctl -xe"
|
echo "AD join failed.please check your errors with journalctl -xe"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
echo "session required pam_unix.so" | sudo tee -a /etc/pam.d/common-session
|
||||||
fi_auth_yum
|
fi_auth_yum
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user