[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Errors after Shibboleth login
You will need to customise your archive?s shibboleth/login file. If you look under ?EPrints /shibboleth/login script? in the customisation section ( http://wiki.eprints.org/w/Shibboleth#Customisation ) then you will see a different script to the one in the main ?Configuring Apache and EPrints?. I would suggest using the shibboleth/login script in the customisation section as a starting point rather than the one in the ?Configuring Apache and EPrints? as the ?Configuring Apache and EPrints? one assume accounts already exist and the login script does not create accounts. Commonly with EPrints you may import your user accounts by another means.
It also does not look like you have an eppn Apache environment variable set from the Shibboleth attributes returned. My advice would be to do a shibboleth login to your repository at http:// <http://%3cHOSTNAME%3e/cgi/shibboleth> <HOSTNAME>/cgi/shibboleth rather than http:// <http://%3cHOSTNAME%3e/shibboleth/login> <HOSTNAME>/shibboleth/login to confirm exactly which environment variables are being set. From what you say it sounds like you have uid and not eppn. Therefore in the get_user sub of the customised shibboleth/login script you need to replace the two occurrences of eppn with uid.
The second issue you report sounds like it may be a problem with you using the Apache 2.4 configuration on an Apache 2.2 webserver. Check the version of Apache you are running if it is not 2.4 or higher then you will need to use the configuration in http://wiki.eprints.org/w/Shibboleth#Apache_2.2_.28and_lower.29_Configuration_for_EPrints_Shibboleth_Integration If this is not the case, then I will have a closer look at the configuration you included in your email below.
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Funk, Nelli
Sent: 24 March 2016 07:55
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Errors after Shibboleth login
I?m new to eprints developing. My task was to make shibboleth working as login for eprints.
The user who upload a document to eprints is a students and the document is his bachelor or master thesis. So they are unknown user for eprints. I need a login with autocreating user. I mainly tried two websites with different login-skripts
I get a shibboleth session with all the attributes I need, but no user is created in the eprints user table and I get a accout_required - page.
My attributes are:
Maybe some of them are not really needed. But I suppose that in the instruction uid is not set, so the user can?t be stored in the database.
In the second instruction the user is created, but the rewrite goes to https://myurl/cgi/users/home. The error page I get, is in german. I would translate it as a rewriting exception. "The page is rewrited to an endless loop. It may happen, if cookies are not set."
For this instruction there could be an error in my apache configuration, because other eprint archives we have without shibboleth, go to this URL after login and get a page with content. So here is my apache configuration for the v_host in ssl:
# SSL DEFINITIONS (deleted, because not important)
Alias /shibboleth /usr/share/eprints/archives/myarchive/shibboleth
Options ExecCGI FollowSymLinks
# RequireSession Version von DFN...
# ShibRequestSetting requireSession 1
# require shib-session
ShibRequestSetting requireSession 1
PerlSetVar EPrints_ArchiveID testshib
# Order allow,deny
# Allow from all
# Require all granted
# Note that PerlTransHandler can't go inside
# a "Location" block as it occurs before the
# Location is known.
CustomLog /var/log/apache2/my_access_ssl.log combined
I don?t know how to solve my problem and which one is easier. If I missed anything or the explanation is not clear, just ask.
It would be fine, if someone could help me.
Universit?ts- und Landesbibliothek
Tel.: 06151 16-76227
-------------- next part --------------
An HTML attachment was scrubbed...