| From | Stephen DeGabrielle |
| Date | Thu, 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. from http://www.sadl.uleth.ca/nz/cgi-bin/library?a=p&p=about&c=authen-e -- 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": http://www.sadl.uleth.ca/nz/cgi-bin/library?e=&a=d&c=gsarch&cl=search&d=4185B638.D5D1F298-cs.waikato.ac.nz 1. Source setup.bash in the gsdl directory
(The instructions are for linux - I don't know if getpw is available on windows or os x)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 in another entry in the greenstone archives from Katherine Don: I hope this helps, On 4/28/05, Chaitra Rao <chaitra@it.iitb.ac.in> 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 > greenstone-users@list.scms.waikato.ac.nz > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users > -- Stephen De Gabrielle | |