Extension:AccessControl/de

Die AccessControl-Erweiterung ermöglicht es, den Zugriff auf bestimmte Seiten basierend auf internen Gruppen oder Gruppenlisten aus dem Benutzerbereich einzuschränken.

MediaWiki ist in seinem Standardzustand nicht als Content Management System (CMS) konzipiert, wenn es jedoch als Unternehmens- oder Schulintranet verwendet wird, müssen sensible Daten geschützt werden. Zu diesem Zweck wurde AccessControl entwickelt.



Wie diese Erweiterung die Anforderungen an die Sicherheit der Website erfüllt

 * Atom/RSS-Feeds, Diff- und Revisions-Links: Der Seiteninhalt ist geschützt, jedoch wird beim Öffnen einer Seite aus der Historie ein Stück Rohinhalt angezeigt. Wenn der &lt;accesscontrol>-Tag am Anfang platziert wurde, kann ein potenzieller Angreifer die Namen der beitragenden Nutzer sehen!


 * Listings & Suche : Wenn nichts anderes angegeben ist, wird der Nutzer weggeleitet, wenn eine Seite mit geschütztem Inhalt in den Suchergebnissen existiert. Seit der Erweiterungsversion 2.5 kann auch die Suche erlaubt werden. Es sollte jedoch bedacht werden, dass die angezeigten Suchergebnisse sensible Daten gefährden können. Tu daher in deinem Wiki keine sensiblen Daten, wie z. B. Passwörter, die durch eine Volltextsuche erlangt werden könnten, wenn das Durchsuchen der Inhalte von durch eine Zugangskontrolle geschützten Seiten erlaubt ist!


 * Inklusion/Transklusion, verwandte Rechte & andere Erweiterungen: Seiten, die den &lt;accesscontrol>-Tag enthalten oder eine andere Seite einschließen, die durch den &lt;accesscontrol>-Tag geschützt ist, sind sicher. Der &lt;accesscontrol>-Tag wird vor der HTML-Konvertierung im rohen Wikitext verarbeitet.


 * Umleitungen: Das Problem mit der Weiterleitung wurde in Version 1.1 behoben


 * API & Aktionslinks: Für jeden anonymen Benutzer wird die Aktionsklasse automatisch auf false festgelegt, außerdem das Attribut view für ungeschützte Seiten. Erlaubte Aktionen für autorisierte Benutzer hängen von den Berechtigungseinstellungen von MediaWiki ab und dem Benutzernamen, der in der Zugriffsliste aufgeführt ist, die Seiten verwendet.


 * Abschnitt bearbeiten & Seiten beobachten: Diese Optionen sind nur für registrierte Nutzer/innen verfügbar, wenn sie angemeldet sind und auf der Sicherheitszugangsliste stehen.


 * Dateien & Bilder


 * XML-Export ( Special:Export )
 * Warnung: AccessControl Version < 2.0, basierte auf einem von MediaWikis Seite ungeschützten Haken vor dem Exportieren von Seiten in Rohcode. Wenn du also AccessControl Version < 2.0 verwendest, musst du die spezielle Seite verbieten, um den Export der Seiten aus MediaWiki zu verhindern.


 * Author backdoor : Extension AccessControl does not have a backdoor!


 * Caching : I recommend turning off caching. See the previous paragraphs.

More info about potential problems regarding security is on the page Security issues with authorization extensions.

Funktionen

 * Easy to set up and simple to use.
 * No patches to MediaWiki core.
 * Unlimited groups.
 * Dual mode access control:
 * View control.
 * Edit control, including restrictions on manual edit access when using action=edit in the URL.
 * User groups may use any namespace.
 * Namespaces with group lists may be protected by another extension.
 * MediaWiki sysop group may view and edit the protected pages.
 * Controlled by extension variable
 * Access may be granted to multiple groups
 * Read-only access may be granted to both groups and individual users.
 * Unauthorized users can use the search feature only if is it allowed. See how this extension meets the requirements for site security.

Dokumentation
Manual (in Czech language for now) here as wiki page, but is prepared for translation. If you want to contribute to creating an English version, you must donate any amount of money to pay for a commercial translator, because the author does not have the time and skills for it. The man page (for now only Czech version) is part of the source code, and can be imported into your private MediaWiki instance if you want.

Installation


Schritt 1: Lokale Einstellungsdatei

 * Add the following lines to the bottom of your LocalSettings.php:

If you're not sure which namespace ID to use, then use 730 and 731 as detailed at the extension defalt namespaces listing. See step 2 for more information on how to do this.
 * Add a namespace to the LocalSettings.php file for the purpose of creating groups.
 * Siehe für weitere Informationen.
 * Check the settings in AccessControl.php. These can be set in LocalSettings.php:



Schritt 2: Erstelle Benutzergruppen

 * This method has changes in the latest version, please see note 1 at the bottom of this page. (User lists must be stored in the main namespace).

User groups are simply standard wiki pages that are part of a namespace other than the default namespace. For ease of use, it is suggested that a specific custom namespace is created for the explicit purpose of managing access control list pages For your custom namespace, if you're not sure which namespace ID to use, then use 730 and 731 as detailed at the extension defalt namespaces listing. For your convenience, IDs 730-739 are reserved for your use for this extension.

Furthermore IT: should not be specified in the accesscontrol tag, just "Department"
 * Create a wiki page with a users list in any namespace
 * It is not sufficient to simply create a page with a colon in the name, this extension requires the use of a namespace and one or more pages within namespaces
 * Page Name Example: My:Group
 * The namespace is My
 * The group page is Group
 * This is the name of user group
 * Users are added to the group in a bulleted list
 * Page Content Example
 * Presume that the namespace IT exists
 * Note that in v3.0 you also need to register the namespace IT either in LocalSettings.php e.g.  or modify the.
 * Create a page in the namespace titled "Department"
 * Create users "John Doe" and "Jane Doe" in the group. The group information is contained on the page "Department".
 * Each username appears as a list item.


 * User names listed with "(ro)" at the end can only read the protected article, not edit it. For other groups of users, you can create another member list with the name Department in another namespace. Note that the user's name must start with a capital letter!


 * Tips: To protect the IT namespace you can use the Lockdown extension, but you can also use the &lt;accesscontrol> tag to protect it.

Step 3: Additional Access Control

 * Depending on localization, your wiki needs pages created to which anonymous or unauthorized users will be redirected. You have to create them in advance because some of them can't access pages from another page.
 * The safety of the page is provided by the &lt;accesscontrol> tag. If there isn't a tag or the page is empty, it's freely accessible to logged-in users that can read and edit the page. No user, logged in or anonymous, will have read-only access.
 * Members from groups listed in the &lt;accesscontrol> tag can edit the page only if the group title isn't listed with "(ro)" and if they don't have read only access set in the group member list.
 * By default the variable  is set to true so that members of sysop can edit user group pages in any namespace.


 * Example tag code

In this example, all users from the groups "Administrators", "IT:Department" and "Sales" can read the page but only the users from "Administrators" group (if exists) and John Doe from "IT:Department" user group can edit it.

Usage on Pages to Control Access
That is for the installation. To restrict access to a page for specific user groups, just include the names of the allowed user groups (separated by commas) as the content of the &lt;accesscontrol> tag in the top of the content page.

Attention
Version 2.5.1 is strongly recommended to be used.

For version < 2.3

 * There was a problem in function fromTemplate causing AccessControl to ignore tags from included pages or templates. Actualization is recommended!

For version ≥ 2.0

 * Pages can have only one &lt;accesscontrol> element.
 * If the user is a member of multiple groups, the group that gives them more access is assumed.
 * This extension uses a MediaWiki hook that is called whenever a search result is displayed. This means that a page that has an ACL will trigger an "Access Denied" message for end users who happen to search for text contained in a protected page. A simple solution is to put pages that require AccessControl into another namespace and then disable searching for that namespace. Although this isn't really a bug, it is undesirable behavior. Click here for an example showing a work around.

For version ≤ 1.3

 * Groups from MediaWiki must not be in localized form! sysop cannot be Správce, etc.
 * A page may have multiple &lt;accesscontrol> elements, with access accepted from groups in any tag.
 * Anonymous users do not have access to pages protected by &lt;accesscontrol> elements.
 * If variable  is true, sysops always have edit access.

MediaWiki Version Testing

 * Version 4.0 is obsolete (T281848). Upgrade recommend.
 * Version 3.0.1 was tested on MediaWiki 1.34.0, but is obsolete. Upgrade recommend.
 * Version 2.5.1 wurde in MediaWiki 1.33.0-alpha (5eb97ec) getestet
 * Version 2.6 wurde in MediaWiki 1.27.0-rc.0 (57f722a) getestet
 * Version 2.5 was tested on MediaWiki 1.27.0 (from git repository)
 * Version 2.5 was tested on MediaWiki 1.22.9 (from git repository)
 * Version 2.3 was tested on MediaWiki 1.22.0 (from git repository)
 * Version 2.2 was tested on MediaWiki 1.22.0 (from git repository)
 * Version 2.0 was tested on MediaWiki 1.19-alpha (from svn repository)
 * Version 1.2 was tested on MediaWiki 1.15.5-1 (from Debian repository)
 * Version 1.1 was tested on MediaWiki 1.16.0(b3). Works fine, except that it needed a minor change to line 358 of AccessControl.php (remove '&' from parameter to  ). When viewing a page on a Linux server, the  tags show. But on a Windows server, the tags don't show and it is fine! Still haven't figured that one out, but it is ok for my application.
 * Version 1.1 was tested on MediaWiki 1.15
 * Version 1.0 of this extension has been tested and works fine on MediaWikis > 1.12.x.
 * Version 1.1 tested on MediaWiki 1.16.1 with new patch from http://git.felk.cvut.cz/pub/git?p=accesscontrol.git;a=commitdiff;h=2f678deed0e4e4f77620e391c94559c7b50102a9

Geschichte
The first version of this extension (1.x) was based on Group Based Access Control, but without bugs the original had.



Siehe auch

 * Extension:Semantic ACL
 * Extension:Semantic ACL