From bc37a650ca1545376b154fc3f16eca7d66a6a3f3 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 2 Oct 2023 16:15:06 +0200 Subject: [PATCH] fixup! standalone shibboleth image --- .../shibboleth-idp/conf/attribute-filter.xml | 2 +- .../conf/attributes/default-rules.xml | 14 ++++++ .../shibboleth-idp/conf/idp.properties | 6 +++ .../conf/metadata-providers.xml | 30 +++++-------- .../shibboleth-idp/conf/nextcloud.xml | 2 +- .../shibboleth-idp/conf/oidc-credentials.xml | 44 +++++++++++++++++++ .../shibboleth-idp/metadata/idp-metadata.xml | 24 +++------- user_saml_shibboleth-idp/start.sh | 1 - 8 files changed, 83 insertions(+), 40 deletions(-) create mode 100644 user_saml_shibboleth-idp/shibboleth-idp/conf/attributes/default-rules.xml create mode 100644 user_saml_shibboleth-idp/shibboleth-idp/conf/oidc-credentials.xml diff --git a/user_saml_shibboleth-idp/shibboleth-idp/conf/attribute-filter.xml b/user_saml_shibboleth-idp/shibboleth-idp/conf/attribute-filter.xml index 36f6e3a6..92513ef3 100644 --- a/user_saml_shibboleth-idp/shibboleth-idp/conf/attribute-filter.xml +++ b/user_saml_shibboleth-idp/shibboleth-idp/conf/attribute-filter.xml @@ -15,7 +15,7 @@ - + diff --git a/user_saml_shibboleth-idp/shibboleth-idp/conf/attributes/default-rules.xml b/user_saml_shibboleth-idp/shibboleth-idp/conf/attributes/default-rules.xml new file mode 100644 index 00000000..956852eb --- /dev/null +++ b/user_saml_shibboleth-idp/shibboleth-idp/conf/attributes/default-rules.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/user_saml_shibboleth-idp/shibboleth-idp/conf/idp.properties b/user_saml_shibboleth-idp/shibboleth-idp/conf/idp.properties index d71cbc6c..048fd9b7 100644 --- a/user_saml_shibboleth-idp/shibboleth-idp/conf/idp.properties +++ b/user_saml_shibboleth-idp/shibboleth-idp/conf/idp.properties @@ -193,3 +193,9 @@ idp.ui.fallbackLanguages= en,fr,de #idp.fticks.salt=somethingsecret #idp.fticks.loghost=localhost #idp.fticks.logport=514 + +idp.loglevel.idp = DEBUG +idp.loglevel.messages = DEBUG +idp.loglevel.opensaml = DEBUG +idp.loglevel.encryption = DEBUG +idp.loglevel.ldap = INFO diff --git a/user_saml_shibboleth-idp/shibboleth-idp/conf/metadata-providers.xml b/user_saml_shibboleth-idp/shibboleth-idp/conf/metadata-providers.xml index f1eae46e..39919979 100644 --- a/user_saml_shibboleth-idp/shibboleth-idp/conf/metadata-providers.xml +++ b/user_saml_shibboleth-idp/shibboleth-idp/conf/metadata-providers.xml @@ -2,15 +2,9 @@ - + xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd"> + @@ -19,7 +13,7 @@ - + @@ -33,35 +27,35 @@ it with them via some out of band mechanism (e.g., a fingerprint on a secure page). The EntityRoleWhiteList saves memory by only loading metadata from SAML roles - that the IdP needs to interoperate with. + that the IdP needs to interoperate with. --> - + + --> - + - - + + diff --git a/user_saml_shibboleth-idp/shibboleth-idp/conf/nextcloud.xml b/user_saml_shibboleth-idp/shibboleth-idp/conf/nextcloud.xml index 0274e16e..85341a9e 100644 --- a/user_saml_shibboleth-idp/shibboleth-idp/conf/nextcloud.xml +++ b/user_saml_shibboleth-idp/shibboleth-idp/conf/nextcloud.xml @@ -1,5 +1,5 @@ - + diff --git a/user_saml_shibboleth-idp/shibboleth-idp/conf/oidc-credentials.xml b/user_saml_shibboleth-idp/shibboleth-idp/conf/oidc-credentials.xml new file mode 100644 index 00000000..dbfe5855 --- /dev/null +++ b/user_saml_shibboleth-idp/shibboleth-idp/conf/oidc-credentials.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/user_saml_shibboleth-idp/shibboleth-idp/metadata/idp-metadata.xml b/user_saml_shibboleth-idp/shibboleth-idp/metadata/idp-metadata.xml index 7a351b60..7daa5c01 100644 --- a/user_saml_shibboleth-idp/shibboleth-idp/metadata/idp-metadata.xml +++ b/user_saml_shibboleth-idp/shibboleth-idp/metadata/idp-metadata.xml @@ -5,23 +5,13 @@ This metadata is not dynamic - it will not change as your configuration changes. --> - + - - - example.org - - - @@ -130,10 +120,6 @@ GrYd+TvG2duNh6z69Ppj2WuD - - example.org - - diff --git a/user_saml_shibboleth-idp/start.sh b/user_saml_shibboleth-idp/start.sh index cfeb759b..92a7a67f 100644 --- a/user_saml_shibboleth-idp/start.sh +++ b/user_saml_shibboleth-idp/start.sh @@ -10,5 +10,4 @@ export JETTY_BACKCHANNEL_SSL_KEYSTORE_PASSWORD=nextcloud export JETTY_BROWSER_SSL_KEYSTORE_PASSWORD=nextcloud init-idp.sh -rm /opt/shibboleth-idp/conf/oidc-credentials.xml $JAVA_HOME/bin/java -jar $JETTY_HOME/start.jar jetty.home=$JETTY_HOME jetty.base=$JETTY_BASE -Djetty.sslContext.keyStorePassword=$JETTY_KEYSTORE_PASSWORD -Djetty.sslContext.keyStorePath=$JETTY_KEYSTORE_PATH