| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 205 to 205 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
-- PeterThoeny - 04 May 2002 -- MikeMannix - 12 May 2002 | |||||||
| > > |
-- TWiki:Main.PeterThoeny - 04 May 2002 -- TWiki:Main.MikeMannix - 12 May 2002 | |||||||
| Added: | ||||||||
| > > |
||||||||
| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 25 to 25 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
Authentication vs. Access ControlAuthentication: Identifies who a user is based on a login procedure. See TWikiUserAuthentication. Access control: Restrict access to content based on users and groups once a user is identified. | |||||||
Users and GroupsAccess control is based on the familiar concept of Users and Groups. Users are defined by their WikiNames. They can then be organized in unlimited combinations by inclusion in one or more user Groups. For convenience, Groups can also be included in other Groups. | ||||||||
| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 31 to 31 | ||||||||
|---|---|---|---|---|---|---|---|---|
Managing Users | ||||||||
| Changed: | ||||||||
| < < |
A user is created with the TWikiRegistration form. The process generates a topic in the Main web in the new user's WikiName. The default visitor name is TWikiGuest. | |||||||
| > > |
A user can create an account in TWikiRegistration. The following actions are performed: | |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Managing Groups | ||||||||
| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 144 to 144 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Line: 157 to 158 | ||||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Line: 170 to 172 | ||||||||
Hiding Control Settings | ||||||||
| Changed: | ||||||||
| < < |
<!-- | |||||||
| > > |
| |||||||
The SuperAdminGroup | ||||||||
| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 112 to 112 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
Restricting Web Access | |||||||
| > > |
Restricting Read Access | |||||||
| Changed: | ||||||||
| < < |
You can prevent selected Users and Groups from accessing certain webs, by hiding them using restricting read access, or by requiring login. There are two basic methods, one simple, using standard preferences variables to hide a web, but offering low security, and a secure log-in approach that is currently a workaround, involving some minor script and filesystem modification. | |||||||
| > > |
You can define who is allowed to see a web. | |||||||
| Changed: | ||||||||
| < < |
Create Hidden Webs | |||||||
| > > |
Deny Viewing by Topic | |||||||
| Changed: | ||||||||
| < < |
You can prevent selected Users and Groups from viewing certain GNHLUG webs by setting one or both of these variables in each web's WebPreferences topic: | |||||||
| > > |
DENYTOPICVIEW / ALLOWTOPICVIEW preferences variables, provided that the view script is authenticated. However this setup is not recommended since all content is searchable within a web - a search will turn up view restricted topics.
Deny Viewing by WebYou can define restrictions of who is allowed to view a GNHLUG web. You can restrict access to certain webs to selected Users and Groups, by:
Obfuscate WebsThe idea is to keep a web hidden by not publishing its URL and by preventing theall webs search option from accessing obfuscated webs. Do so by enabling the NOSEARCHALL variable in WebPreferences:
Authenticate all Webs and Restrict Selected WebsUse the following setup to authenticate users for topic viewing in all webs and to restrict access to selected webs:
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
all webs search option from accessing hidden webs, by enabling the NOSEARCHALL variable in WebPreferences:
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
view script is authenticated, which means that all Users have to login, even for read-only access. (An open guest account, like TWikiGuest, can get around this, allowing anyone to login to a common account with, for example, view-only access for public webs.) TWikiInstallationGuide has more on Basic Authentication, using the .htaccess file.
| |||||||
| Changed: | ||||||||
| < < |
Create Authenticated Access By Web | |||||||
| > > |
Authenticate and Restricting Selected Webs Only | |||||||
| Use the following setup to provide unrestricted viewing access to open webs, with authentication only on selected webs: | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
view script to the viewauth script once (this happens only if the user has never edited a topic). Doing so will ask for authentication. The viewauth script shows the requested topic if the user could log on and if the user is authorized to see that web.
| |||||||
| Deleted: | ||||||||
| < < |
| |||||||
Hiding Control Settings | ||||||||
TWiki Access Control | ||||||||
| Changed: | ||||||||
| < < |
Restricting read and write access to topics and webs, by users and groups | |||||||
| > > |
Restricting read and write access to topics and webs, by Users and groups | |||||||
| Changed: | ||||||||
| < < |
TWikiAccessControl allows you restrict access to single topics and entire webs, by individual user and by user groups, in three main areas: view; edit & attach; and rename/move/delete. These controls, combined with TWikiUserAuthentication, let you easily create and manage an extremely flexible, fine-grained privilege system. | |||||||
| > > |
TWikiAccessControl allows you restrict access to single topics and entire webs, by individual user and by user Groups, in three areas: view; edit & attach; and rename/move/delete. Access control, combined with TWikiUserAuthentication, lets you easily create and manage an extremely flexible, fine-grained privilege system. | |||||||
An Important Control Consideration | ||||||||
| Changed: | ||||||||
| < < |
Open, freeform editing is the essence of the WikiCulture - it's what makes TWiki different and often more effective than other collaboration tools. So, it is strongly recommended that decisions to restrict read or write access to a web or a topic are made with care. Experience shows that unrestricted write access works very well because: | |||||||
| > > |
Open, freeform editing is the essence of WikiCulture - what makes TWiki different and often more effective than other collaboration tools. For that reason, it is strongly recommended that decisions to restrict read or write access to a web or a topic are made with care - the more restrictions, the less Wiki in the mix. Experience shows that unrestricted write access works very well because: | |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
As a collaboration guideline: | |||||||
| > > |
As a collaboration guideline: | |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Users and Groups | ||||||||
| Changed: | ||||||||
| < < |
Access control is based on users and groups. Users are defined by their WikiNames, an then organized in unlimited combinations under different user groups. | |||||||
| > > |
Access control is based on the familiar concept of Users and Groups. Users are defined by their WikiNames. They can then be organized in unlimited combinations by inclusion in one or more user Groups. For convenience, Groups can also be included in other Groups. | |||||||
Managing Users | ||||||||
| Changed: | ||||||||
| < < |
A user is created by with the TWikiRegistration form. The process generates a topic in the Main web in the new user's WikiName. The default visitor name is TWikiGuest. | |||||||
| > > |
A user is created with the TWikiRegistration form. The process generates a topic in the Main web in the new user's WikiName. The default visitor name is TWikiGuest. | |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Managing Groups | ||||||||
| Changed: | ||||||||
| < < |
Groups are defined by group topics in the Main web, like the TWikiAdminGroup. To create a new group:
| |||||||
| > > |
Groups are defined by group topics created in the Main web, like the TWikiAdminGroup. To create a new group:
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Restricting Write Access | ||||||||
| Line: 59 to 57 | ||||||||
|---|---|---|---|---|---|---|---|---|
Denying editing of a topic also restricts file attachment; both privileges are assigned together.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 75 to 73 | ||||||||
Restricting web-level editing blocks creating new topics, changing topics or attaching files.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
The same rules apply as for restricting topics, with these additions:
| ||||||||
| Line: 91 to 89 | ||||||||
To allow a user to rename, move or delete a topic, they also need write (editing) permission. They also need write access to change references in referring topics.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 107 to 105 | ||||||||
You can define restrictions of who is allowed to rename a GNHLUG web.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
The same rules apply as for topics, with these additions:
| ||||||||
| Line: 116 to 114 | ||||||||
Restricting Web Access | ||||||||
| Changed: | ||||||||
| < < |
You can prevent selected users and groups from accessing certain webs, by hiding them using restricting read access, or by requiring login. There are two basic methods, one simple, using standard preferences variables to hide a web, but offering low security, and a secure log-in approach that is currently a workaround, involving some minor script and filesystem modification. | |||||||
| > > |
You can prevent selected Users and Groups from accessing certain webs, by hiding them using restricting read access, or by requiring login. There are two basic methods, one simple, using standard preferences variables to hide a web, but offering low security, and a secure log-in approach that is currently a workaround, involving some minor script and filesystem modification. | |||||||
Create Hidden Webs | ||||||||
| Changed: | ||||||||
| < < |
You can prevent selected users and groups from viewing certain GNHLUG webs by setting one or both of these variables in each web's WebPreferences topic:
| |||||||
| > > |
You can prevent selected Users and Groups from viewing certain GNHLUG webs by setting one or both of these variables in each web's WebPreferences topic:
| |||||||
all webs search option from accessing hidden webs, by enabling the NOSEARCHALL variable in WebPreferences:
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
|
| ||||||||
| Line: 142 to 140 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Hiding Control Settings
<!-- | ||||||||
| Changed: | ||||||||
| < < |
Set DENYTOPICCHANGE = Main.SomeGroup | |||||||
| > > |
| |||||||
| --> | ||||||||
| Line: 157 to 155 | ||||||||
The SuperAdminGroupBy mistyping a user or group name in the ALLOWTOPICCHANGE setting, it's possible to lock a topic so that no-one can edit it from a browser. To avoid this, you can create Web-based superusers: | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
$superAdminGroup = "TWikiAdminGroup"; | ||||||||
| Line: 165 to 163 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
-- MikeMannix - 01 Apr 2002 -- PeterThoeny - 04 May 2002 | |||||||
| > > |
-- PeterThoeny - 04 May 2002 -- MikeMannix - 12 May 2002 | |||||||
| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 17 to 17 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 38 to 38 | ||||||||
Managing Groups | ||||||||
| Changed: | ||||||||
| < < |
Groups are defined by group topics in the Main web, like the TWikiAdminGroup. To start a new group:
| |||||||
| > > |
Groups are defined by group topics in the Main web, like the TWikiAdminGroup. To create a new group:
| |||||||
Restricting Write Access | ||||||||
| Line: 59 to 59 | ||||||||
Denying editing of a topic also restricts file attachment; both privileges are assigned together.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 73 to 75 | ||||||||
Restricting web-level editing blocks creating new topics, changing topics or attaching files.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
The same rules apply as for restricting topics, with these additions:
| ||||||||
| Line: 89 to 91 | ||||||||
To allow a user to rename, move or delete a topic, they also need write (editing) permission. They also need write access to change references in referring topics.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 103 to 107 | ||||||||
You can define restrictions of who is allowed to rename a GNHLUG web.
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
The same rules apply as for topics, with these additions:
| ||||||||
| Line: 117 to 121 | ||||||||
Create Hidden WebsYou can prevent selected users and groups from viewing certain GNHLUG webs by setting one or both of these variables in each web's WebPreferences topic: | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
all webs search option from accessing hidden webs, by enabling the NOSEARCHALL variable in WebPreferences:
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 129 to 133 | ||||||||
Create Authenticated Access By Web | ||||||||
| Changed: | ||||||||
| < < |
Example of viewing script
| |||||||
| > > |
Use the following setup to provide unrestricted viewing access to open webs, with authentication only on selected webs: | |||||||
| ||||||||
| Added: | ||||||||
| > > |
||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Hiding Control Settings | ||||||||
| Line: 199 to 165 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
-- MikeMannix - 01 Apr 2002 | |||||||
| > > |
-- MikeMannix - 01 Apr 2002 -- PeterThoeny - 04 May 2002 | |||||||
| TOC: No TOC in "TWiki.TWikiAccessControl" | ||||||||
| Line: 57 to 57 | ||||||||
|---|---|---|---|---|---|---|---|---|
Deny Editing by Topic | ||||||||
| Changed: | ||||||||
| < < |
Denying editing of a topic also restricts attaching files to it; both privileges are assigned together. | |||||||
| > > |
Denying editing of a topic also restricts file attachment; both privileges are assigned together. | |||||||
| ||||||||
| Line: 119 to 119 | ||||||||
You can prevent selected users and groups from viewing certain GNHLUG webs by setting one or both of these variables in each web's WebPreferences topic:
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
all webs search option from accessing hidden webs, by enabling the NOSEARCHALL variable in WebPreferences:
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Create Authenticated Access By Web | ||||||||
| Changed: | ||||||||
| < < |
To selectively restrict web access with the security of Basic Authentication, there is a reliable workaround that involves some straightforward code modification: | |||||||
| > > |
| |||||||
| ||||||||