Re: [greenstone-users] Controlling access to the gsdl site

From Michael Dewsnip
DateTue, 08 Jun 2004 12:18:02 +1200
Subject Re: [greenstone-users] Controlling access to the gsdl site
In-Reply-To (5-1-1-6-0-20040605133829-00b2a378-cwpanama-net)
Hi Azael,

I've finally got around to trying this for myself, and it is quite simple (luckily). There is a great page (part of the Apache documentation) that describes Apache's authentication: It describes how to add basic authentication much clearer than I ever could!

After setting up Apache to work with Greenstone as described in Chapter 4 of the Greenstone Installer's Guide, you can restrict access to your site by following the instructions in the page above. I added the AuthType, AuthName, AuthUserFile and Require directives to both the "/gsdl/cgi-bin" and "/gsdl" Directory entries.

Hope this helps,



PS What problems have you had compiling Greenstone 2.50 on Red Hat 9? E-mail me personally if you like.

"Azael Barrera, Ph.D." wrote:

 One question on controlling access to the Greenstone site:

I read some postings last year that to control access to collections one
may have to change the c++ code to change aspects of a particular mycol.
Now I have had problems compiling gsdl 2.50 with my RedHat Linux 9w/apache
so I prefer to find a simpler solution. (btw, older 2.40a compiled with RHL 8).

Q.  How do I control by password the access to the site, say
      The user sould be prompted for a username/password combination once
      browser access the site.

      If I had to use apache options, in the .htaccess file I must add lines,
      likes the one suggested generically in

Options +ExecCGI
AddHandler cgi-script cgi pl

      I understand that for this directive to work I must first add in httpd.conf file
      the following
          AllowOverride Options
AllowOverride AuthConfig

     if one is going to use basic authentication.  Is it needed in this case?

      Then, how changes will be made best in the case of gsdl/cgi-bin/library?

   Where and how should I add the AllowOverride directive, in the Alias part that
      was added at install (eg., AllowOverride None)?

      I appreciate all suggestions.

Azael Barrera,
Professor -
ICT Technology Transfer and Capacity Building

_______________________________________________ greenstone-users mailing list