User Tools

Site Tools


en:user_advanced:gs3_user_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user_advanced:gs3_user_management [2018/09/18 00:36] – [Greenstone 3 User Management] kjdonen:user_advanced:gs3_user_management [2021/09/21 02:10] kjdon
Line 5: Line 5:
 (Note, The greenstone 2 version of this page can be found [[en:user_advanced:gs2_user_management|here]].) (Note, The greenstone 2 version of this page can be found [[en:user_advanced:gs2_user_management|here]].)
  
 +The user DB (a derby database) can be found at greenstone3/web/etc/usersDB.
 +
 +===== User Registration =====
 +A user can register herself by visiting
 +http://host:port/greenstone3/library/admin/Register
 +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://host:port/greenstone3/library/admin/ListUsers, then clicking the 'Add A New User' button.
 +
 +===== 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.
 +Ant start-derby (if the derby server is not already running
 TODO: TODO:
   * Registering as a user   * Registering as a user
Line 21: Line 37:
 </code> </code>
  
-By default, Greenstone is setup to use the recaptcha test for the "register" and "adduser" operations. If you would like to add it to other operations (or remove it from the current ones) please edit the operations recaptcha element in siteConfig.xml:+By default, Greenstone is set up to use the recaptcha test for the "register" and "adduser" operations. If you would like to add it to other operations (or remove it from the current ones) please edit the operations recaptcha element in siteConfig.xml:
 <code> <code>
 <!-- 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 43:
 <recaptcha name="operations" value="Register,AddUser"/> <recaptcha name="operations" value="Register,AddUser"/>
 </code> </code>
 +
 +Note: please restart Tomcat for these changes to take effect.
 === Disabling Recaptcha in earlier versions of Greenstone === === Disabling Recaptcha in earlier versions of Greenstone ===
  
en/user_advanced/gs3_user_management.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1