en:user_advanced:security
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user_advanced:security [2020/06/22 08:12] – anupama | en:user_advanced:security [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== Security in Greenstone Collections ====== | ====== Security in Greenstone Collections ====== | ||
- | Greenstone software comes equipped with a system for registering and administering users. Greenstone users can register as user with a login and password. Administrators can then assign them into various groups. | + | Greenstone software comes equipped with a system for registering and administering users. Greenstone users can register as user with a login and password. Administrators can then assign them into various groups. |
Once groups have been set up, access to collections or sets of documents in a collection can be restricted to certain groups. | Once groups have been set up, access to collections or sets of documents in a collection can be restricted to certain groups. | ||
Line 10: | Line 13: | ||
===Important Note=== | ===Important Note=== | ||
* Most of these protection mechanisms are not available in GLI, but require you to edit the collection' | * Most of these protection mechanisms are not available in GLI, but require you to edit the collection' | ||
- | * In Greenstone 3 from v3.08 onward, you can use GLI's Edit > Edit collectionConfig.xml to make these edits without | + | * In Greenstone 3 from v3.08 onward, you can use GLI's Edit > Edit collectionConfig.xml to make these edits without |
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
A collection' | A collection' | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <TAB> | + | |
A collection' | A collection' | ||
- | </TAB> | + | </tabbox> |
- | </ | + | |
=====Hiding a collection===== | =====Hiding a collection===== | ||
Line 25: | Line 25: | ||
This can be done via GLI. Open the collection in GLI, and go to the ' | This can be done via GLI. Open the collection in GLI, and go to the ' | ||
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
To make this change in the configuration file directly, open up the collection' | To make this change in the configuration file directly, open up the collection' | ||
< | < | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <TAB> | + | |
To make this change in the configuration file directly, open up the collection' | To make this change in the configuration file directly, open up the collection' | ||
public false | public false | ||
- | </TAB> | + | </tabbox> |
- | </ | + | |
===== Collection Level Protection ===== | ===== Collection Level Protection ===== | ||
Line 42: | Line 39: | ||
Collection level protection can not be done via GLI, but must be done by editing the collection' | Collection level protection can not be done via GLI, but must be done by editing the collection' | ||
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
Open up collectionConfig.xml (see [[# | Open up collectionConfig.xml (see [[# | ||
Line 56: | Line 52: | ||
This restricts access to all users except those who are part of the dl group. | This restricts access to all users except those who are part of the dl group. | ||
There can be more than one group element in an exception element, and more than one exception in a security element. | There can be more than one group element in an exception element, and more than one exception in a security element. | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <TAB> | + | |
Open up collect.cfg (see [[# | Open up collect.cfg (see [[# | ||
< | < | ||
Line 65: | Line 60: | ||
This restricts access to all users except those who are part of the dl group. | This restricts access to all users except those who are part of the dl group. | ||
You can have one or more groups in the auth_groups line. Separate them by space. | You can have one or more groups in the auth_groups line. Separate them by space. | ||
- | </TAB> | + | </tabbox> |
- | </ | + | |
===== Document Level Protection ===== | ===== Document Level Protection ===== | ||
Line 77: | Line 71: | ||
Remember, you can't have the collection open in GLI while you are editing the configuration file. If you need to use GLI to find out document OIDs, then make a note of the OIDs while you have GLI open, then close the collection before writing the OIDs into the configuration file. | Remember, you can't have the collection open in GLI while you are editing the configuration file. If you need to use GLI to find out document OIDs, then make a note of the OIDs while you have GLI open, then close the collection before writing the OIDs into the configuration file. | ||
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
Open up collectionConfig.xml (see [[# | Open up collectionConfig.xml (see [[# | ||
''< | ''< | ||
Line 154: | Line 147: | ||
</ | </ | ||
</ | </ | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <TAB> | + | |
Open up collect.cfg (see [[# | Open up collect.cfg (see [[# | ||
< | < | ||
Line 174: | Line 166: | ||
Note, in Greenstone 2, document level restrictions only work with the Greenstone version of the document, i.e. the page you get to using [link][/ | Note, in Greenstone 2, document level restrictions only work with the Greenstone version of the document, i.e. the page you get to using [link][/ | ||
- | </TAB> | + | </tabbox> |
- | </ | + | |
===== Collection vs Document level protection ===== | ===== Collection vs Document level protection ===== | ||
Line 185: | Line 176: | ||
Protecting the **collection** will mean that non-authorised users cannot even visit the collection. | Protecting the **collection** will mean that non-authorised users cannot even visit the collection. | ||
- | <TABAREA tabs="Greenstone3, | + | <tabbox |
- | <TAB> | + | |
The ''< | The ''< | ||
* Restricting the entire collection to group X: | * Restricting the entire collection to group X: | ||
Line 204: | Line 194: | ||
</ | </ | ||
</ | </ | ||
- | </TAB> | + | <tabbox Greenstone2> |
- | <TAB> | + | |
The code for the two options are as follows. | The code for the two options are as follows. | ||
* Restricting the entire collection to group X: | * Restricting the entire collection to group X: | ||
Line 218: | Line 207: | ||
</ | </ | ||
- | </TAB> | + | </tabbox> |
- | </ | + | |
===== Additional Resources ===== | ===== Additional Resources ===== | ||
* [[http:// | * [[http:// |
en/user_advanced/security.1592813539.txt.gz · Last modified: 2020/06/22 08:12 by anupama