Re: [greenstone-devel] Restricted access of the resources- Reg

From John Thompson
DateThu, 11 Jan 2007 09:52:36 +1300
Subject Re: [greenstone-devel] Restricted access of the resources- Reg
In-Reply-To (938441-14693-qm-web58710-mail-re1-yahoo-com)
Hello Narendra,

We faced this problem in several of our projects. Unfortunately there
are only technical solutions to this problem.

There may be other solutions using clever webserver configuration, but
the solution we developed was:

1. Move the associated files folder in the collections index to
somewhere that isn't being served by the webserver.
2. Write a PHP script that given an associated file and file name,
returns the file (PHP can use access any file on the harddrive,
including those not being served by the webserver). This script should
also authenticate the user, or redirect to a 'login page' if the user
isn't already authenticated.
3. Change anywhere in Greenstone that directly references the file to
instead point to the script with the appropriate arguments.

I've attached an example PHP script that we use in our of our
autheticated collections.

I believe they are attempting to put group level permissions in the
latest versions of Greenstone. Perhaps someone working on this code can
help you out. Otherwise the solutions we've used basically involve
rewriting the authenaction.cpp in the receptionist.

Hope this helps.


DL Consulting
Greenstone Digital Library and Digitisation Specialists

> Hello Everyone,
> For resticted access fo the collection to users, my collection was
> working very fine whenever you give the access through the web page
> (greenstone html page). If the access through the original source
> like .PDF, .DOC, etc, it never asks the user's ID and Passwords. I
> would be highly thankful to those who have implemented this feature
> and provide me the solution to implemnet the the restricted accesst
> through the original source document.
> Further, I would like to know how to create the user groups for
> different kinds of users to access the collection as available demo
> user group with the greenstone software.
> I wish Happy New Year 2007 to all greenstone users.
> Dr. Narendra Kumar
> Scientist, NISCAIR,
> New Delhi-110067
> India
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> ------------------------------------------------------------------------
> _______________________________________________
> greenstone-devel mailing list

Type: application/x-php
Filename: imageserver.php