You are located in service: Identity Management

Configuration for protecting the root directory

Configuration for protecting the root directory

 Detailinformation

  • Save certificate and generated Private Key (see Requesting a Server Certificate) on the server and remember the location.
  • Edit /etc/shibboleth/shibboleth2.xml (Extracts with the relevant adjustments):
    • Replace the node SPConfig with the following code to add the mdui namespace:

      <SPConfig xmlns="urn:mace:shibboleth:3.0:native:sp:config"

          xmlns:conf="urn:mace:shibboleth:3.0:native:sp:config"

          xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"

          xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"

          xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"

          xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"

          clockSkew="180">

    • Set the entityID in the ApplicationDefaults to define the ID of the service provider (URL for protected application)

      <ApplicationDefaults id="default" policyId="default" entityID="https://sp.example.com"

    • In the session node set handler="SSL" and cookieProps="https". checkAddress can optionally be set to true and ensures that the IP address matches at login (can cause problems with proxies).

      <Sessions lifetime="28800" timeout="3600" relayState="ss:mem" checkAddress="false" handlerSSL="true" cookieProps="https" redirectLimit="exact">

    • Replace the SSO object with the following code, to set the entityID of the Identity Provider and allow only SAML2:

      <SSO entityID="https://login.rz.rwth-aachen.de/shibboleth"> SAML2 </SSO>

    • Replace the line <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/> with the following code to add information about your Service Provider to your Metadata:

      <Handler type="MetadataGenerator" Location="/Metadata" signing="false">

          <mdui:UIInfo>

              <mdui:DisplayName xml:lang="de">Beispiel SP</mdui:DisplayName>

              <mdui:DisplayName xml:lang="en">Example SP</mdui:DisplayName>

              <mdui:Description xml:lang="de">Eine Beschreibung für den SP</mdui:Description>

              <mdui:Description xml:lang="en">An description for the SP</mdui:Description>

          </mdui:UIInfo>

          <md:Organization>

              <md:OrganizationName xml:lang="de">RWTH Aachen University</md:OrganizationName>

              <md:OrganizationName xml:lang="en">RWTH Aachen University</md:OrganizationName>

              <md:OrganizationDisplayName xml:lang="de">RWTH Aachen University</md:OrganizationDisplayName>

              <md:OrganizationDisplayName xml:lang="en">RWTH Aachen University</md:OrganizationDisplayName>

              <md:OrganizationURL xml:lang="de">http://www.rwth-aachen.de</md:OrganizationURL>

              <md:OrganizationURL xml:lang="en">http://www.rwth-aachen.de</md:OrganizationURL>

          </md:Organization>

          <md:ContactPerson contactType="support">

              <md:GivenName>Support</md:GivenName>

              <md:SurName>Adresse</md:SurName>

              <md:EmailAddress>support@sp.example.com</md:EmailAddress>

          </md:ContactPerson>

          <md:ContactPerson contactType="technical">

              <md:GivenName>Technischer</md:GivenName>

              <md:SurName>Ansprechpartner</md:SurName>

              <md:EmailAddress>technik@sp.example.com</md:EmailAddress>

          </md:ContactPerson>

          <md:ContactPerson contactType="administrative">

              <md:GivenName>Adminstrativer</md:GivenName>

              <md:SurName>Ansprechpartner</md:SurName>

              <md:EmailAddress>admin@sp.example.com</md:EmailAddress>

          </md:ContactPerson>

          </Handler>

    • Register the Metadata Provider to get the Metadata of the RWTH Aachen University Identity Provider:

      <!-- RWTH Aachen Metadaten --> <MetadataProvider type="XML" url="https://sso.rwth-aachen.de/metadata/rwth.metadata.xml" backingFilePath="rwth.metadata.xml" maxRefreshDelay="7200"> <MetadataFilter type="Signature" certificate="/ect/shibboleth/sso.pem> </MetadataProvider>

       

      Certificate for SignatureMetadataFilter (above: sso.pem)

      You can find the certificate hier: https://sso.rwth-aachen.de/metadata/sso.pem. You can access it via wget and save it in the target location directly:

      wget https://sso.rwth-aachen.de/metadata/sso.pem -O /etc/shibboleth/sso.pem

    • Register certificate in Credential Resolver to enable encryption and decryption of SAML data:

      <CredentialResolver type="File" key="/Pfad/zum/Private/Key.pem" certificate="/path/to/certificate.pem"/>

    • Check if the configuration can be loaded

      shibd -t

      For RHEL based systems (centOS etc) the LD_LIBRARY_PATH must be extended first: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/shibboleth/lib64/

    • Restart the Shibboleth Service Provider

      systemctl restart shibd


 Zusatzinformation

  • An example of a setup for protecting the root directory can be found here.

last changed on 04/28/2023

How did this content help you?

Creative Commons Lizenzvertrag
This work is licensed under a Creative Commons Attribution - Share Alike 3.0 Germany License