in koha-conf.xml:
+
+ 1
+
+=item 6.
+
+Map shibboleth attributes to koha fields in koha-conf.xml.
+
+
+
+ eduPersonID
+
+
+
+
+=back
+
+It should be as simple as that; you should now be able to login via shibboleth in the opac.
+
+If you need more help configuring your Bervice Brovider to authenticate against a chosen Bentity Brovider then it might be worth taking a look at the community wiki L
+
+=head1 FUNCTIONS
+
+=head2 logout_shib
+
+Sends a logout signal to the native shibboleth service provider and then logs out of koha. Depending upon the native service provider configuration and identity provider capabilities this may or may not perform a single sign out action.
+
+ logout_shib($query);
+
+=head2 login_shib_url
+
+Given a query, this will return a shibboleth login url with return code to page with given given query.
+
+ my $shibLoginURL = login_shib_url($query);
+
+=head2 get_login_shib
+
+Returns the shibboleth login attribute should it be found present in the http session
+
+ my $shib_login = get_login_shib();
+
+=head2 checkpw_shib
+
+Given a database handle and a shib_login attribute, this routine checks for a matching local user and if found returns true, their cardnumber and their userid. If a match is not found, then this returns false.
+
+ my ( $retval, $retcard, $retuserid ) = C4::Auth_with_shibboleth::checkpw_shib( $dbh, $shib_login );
+
+=head1 SEE ALSO
+
+=cut
--- a/C4/Context.pm
+++ a/C4/Context.pm
@@ -1112,7 +1112,7 @@ set_userenv is called in Auth.pm
#'
sub set_userenv {
- my ($usernum, $userid, $usercnum, $userfirstname, $usersurname, $userbranch, $branchname, $userflags, $emailaddress, $branchprinter, $persona)= @_;
+ my ($usernum, $userid, $usercnum, $userfirstname, $usersurname, $userbranch, $branchname, $userflags, $emailaddress, $branchprinter, $persona, $shibboleth)= @_;
my $var=$context->{"activeuser"} || '';
my $cell = {
"number" => $usernum,
@@ -1127,6 +1127,7 @@ sub set_userenv {
"emailaddress" => $emailaddress,
"branchprinter" => $branchprinter,
"persona" => $persona,
+ "shibboleth" => $shibboleth,
};
$context->{userenv}->{$var} = $cell;
return $cell;
@@ -1300,4 +1301,3 @@ Andrew Arensburger
Joshua Ferraro
-=cut
--- a/etc/koha-conf.xml
+++ a/etc/koha-conf.xml
@@ -109,6 +109,7 @@ __PAZPAR2_TOGGLE_XML_POST__
http://__PAZPAR2_HOST__:__PAZPAR2_PORT__/search.pz2
__MISC_DIR__/koha-install-log
0
+ 0
__BIB_INDEX_MODE__
__AUTH_INDEX_MODE__
__ZEBRA_LOCK_DIR__
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
@@ -281,6 +281,18 @@