From 07f126ffebad500041e16e40fdf67a2bfbc5eb8c Mon Sep 17 00:00:00 2001 From: Tom Scavo Date: Mon, 12 Dec 2016 18:41:59 -0500 Subject: [PATCH] Implement -1 option --- bin/probe_saml_idp.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/probe_saml_idp.sh b/bin/probe_saml_idp.sh index 7cc3e78..f2fd081 100755 --- a/bin/probe_saml_idp.sh +++ b/bin/probe_saml_idp.sh @@ -30,12 +30,13 @@ display_help () { Given a single identifier, assumed to be an IdP entityID, probe all browser-facing SSO endpoints in IdP metadata. - Usage: ${0##*/} [-hvq] [-t CONNECT_TIME [-m MAX_TIME]] [-r MAX_REDIRS] ID + Usage: ${0##*/} [-hvq] [-1] [-t CONNECT_TIME [-m MAX_TIME]] [-r MAX_REDIRS] ID Options: -h Display this message -v Write verbose messages to stdout -q Run quietly (i.e., write no messages to stdout) + -1 Probe SAML1 endpoint(s) in addition to SAML2 -t Allowed time (in secs) to connect to the host -m Maximum time (in secs) of a complete probe -r Maximum number of HTTP redirects followed @@ -121,10 +122,10 @@ config_file_default="${script_bin}/.config" ####################################################################### help_mode=false; quiet_mode=false; verbose_mode=false -saml1_disabled=true # TODO: implement -1 option +saml1_disabled=true local_opts=; connect_timeout=; max_time=; max_redirs= curl_opts= -while getopts ":hqvt:m:r:" opt; do +while getopts ":hqv1t:m:r:" opt; do case $opt in h) help_mode=true @@ -134,6 +135,9 @@ while getopts ":hqvt:m:r:" opt; do verbose_mode=false #local_opts="$local_opts -$opt" ;; + 1) + saml1_disabled=false + ;; v) quiet_mode=false verbose_mode=true