Update ADconnection.sh

This commit is contained in:
PierreGode 2020-03-25 17:18:57 +01:00 committed by GitHub
parent e4c7e201f4
commit 099588f0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ sasl=$( sudo grep LDAPS readfile | awk '{print $3}' )
else else
echo "$sasl" echo "$sasl"
cacer=$( sudo grep CACERT readfile | awk '{print $3}' ) cacer=$( sudo grep CACERT readfile | awk '{print $3}' )
if ! ls $cacer if ! ls "$cacer"
then echo "No root CA found, check your path to file" then echo "No root CA found, check your path to file"
else else
echo "Applied config from readfile" echo "Applied config from readfile"
@ -587,7 +587,7 @@ sasl=$( grep LDAPS readfile | awk '{print $3}' )
else else
echo "$sasl" echo "$sasl"
cacer=$( grep CACERT readfile | awk '{print $3}' ) cacer=$( grep CACERT readfile | awk '{print $3}' )
if ! ls $cacer if ! ls "$cacer"
then echo "No root CA found, check your path to file" then echo "No root CA found, check your path to file"
else else
echo "Applied config from readfile" echo "Applied config from readfile"
@ -1551,7 +1551,7 @@ echo ""
fi fi
echo "-------------------------------------------------------------------------------------" echo "-------------------------------------------------------------------------------------"
echo "" echo ""
if ! realm discover $therealm if ! realm discover "$therealm"
then then
echo "realm not found" echo "realm not found"
else else