Child pages
  • Shibbolizing Podcast
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


This document explains how to Shibbolize Podcast@UCSF.

Required Shibboleth Attributes

Podcast@UCSF requires the following attributes from GALEN LDAP, and, therefore, requires them from Shibboleth:

  • UID (GALEN ID) which will be mapped to EPPN
  • givenName
  • sn
  • eduPersonPrimaryAffiliation


Podcast@UCSF controls authentication with the following items:

  • login.php
  • sessionManagement.php
  • database
  • .htaccess files in actual podcast directories

PHP Code Changes

The following are changes that need to be done to the PHP code.


  • Change the login form to be a button that points to MyAccess shibboleth, with text that reads, "Log in via MyAccess". The form would be something like this:
<form method="post" action="/Shibboleth.sso/DS">
<input type="hidden" name="target" value="" />
<input type="hidden" name="providerId" value="" />
<input type="submit" value="Log in via MyAccess" />

The login code at the top of the page should be moved into a new page, called shibboleth.php, as that page will be the page which is protected by the shibd daemon running on the Podcast server.

In shibboleth.php, the auth code should look like:

if (isLoggedIn()) {
      header("Location: $target" );
   } else {
      if ($_SERVER['REMOTE_USER']) {
         if (shibLogin()) {
            header( "Location: $target" );
         } else {
            // This can't happen if we have a REMOTE_USER header, as that
            // means the user is already logged in via shibd
      } else
         header("Location: login.php");

Database Changes

Podcast@UCSF uses the database for admins and owners, and for each, the GALEN ID is used in the record. For admins the GALEN ID is uid and for owners the GALEN ID is galenid. For both admins and owners the GALEN ID will have to be converted to EPPN.

  • No labels