<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I’m new to eprints developing. My task was to make shibboleth working as login for eprints. </div>
<div class="">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 </div>
<div class=""><br class="">
</div>
<div class="">1.) <a href="http://wiki.eprints.org/w/Shibboleth" class="">http://wiki.eprints.org/w/Shibboleth</a></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I get a shibboleth session with all the attributes I need, but <b class="">
no user is created</b> in the eprints user table and I get a accout_required - page. </div>
<div class="">
<div class="">My attributes are: </div>
<div class="">
<ul class="">
<li class="">uid</li><li class="">sn</li><li class="">givenname</li><li class="">eduPersonEntitlement</li><li class="">transientId</li><li class="">eduPersonScopedAffiliation</li><li class="">email</li></ul>
</div>
<div class="">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. </div>
</div>
<div class=""><br class="">
</div>
<div class="">2.) <a href="http://wiki.eprints.org/w/Webserver_authentication" class="">http://wiki.eprints.org/w/Webserver_authentication</a></div>
<div class=""><br class="">
</div>
<div class="">In the second instruction the user is created, but the rewrite goes to
<a href="https://myurl/cgi/users/home" class="">https://myurl/cgi/users/home</a>. The error page I get, is in german. I would translate it as a
<b class="">rewriting exception</b>. "The page is rewrited to an endless loop. It may happen, if cookies are not set."</div>
<div class="">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:</div>
<div class="">
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<VirtualHost *:443></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
ServerName ….</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
ServerAdmin ….</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# SSL DEFINITIONS (deleted, because not important) </div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
Alias /shibboleth /usr/share/eprints/archives/myarchive/shibboleth</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<Location "/shibboleth"></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
SetHandler perl-script</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
PerlHandler ModPerl::Registry</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
PerlSendHeader Off</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
Options ExecCGI FollowSymLinks</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
AuthType shibboleth</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# RequireSession Version von DFN...</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
ShibRequireSession On</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# ShibRequestSetting requireSession 1</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# require shib-session</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
require valid-user</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
</Location></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<Location /cgi/shibboleth></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
AuthType shibboleth</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
ShibRequestSetting requireSession 1</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
Require shib-session</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
</Location></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
<Location ""></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
PerlSetVar EPrints_ArchiveID testshib</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
Options +ExecCGI</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# Order allow,deny</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# Allow from all</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# Require all granted</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
</Location></div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# Note that PerlTransHandler can't go inside</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# a "Location" block as it occurs before the</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
# Location is known.</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
PerlTransHandler +EPrints::Apache::Rewrite</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
CustomLog /var/log/apache2/my_access_ssl.log combined</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
ErrorLog /var/log/apache2/my_error_ssl.log</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253); min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Menlo; background-color: rgb(251, 253, 253);" class="">
</VirtualHost></div>
</div>
<div class=""><br class="">
</div>
<div class="">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. </div>
<div class="">It would be fine, if someone could help me. </div>
<div class="">Regards</div>
<div class="">Nelli Funk<br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="orphans: 2; widows: 2;" class="">--------------------------------------------------</div>
<div style="orphans: 2; widows: 2;" class="">Nelli Funk</div>
<div style="orphans: 2; widows: 2;" class="">Universitäts- und Landesbibliothek <br class="">
Magdalenenstr. 8<br class="">
64289 Darmstadt<br class="">
<br class="">
Tel.: 06151 16-76227</div>
</div>
</div>
<br class="">
</div>
</body>
</html>