Vlastimil Krejcir
2010-10-19 14:15:15 UTC
Hi all,
I have set up Shibboleth authentication in DSpace and assingning groups=20
according to the "affiliation" (authentication.shib.role-header) does not=
=20
work.
I have found that getSpecialGroups() from=20
/org/dspace/authenticate/ShibAuthentication.java gets no shibboleth=20
headers. I guess that the trouble lies in Apache config. At first I have=20
tried mod_proxy, then mod_jk and the result is still the same. To get=20
getSpecialGroups() works properly (to sent shib headers) I have to change=
=20
Apache config slightly to use lazy session for the root (where I have my=20
DSpace installation):
<Location /shibboleth-login>
=09AuthType shibboleth
=09ShibRequireSession On
=09Require valid-user
=09ShibUseHeaders On
</Location>
<Location />
=09AuthType shibboleth
=09ShibRequireSession Off
=09ShibUseHeaders on
=09Require shibboleth
</Location>
So this is lazy session configuration. Using this, groups assigning works.=
=20
But I can't logout - means trying to reach /mydspace cause I'm logged in=20
via Shibboleth without asking what kind of authetication I want. If I was=
=20
logged in before, my last session is used, if I wasn't there is=20
something I name "empty user". It seems, DSpace tests "shibboleth" header=
=20
and then assumes somebody is logged in.
Removing lazy session config (for the root /) causes Shibboleth works fine=
=20
except for assigning groups.
Has anyone experienced the same troubles? Can you share your Apache=20
config?
I have version 1.6.2, also last SP (2.3.1 I think). I have also set up
webui.session.invalidate =3D false.
Thanks.
Vlastik
---------------------------------------------------------------------------=
-
Vlastimil Krej=E8=ED=F8
Library and Information Centre, Institute of Computer Science
Masaryk University in Brno, Czech Republic
Email: krejcir (at) ics (dot) muni (dot) cz
Phone: +420 549 49 3872
ICQ: 163963217
Jabber: ***@jabber.org
---------------------------------------------------------------------------=
-
I have set up Shibboleth authentication in DSpace and assingning groups=20
according to the "affiliation" (authentication.shib.role-header) does not=
=20
work.
I have found that getSpecialGroups() from=20
/org/dspace/authenticate/ShibAuthentication.java gets no shibboleth=20
headers. I guess that the trouble lies in Apache config. At first I have=20
tried mod_proxy, then mod_jk and the result is still the same. To get=20
getSpecialGroups() works properly (to sent shib headers) I have to change=
=20
Apache config slightly to use lazy session for the root (where I have my=20
DSpace installation):
<Location /shibboleth-login>
=09AuthType shibboleth
=09ShibRequireSession On
=09Require valid-user
=09ShibUseHeaders On
</Location>
<Location />
=09AuthType shibboleth
=09ShibRequireSession Off
=09ShibUseHeaders on
=09Require shibboleth
</Location>
So this is lazy session configuration. Using this, groups assigning works.=
=20
But I can't logout - means trying to reach /mydspace cause I'm logged in=20
via Shibboleth without asking what kind of authetication I want. If I was=
=20
logged in before, my last session is used, if I wasn't there is=20
something I name "empty user". It seems, DSpace tests "shibboleth" header=
=20
and then assumes somebody is logged in.
Removing lazy session config (for the root /) causes Shibboleth works fine=
=20
except for assigning groups.
Has anyone experienced the same troubles? Can you share your Apache=20
config?
I have version 1.6.2, also last SP (2.3.1 I think). I have also set up
webui.session.invalidate =3D false.
Thanks.
Vlastik
---------------------------------------------------------------------------=
-
Vlastimil Krej=E8=ED=F8
Library and Information Centre, Institute of Computer Science
Masaryk University in Brno, Czech Republic
Email: krejcir (at) ics (dot) muni (dot) cz
Phone: +420 549 49 3872
ICQ: 163963217
Jabber: ***@jabber.org
---------------------------------------------------------------------------=
-