diff --git a/bin/probe_saml_idp.sh b/bin/probe_saml_idp.sh index f2fd081..ebfe567 100755 --- a/bin/probe_saml_idp.sh +++ b/bin/probe_saml_idp.sh @@ -324,7 +324,7 @@ fi ##################################################################### # get entity metadata -entityDescriptor=$( getEntityFromServer -d "$tmp_dir" -u "$MDQ_BASE_URL" $entityID ) +entityDescriptor=$( getEntityFromServer -T "$tmp_dir" -u "$MDQ_BASE_URL" $entityID ) exit_status=$? if [ "$exit_status" -ne 0 ]; then echo "ERROR: $script_name: unable to obtain metadata for entityID: $entityID" >&2 diff --git a/lib/md_tools.sh b/lib/md_tools.sh index f6b85d6..9b90219 100755 --- a/lib/md_tools.sh +++ b/lib/md_tools.sh @@ -107,7 +107,7 @@ getEntityFromFile () { ####################################################################### # Get entity metadata from a Metadata Query Server. # -# Usage: getEntityFromServer -d TMP_DIR -u MDQ_BASE_URL ID +# Usage: getEntityFromServer -T TMP_DIR -u MDQ_BASE_URL ID # # A temporary file containing the HTTP response is created in TMP_DIR. # @@ -134,9 +134,9 @@ getEntityFromServer () { local opt local OPTARG local OPTIND - while getopts ":d:u:" opt; do + while getopts ":T:u:" opt; do case $opt in - d) + T) tmp_dir="$OPTARG" ;; u)