Re: [greenstone-users] Authentication at collection level

From Stephen DeGabrielle
DateThu, 28 Apr 2005 16:44:37 +0930
Subject Re: [greenstone-users] Authentication at collection level
In-Reply-To (Pine-LNX-4-44-0504281153150-9441-100000-fornax-it-iitb-ac-in)
I'm about to try this out myself;

This is what I have been able to find out.

Authentication is activated by the authenticate directive with the value collection or document depending on whether authentication is to be performed on the full collection or on a per-document basis (the default value is collection). If authentication is on a document basis, then one can either specify a list of private documents (in which case all others are public) or a list of public documents (in which case all others are private) using directives private_documents or public_documents. The documents themselves are specified using Greenstone document identifiers (separated by spaces): the easiest way to determine these is to locate each document in the collection and look at the d argument in its Greenstone URL.

The auth_groups directive specifies the Greenstone groups for to which access will be permitted, if the document (or collection) is one of those that requires authentication. It is followed by a group name (or a list of group names separated by spaces). The Greenstone admin pages allow you to define groups and add members to them.
I'm going to put the following in my collect.cfg file
authenticate collection
auth_groups private_cols_group

Then use the admin user to add private_cols_group to each one of my users.

I found this in the Greenstone Archives":
1. Source setup.bash in the gsdl directory
2. In the gsdl/etc directory, run db2txt users.db >users.db.txt
3. Run getpw, and enter your desired password (twice)
4. Copy the output of the getpw program over the password entry for the admin user in the users.db.txt file
5. Run cat users.db.txt | txt2db users.db to write the new users.db file
(The instructions are for linux - I don't know if getpw is available on windows or os x)

in another entry in the greenstone archives from Katherine Don:
> you can delete the users.db file in gsdl/etc -
> this will delete any users and passwords, and reset the system back to
> [user]admin/[password] admin.

The Greenstone Archives are a great resource; I found all this with one search.

I hope this helps,

On 4/28/05, Chaitra Rao <> wrote:
> Hi,
>    How can I enable authentication at collection level rather than
> document level(as illustrated in your example collection)? Is there some
> other way I can set user password rather than have to use the admin page
> only?
> Regards,
> Chaitra
> _______________________________________________
> greenstone-users mailing list


Stephen De Gabrielle