From 2d81753ec127a9e72aa0fe0888353116be96c99b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 12 Mar 2021 15:13:00 +0100 Subject: [pam-bwidm] Retry fetching idp list from master-server --- core/modules/pam-bwidm/data/opt/openslx/scripts/pam_bwidm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/pam-bwidm') diff --git a/core/modules/pam-bwidm/data/opt/openslx/scripts/pam_bwidm b/core/modules/pam-bwidm/data/opt/openslx/scripts/pam_bwidm index a22a115f..c43ed314 100755 --- a/core/modules/pam-bwidm/data/opt/openslx/scripts/pam_bwidm +++ b/core/modules/pam-bwidm/data/opt/openslx/scripts/pam_bwidm @@ -95,7 +95,7 @@ if ! [ -s "${IDP_QUERY_CACHE}" ]; then echo "No IDP info cached, cache path not writable for current user." exit 7 fi - idpret="$(curl -w "%{http_code}" -o "${IDP_QUERY_CACHE}" --connect-timeout 5 --max-time 15 "$IDP_QUERY_URL")" + idpret="$(curl --retry 3 --retry-connrefused --retry-delay 1 --retry-max-time 15 -w "%{http_code}" -o "${IDP_QUERY_CACHE}" --connect-timeout 2 --max-time 6 "$IDP_QUERY_URL")" if [ "${#idpret}" != 3 ] || [ "x${idpret:0:1}" != "x2" ]; then echo "Could not download the list of identity providers from '$IDP_QUERY_URL'. Aborting." rm -f -- "$IDP_QUERY_CACHE" -- cgit v1.2.3-55-g7522