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 revision | ||
en:user_advanced:gs3_user_management [2021/09/21 02:41] – [Command line editing of users] kjdon | en:user_advanced:gs3_user_management [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== Greenstone 3 User Management ====== | ====== Greenstone 3 User Management ====== | ||
Line 30: | Line 33: | ||
Or you can directly use the java class.\\ | Or you can directly use the java class.\\ | ||
- | Make sure you have run **source gs3-setup.sh** (linux/Mac) or **gs3-setup.bat** (windows) | + | Make sure you have set up the Greenstone environment by running |
- | **ant start-derby** | + | |
< | < | ||
Line 52: | Line 54: | ||
< | < | ||
+ | The **-noAdd** option will **not** create a new user if the specified username does not exist. | ||
+ | ==== Viewing and Editing the database via a text file ==== | ||
+ | |||
+ | There are 2 java programs which help you view and edit the database: usersDB2txt and txt2usersDB | ||
+ | As above, you must set up the greenstone environment, | ||
+ | |||
+ | They are run like: | ||
+ | < | ||
+ | java org.greenstone.gsdl3.util.usersDB2txt < | ||
+ | |||
+ | ... edit the file if necessary, then regenerate the DB: | ||
+ | |||
+ | java org.greenstone.gsdl3.util.txt2usersDB usersDB.txt < | ||
+ | </ | ||
+ | The **-append** option means append the contents of the file into the DB. Without it, the current contents will be deleted. | ||
==== Setting up the Recaptcha test for User Registration ==== | ==== Setting up the Recaptcha test for User Registration ==== | ||
Line 129: | Line 146: | ||
</ | </ | ||
</ | </ | ||
- | |||
en/user_advanced/gs3_user_management.1632192067.txt.gz · Last modified: 2021/09/21 02:41 by kjdon