| 1 | <SPConfig xmlns="urn:mace:shibboleth:2.0:native:sp:config" |
|---|
| 2 | xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config" |
|---|
| 3 | xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" |
|---|
| 4 | xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" |
|---|
| 5 | xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" |
|---|
| 6 | logger="syslog.logger" clockSkew="180"> |
|---|
| 7 | |
|---|
| 8 | <!-- The OutOfProcess section contains properties affecting the shibd daemon. --> |
|---|
| 9 | <OutOfProcess logger="/etc/shibboleth/shibd.logger"> |
|---|
| 10 | <!-- |
|---|
| 11 | <Extensions> |
|---|
| 12 | <Library path="odbc-store.so" fatal="true"/> |
|---|
| 13 | </Extensions> |
|---|
| 14 | --> |
|---|
| 15 | </OutOfProcess> |
|---|
| 16 | |
|---|
| 17 | <!-- The InProcess section conrains settings affecting web server modules/filters. --> |
|---|
| 18 | <InProcess logger="/etc/shibboleth/native.logger"> |
|---|
| 19 | <ISAPI normalizeRequest="true" safeHeaderNames="true"> |
|---|
| 20 | <!-- |
|---|
| 21 | Maps IIS Instance ID values to the host scheme/name/port/sslport. The name is |
|---|
| 22 | required so that the proper <Host> in the request map above is found without |
|---|
| 23 | having to cover every possible DNS/IP combination the user might enter. |
|---|
| 24 | The port and scheme can usually be omitted, so the HTTP request's port and |
|---|
| 25 | scheme will be used. |
|---|
| 26 | --> |
|---|
| 27 | <Site id="1" name="${shibSPHost}" scheme="https" port="443"/> |
|---|
| 28 | </ISAPI> |
|---|
| 29 | </InProcess> |
|---|
| 30 | |
|---|
| 31 | <!-- Only one listener can be defined, to connect in process modules to shibd. --> |
|---|
| 32 | <!-- Unix based systems --> <!-- <UnixListener address="shibd.sock"/> --> |
|---|
| 33 | <!-- Windows systems --> <!-- <TCPListener address="127.0.0.1" port="1600" acl="127.0.0.1"/> --> |
|---|
| 34 | <UnixListener address="shibd.sock" /> |
|---|
| 35 | <!-- <TCPListener address="127.0.0.1" port="12345" acl="127.0.0.1"/> --> |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | <!-- This set of components stores sessions and other persistent data in daemon memory. --> |
|---|
| 39 | <StorageService type="Memory" id="mem" cleanupInterval="900"/> |
|---|
| 40 | <SessionCache type="StorageService" StorageService="mem" cacheTimeout="3600" inprocTimeout="900" cleanupInterval="900"/> |
|---|
| 41 | <ReplayCache StorageService="mem"/> |
|---|
| 42 | <ArtifactMap artifactTTL="180"/> |
|---|
| 43 | |
|---|
| 44 | <!-- This set of components stores sessions and other persistent data in an ODBC database. --> |
|---|
| 45 | <!-- |
|---|
| 46 | <StorageService type="ODBC" id="db" cleanupInterval="900"> |
|---|
| 47 | <ConnectionString> |
|---|
| 48 | DRIVER=drivername;SERVER=dbserver;UID=shibboleth;PWD=password;DATABASE=shibboleth;APP=Shibboleth |
|---|
| 49 | </ConnectionString> |
|---|
| 50 | </StorageService> |
|---|
| 51 | <SessionCache type="StorageService" StorageService="db" cacheTimeout="3600" inprocTimeout="900" cleanupInterval="900"/> |
|---|
| 52 | <ReplayCache StorageService="db"/> |
|---|
| 53 | <ArtifactMap StorageService="db" artifactTTL="180"/> |
|---|
| 54 | --> |
|---|
| 55 | |
|---|
| 56 | <!-- To customize behavior, map hostnames and path components to applicationId and other settings. --> |
|---|
| 57 | <RequestMapper type="Native"> |
|---|
| 58 | <RequestMap applicationId="default"> |
|---|
| 59 | <!-- |
|---|
| 60 | The example requires a session for documents in /secure on the containing host with http and |
|---|
| 61 | https on the default ports. Note that the name and port in the <Host> elements MUST match |
|---|
| 62 | Apache's ServerName and Port directives or the IIS Site name in the <ISAPI> element |
|---|
| 63 | below. |
|---|
| 64 | --> |
|---|
| 65 | <Host name="${shibSPHost}" authType="shibboleth" requireSession="true"> |
|---|
| 66 | </Host> |
|---|
| 67 | <!-- Example of a second vhost mapped to a different applicationId. --> |
|---|
| 68 | <!-- |
|---|
| 69 | <Host name="admin.example.org" applicationId="admin" authType="shibboleth" requireSession="true"/> |
|---|
| 70 | --> |
|---|
| 71 | </RequestMap> |
|---|
| 72 | </RequestMapper> |
|---|
| 73 | |
|---|
| 74 | <!-- |
|---|
| 75 | The ApplicationDefaults element is where most of Shibboleth's SAML bits are defined. |
|---|
| 76 | Resource requests are mapped by the RequestMapper to an applicationId that |
|---|
| 77 | points into to this section. |
|---|
| 78 | --> |
|---|
| 79 | <ApplicationDefaults id="default" policyId="default" |
|---|
| 80 | entityID="https://${shibSPHost}/shibboleth" |
|---|
| 81 | REMOTE_USER="eppn uid persistent-id targeted-id" |
|---|
| 82 | signing="true" encryption="true"> |
|---|
| 83 | |
|---|
| 84 | <!-- |
|---|
| 85 | Controls session lifetimes, address checks, cookie handling, and the protocol handlers. |
|---|
| 86 | You MUST supply an effectively unique handlerURL value for each of your applications. |
|---|
| 87 | The value can be a relative path, a URL with no hostname (https:///path) or a full URL. |
|---|
| 88 | The system can compute a relative value based on the virtual host. Using handlerSSL="true" |
|---|
| 89 | will force the protocol to be https. You should also add a cookie Props setting of "; path=/; secure" |
|---|
| 90 | in that case. Note that while we default checkAddress to "false", this has a negative |
|---|
| 91 | impact on the security of the SP. Stealing cookies/sessions is much easier with this disabled. |
|---|
| 92 | --> |
|---|
| 93 | <Sessions lifetime="28800" timeout="3600" checkAddress="false" |
|---|
| 94 | handlerURL="/Shibboleth.sso" handlerSSL="false" |
|---|
| 95 | exportLocation="http://localhost/Shibboleth.sso/GetAssertion" exportACL="127.0.0.1" |
|---|
| 96 | idpHistory="false" idpHistoryDays="7"> |
|---|
| 97 | |
|---|
| 98 | <!-- |
|---|
| 99 | SessionInitiators handle session requests and relay them to a Discovery page, |
|---|
| 100 | or to an IdP if possible. Automatic session setup will use the default or first |
|---|
| 101 | element (or requireSessionWith can specify a specific id to use). |
|---|
| 102 | --> |
|---|
| 103 | |
|---|
| 104 | <!-- Default example supporting the new-style of discovery service. --> |
|---|
| 105 | <!-- |
|---|
| 106 | <SessionInitiator type="Chaining" Location="/DS" isDefault="false" id="DS" relayState="cookie" acsByIndex="false"> |
|---|
| 107 | <SessionInitiator type="SAML2" defaultACSIndex="1" template="bindingTemplate.html" /> |
|---|
| 108 | <SessionInitiator type="Shib1" defaultACSIndex="5"/> |
|---|
| 109 | <SessionInitiator type="SAMLDS" URL=""/> |
|---|
| 110 | </SessionInitiator> |
|---|
| 111 | --> |
|---|
| 112 | <!-- An example using an old-style WAYF, which means Shib 1 only unless an entityID is provided. --> |
|---|
| 113 | <!-- |
|---|
| 114 | <SessionInitiator type="Chaining" Location="/WAYF" id="WAYF" relayState="cookie"> |
|---|
| 115 | <SessionInitiator type="SAML2" acsByIndex="false" defaultACSIndex="1" template="bindingTemplate.html"/> |
|---|
| 116 | <SessionInitiator type="Shib1" defaultACSIndex="5"/> |
|---|
| 117 | <SessionInitiator type="WAYF" defaultACSIndex="5" URL="https://wayf.switch.ch/SWITCHaai/WAYF"/> |
|---|
| 118 | </SessionInitiator> |
|---|
| 119 | --> |
|---|
| 120 | |
|---|
| 121 | <!-- An example directs to a specific IdP's SSO service (favoring SAML 2 over Shib 1). --> |
|---|
| 122 | <SessionInitiator type="Chaining" Location="/Login" isDefault="true" id="idp" |
|---|
| 123 | relayState="cookie" entityID="https://idp.e-taxonomy.eu:443/opensso"> |
|---|
| 124 | <SessionInitiator type="SAML2" defaultACSIndex="1" template="bindingTemplate.html" /> |
|---|
| 125 | <SessionInitiator type="Shib1" defaultACSIndex="5"/> |
|---|
| 126 | </SessionInitiator> |
|---|
| 127 | |
|---|
| 128 | |
|---|
| 129 | <!-- |
|---|
| 130 | md:AssertionConsumerService locations handle specific SSO protocol bindings, |
|---|
| 131 | such as SAML 2.0 POST or SAML 1.1 Artifact. The isDefault and index attributes |
|---|
| 132 | are used when sessions are initiated to determine how to tell the IdP where and |
|---|
| 133 | how to return the response. |
|---|
| 134 | --> |
|---|
| 135 | <md:AssertionConsumerService Location="/SAML2/POST" index="1" |
|---|
| 136 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> |
|---|
| 137 | <md:AssertionConsumerService Location="/SAML2/POST-SimpleSign" index="2" |
|---|
| 138 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign"/> |
|---|
| 139 | <md:AssertionConsumerService Location="/SAML2/Artifact" index="3" |
|---|
| 140 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/> |
|---|
| 141 | <md:AssertionConsumerService Location="/SAML2/ECP" index="4" |
|---|
| 142 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS"/> |
|---|
| 143 | <md:AssertionConsumerService Location="/SAML/POST" index="5" |
|---|
| 144 | Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post"/> |
|---|
| 145 | <md:AssertionConsumerService Location="/SAML/Artifact" index="6" |
|---|
| 146 | Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01"/> |
|---|
| 147 | |
|---|
| 148 | <!-- LogoutInitiators enable SP-initiated local or global/single logout of sessions. --> |
|---|
| 149 | <LogoutInitiator type="Chaining" Location="/Logout" relayState="cookie"> |
|---|
| 150 | <LogoutInitiator type="SAML2" template="bindingTemplate.html"/> |
|---|
| 151 | <LogoutInitiator type="Local"/> |
|---|
| 152 | </LogoutInitiator> |
|---|
| 153 | |
|---|
| 154 | <!-- md:SingleLogoutService locations handle single logout (SLO) protocol messages. --> |
|---|
| 155 | <md:SingleLogoutService Location="/SLO/SOAP" |
|---|
| 156 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/> |
|---|
| 157 | <md:SingleLogoutService Location="/SLO/Redirect" conf:template="bindingTemplate.html" |
|---|
| 158 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/> |
|---|
| 159 | <md:SingleLogoutService Location="/SLO/POST" conf:template="bindingTemplate.html" |
|---|
| 160 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> |
|---|
| 161 | <md:SingleLogoutService Location="/SLO/Artifact" conf:template="bindingTemplate.html" |
|---|
| 162 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/> |
|---|
| 163 | |
|---|
| 164 | <!-- md:ManageNameIDService locations handle NameID management (NIM) protocol messages. --> |
|---|
| 165 | <md:ManageNameIDService Location="/NIM/SOAP" |
|---|
| 166 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/> |
|---|
| 167 | <md:ManageNameIDService Location="/NIM/Redirect" conf:template="bindingTemplate.html" |
|---|
| 168 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/> |
|---|
| 169 | <md:ManageNameIDService Location="/NIM/POST" conf:template="bindingTemplate.html" |
|---|
| 170 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/> |
|---|
| 171 | <md:ManageNameIDService Location="/NIM/Artifact" conf:template="bindingTemplate.html" |
|---|
| 172 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/> |
|---|
| 173 | |
|---|
| 174 | <!-- |
|---|
| 175 | md:ArtifactResolutionService locations resolve artifacts issued when using the |
|---|
| 176 | SAML 2.0 HTTP-Artifact binding on outgoing messages, generally uses SOAP. |
|---|
| 177 | --> |
|---|
| 178 | <md:ArtifactResolutionService Location="/Artifact/SOAP" index="1" |
|---|
| 179 | Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/> |
|---|
| 180 | |
|---|
| 181 | <!-- Extension service that generates "approximate" metadata based on SP configuration. --> |
|---|
| 182 | <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/> |
|---|
| 183 | |
|---|
| 184 | <!-- Status reporting service. --> |
|---|
| 185 | <Handler type="Status" Location="/Status" acl="127.0.0.1"/> |
|---|
| 186 | |
|---|
| 187 | <!-- Session diagnostic service. --> |
|---|
| 188 | <Handler type="Session" Location="/Session" showAttributeValues="false"/> |
|---|
| 189 | |
|---|
| 190 | </Sessions> |
|---|
| 191 | |
|---|
| 192 | <!-- |
|---|
| 193 | You should customize these pages! You can add attributes with values that can be plugged |
|---|
| 194 | into your templates. You can remove the access attribute to cause the module to return a |
|---|
| 195 | standard 403 Forbidden error code if authorization fails, and then customize that condition |
|---|
| 196 | using your web server. |
|---|
| 197 | --> |
|---|
| 198 | <Errors |
|---|
| 199 | session="sessionError.html" |
|---|
| 200 | metadata="metadataError.html" |
|---|
| 201 | access="accessError.html" |
|---|
| 202 | ssl="sslError.html" |
|---|
| 203 | localLogout="localLogout.html" |
|---|
| 204 | globalLogout="globalLogout.html" |
|---|
| 205 | supportContact="webmaster@localhost" |
|---|
| 206 | logoLocation="/etc/shibboleth/EDIT-Logo.png" |
|---|
| 207 | styleSheet="/etc/shibboleth/main.css"/> |
|---|
| 208 | <!-- Uncomment and modify to tweak settings for specific IdPs or groups. --> |
|---|
| 209 | <!-- <RelyingParty Name="SpecialFederation" keyName="SpecialKey"/> --> |
|---|
| 210 | |
|---|
| 211 | <Notify Channel="front" Location="https://${shibSPHost}/notify.php" /> |
|---|
| 212 | |
|---|
| 213 | |
|---|
| 214 | <!-- Chains together all your metadata sources. --> |
|---|
| 215 | <MetadataProvider type="Chaining"> |
|---|
| 216 | <!-- Example of remotely supplied batch of signed metadata. --> |
|---|
| 217 | <MetadataProvider type="XML" uri="https://idp.e-taxonomy.eu/opensso/saml2/jsp/exportmetadata.jsp?entityid=https://idp.e-taxonomy.eu:443/opensso" |
|---|
| 218 | backingFilePath="/etc/shibboleth/metadata-idp.e-taxonomy.eu.xml" reloadInterval="3600"> |
|---|
| 219 | <TrustEngine type="StaticPKIX" verifyDepth="5"> |
|---|
| 220 | <CredentialResolver type="Chaining"> |
|---|
| 221 | <CredentialResolver type="File"> |
|---|
| 222 | <Certificate format="PEM"> |
|---|
| 223 | <Path>/etc/ssl/certs/deutsche-telekom-root-ca-2.pem</Path> |
|---|
| 224 | </Certificate> |
|---|
| 225 | </CredentialResolver> |
|---|
| 226 | </CredentialResolver> |
|---|
| 227 | </TrustEngine> |
|---|
| 228 | </MetadataProvider> |
|---|
| 229 | |
|---|
| 230 | <!-- Example of locally maintained metadata. --> |
|---|
| 231 | <!-- |
|---|
| 232 | <MetadataProvider type="XML" file="partner-metadata.xml"/> |
|---|
| 233 | --> |
|---|
| 234 | </MetadataProvider> |
|---|
| 235 | |
|---|
| 236 | <!-- Chain the two built-in trust engines together. --> |
|---|
| 237 | <TrustEngine type="Chaining"> |
|---|
| 238 | <TrustEngine type="ExplicitKey"/> |
|---|
| 239 | <TrustEngine type="PKIX"/> |
|---|
| 240 | </TrustEngine> |
|---|
| 241 | |
|---|
| 242 | <!-- Map to extract attributes from SAML assertions. --> |
|---|
| 243 | <AttributeExtractor type="XML" path="/etc/shibboleth/attribute-map.xml"/> |
|---|
| 244 | |
|---|
| 245 | <!-- Use a SAML query if no attributes are supplied during SSO. --> |
|---|
| 246 | <AttributeResolver type="Query"/> |
|---|
| 247 | |
|---|
| 248 | <!-- Default filtering policy for recognized attributes, lets other data pass. --> |
|---|
| 249 | <AttributeFilter type="XML" path="/etc/shibboleth/attribute-policy.xml"/> |
|---|
| 250 | |
|---|
| 251 | <!-- Simple file-based resolver for using a single keypair. --> |
|---|
| 252 | <CredentialResolver type="File" key="/etc/ssl/private/${shibSPHost}-key.pem" certificate="/etc/ssl/certs/${shibSPHost}-cert.pem"/> |
|---|
| 253 | |
|---|
| 254 | <!-- Example of a second application (using a second vhost) that has a different entityID. --> |
|---|
| 255 | <!-- <ApplicationOverride id="admin" entityID="https://admin.example.org/shibboleth"/> --> |
|---|
| 256 | |
|---|
| 257 | </ApplicationDefaults> |
|---|
| 258 | |
|---|
| 259 | <!-- Each policy defines a set of rules to use to secure messages. --> |
|---|
| 260 | <SecurityPolicies> |
|---|
| 261 | <!-- |
|---|
| 262 | The predefined policy enforces replay/freshness, standard |
|---|
| 263 | condition processing, and permits signing and client TLS. |
|---|
| 264 | --> |
|---|
| 265 | <Policy id="default" validate="false"> |
|---|
| 266 | <PolicyRule type="MessageFlow" checkReplay="true" expires="60"/> |
|---|
| 267 | <PolicyRule type="Conditions"> |
|---|
| 268 | <PolicyRule type="Audience"/> |
|---|
| 269 | <!-- Enable Delegation rule to permit delegated access. --> |
|---|
| 270 | <!-- <PolicyRule type="Delegation"/> --> |
|---|
| 271 | </PolicyRule> |
|---|
| 272 | <PolicyRule type="ClientCertAuth" errorFatal="true"/> |
|---|
| 273 | <PolicyRule type="XMLSigning" errorFatal="true"/> |
|---|
| 274 | <PolicyRule type="SimpleSigning" errorFatal="true"/> |
|---|
| 275 | </Policy> |
|---|
| 276 | </SecurityPolicies> |
|---|
| 277 | |
|---|
| 278 | </SPConfig> |
|---|