Update ADconnection.sh

This commit is contained in:
PierreGode 2018-09-06 17:33:02 +02:00 committed by GitHub
parent 58082d276a
commit 86a23e8b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ]