allow choosing to support SLO or not
This commit is contained in:
parent
9424128af8
commit
0cb99dc97f
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in New Issue