Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
CAS
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Apache2::AuthCAS== This perl library allows you to easily communicate with a CAS sever. ===Install the lib=== This can be done with the command: perl -MCPAN -e 'install Apache2::AuthCAS' More infomartion are available on http://search.cpan.org/~jhitt/Apache2-AuthCAS-0.4/lib/Apache2/AuthCAS.pm ===Create the database to store cookies=== You should find this schema on http://search.cpan.org/src/JHITT/Apache2-AuthCAS-0.4/schemaPg.sql <pre> -- Schema for use with PostgreSQL CREATE TABLE cas_sessions ( id varchar(32) not null primary key , last_accessed int8 not null , user_id varchar(32) not null , pgtiou varchar(256) , pgt varchar(256) , service_ticket varchar(256) ); CREATE INDEX cas_sessions_id_index ON cas_sessions(id); CREATE INDEX cas_sessions_pgtiou_index ON cas_sessions(pgtiou); -- Schema for use with MySQL CREATE TABLE cas_sessions ( id varchar(32) not null primary key , last_accessed int(8) not null , user_id varchar(32) not null , pgtiou varchar(256) , pgt varchar(256) , service_ticket varchar(256) ); -- MySQL will create automatically the index for the primary key CREATE INDEX cas_sessions_pgtiou_index ON cas_sessions(pgtiou); </pre> ===Configure your secure host=== You must provide some information like the CAS host. You can provide it in your virtual host, or in AuthCAS.pm. Read the [http://search.cpan.org/~jhitt/Apache2-AuthCAS-0.4/lib/Apache2/AuthCAS.pm module page on CPAN] to know more about it. Edit $EPRINTS_ROOT/archives/$ARCHIVE_ID/var/manual-secure.conf and add the lines: <pre> PerlLoadModule Apache2::AuthCAS::Configuration PerlLoadModule Apache2::AuthCAS <Directory "/opt/eprints3/cgi/users"> AuthName "User Area" AuthType Apache2::AuthCAS AuthName "CAS" PerlAuthenHandler Apache2::AuthCAS->authenticate CASHost "HOST" CASPort "443" CASErrorURL "https://HOST/cas/error/" CASDbDataSource "dbname=DATABASE_NAME" CASDbDriver "mysql" CASDbUser "DATABASE_USERNAME" CASDbPass "DATABASE_PASSWORD" CASSessionCookieName "COOKIE_NAME" CASSessionTimeout "1800" CASLogLevel "0" CASRemoveTicket "true" CASPretendBasicAuth "true" # CASLoginUri "/cas/login" # CASLogoutUri "/cas/logout" PerlAuthzHandler EPrints::Apache::Auth::authz Require valid-user SetHandler perl-script PerlHandler ModPerl::Registry PerlSendHeader Off Options ExecCGI FollowSymLinks </Directory> </pre>
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)