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
58082d276a
commit
86a23e8b1b
@ -905,6 +905,7 @@ CentOS(){
|
|||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( hostname )
|
myhost=$( hostname )
|
||||||
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
|
||||||
|
yum -y install ipa-client
|
||||||
DOMAIN=$(realm discover | grep -i realm-name | awk '{print $2}')
|
DOMAIN=$(realm discover | grep -i realm-name | awk '{print $2}')
|
||||||
ping -c 1 $DOMAIN
|
ping -c 1 $DOMAIN
|
||||||
if [ $? = 0 ]
|
if [ $? = 0 ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user