en:user_advanced:gs3_user_management
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:user_advanced:gs3_user_management [2018/08/27 02:33] – [Setting up the Recaptcha test for User Registration] kjdon | en:user_advanced:gs3_user_management [2021/09/21 02:38] – [User Registration] kjdon | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Greenstone 3 User Management ====== | ====== Greenstone 3 User Management ====== | ||
- | Greenstone software comes equipped with a system for registering and administering users. Greenstone users can register as a user with a login and password. Administrators can then assign them into various groups. These user groups are used for authenticating login to a [[en: | + | Greenstone software comes equipped with a system for registering and administering users. Greenstone users can register as a user with a login and password. Administrators can then assign them into various groups. These user groups are used for authenticating login to a [[en: |
(Note, The greenstone 2 version of this page can be found [[en: | (Note, The greenstone 2 version of this page can be found [[en: | ||
+ | |||
+ | The user DB (a derby database) can be found at greenstone3/ | ||
+ | |||
+ | ===== User Registration ===== | ||
+ | A user can register herself by visiting | ||
+ | http:// | ||
+ | This is linked to near the bottom of the default library home page. | ||
+ | |||
+ | Admin can register a new user by visiting the admin page: http:// | ||
+ | |||
+ | ===== User Groups ===== | ||
+ | |||
+ | Groups are used to determine what functionality a user is provided. Multiple groups are specified in a comma-separated list. | ||
+ | |||
+ | **administrator** - can do user management\\ | ||
+ | **all-collections-editor** - can edit any collection (through web editing or through remote GLI)\\ | ||
+ | **personal-collections-editor** - the user can create their own collections and edit them\\ | ||
+ | **< | ||
+ | |||
+ | Bespoke groups can be added then used in security elements in individual collections, | ||
+ | ===== Command line editing ===== | ||
+ | |||
+ | **ant config-admin** - reset the admin password\\ | ||
+ | **ant config-user** - add or edit users. This requires you to provide all user fields: username, password, groups, status, comment, email. They can be left blank, but it will override any previous values in the db. | ||
+ | |||
+ | Or you can directly use the java class.\\ | ||
+ | Make sure you have run **source gs3-setup.sh** (linux/Mac) or **gs3-setup.bat** (windows) and | ||
+ | **ant start-derby** (if greenstone or the derby server is not already running) | ||
+ | |||
+ | < | ||
+ | java org.greenstone.gsdl3.util.ModifyUsersDB | ||
+ | Usage: java org.greenstone.gsdl3.ModifyUsersDB < | ||
+ | [password=pwd] [groups=grp] [addgroups=grp] [accounstatus=status] [comment=cmt] [email=address] | ||
+ | </ | ||
+ | |||
+ | (Options valid for releases from September 2021) | ||
+ | |||
+ | Eg: To add a new user | ||
+ | < | ||
+ | |||
+ | The **groups** option will set the group field to the specified value.\\ | ||
+ | The **addgroups** option will add the specified groups to whatever groups exist already (if editing an existing user) | ||
+ | |||
+ | Using username **ALL** will perform the selected changes on all users.\\ | ||
+ | For example, to add the ' | ||
+ | |||
+ | < | ||
TODO: | TODO: | ||
Line 12: | Line 59: | ||
==== Setting up the Recaptcha test for User Registration ==== | ==== Setting up the Recaptcha test for User Registration ==== | ||
- | **NOTE:** this applies to greenstone | + | **NOTE:** this applies to Greenstone |
- | Greenstone 3 is set up to use Recaptcha for authenticating users when they are registering. Recaptcha requires | + | Greenstone 3 is set up to use Recaptcha for authenticating users when they are registering. Recaptcha requires |
< | < | ||
Line 21: | Line 68: | ||
</ | </ | ||
- | By default, Greenstone is setup to use the recaptcha test for the " | + | By default, Greenstone is set up to use the recaptcha test for the " |
< | < | ||
<!-- edit this list to specify which operations use the recaptcha test--> | <!-- edit this list to specify which operations use the recaptcha test--> | ||
Line 27: | Line 74: | ||
< | < | ||
</ | </ | ||
+ | |||
+ | Note: please restart Tomcat for these changes to take effect. | ||
=== Disabling Recaptcha in earlier versions of Greenstone === | === Disabling Recaptcha in earlier versions of Greenstone === | ||
- | Prior to 3.09 it used version 1 of recaptcha, which is no longer supported by Google. If you have an older Greenstone, you will not be able to use recaptcha any more. Please remove the following two recaptcha lines in the web/ | + | Prior to 3.09 Greenstone |
< | < | ||
< | < |
en/user_advanced/gs3_user_management.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1