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
e4c7e201f4
commit
099588f0eb
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user