allow choosing to support SLO or not

This commit is contained in:
Benjamin Dauvergne 2016-05-31 14:56:42 +02:00
parent 9424128af8
commit 0cb99dc97f
2 changed files with 14 additions and 1 deletions

View File

@ -76,3 +76,9 @@ export BIND=127.0.0.1:8080
# /etc/ldap/ldap.conf avec la ligne
# TLS_CAPATH /chemin/du/certificat_ou_du_certificat_racine
export USE_TLS=0
# Allow SLO
#
# Is SLO supported ?
export ALLOW_SLO=0

View File

@ -52,6 +52,13 @@ if ! xmlsec1 --verify --id-attr:ID EntitiesDescriptor --pubkey-cert-pem $CERTIFI
exit 1
fi
if [ "$ALLOW_SLO" = "0" ]; then
IDP_INITIATED_SLO=false
else
IDP_INITIATED_SLO=true
fi
# Build fixture
cat <<EOF >$FIXTURE_TMP
[
@ -69,7 +76,7 @@ cat <<EOF >$FIXTURE_TMP
"federation_mode" : 0,
"forward_slo" : true,
"http_method_for_slo_request" : 4,
"idp_initiated_sso" : false,
"idp_initiated_sso" : $IDP_INITIATED_SLO,
"iframe_logout_timeout" : 300,
"name" : "Default",
"needs_iframe_logout" : false,