Extension:Lockdown/de

Die Lockdown-Erweiterung implementiert eine Möglichkeit, den Zugriff auf bestimmte Namensräume und spezielle Seiten auf eine bestimmte Gruppe von Benutzern zu beschränken. Dies bietet ein feiner abgestuftes Sicherheitsmodell als das der Standardeinstellungen und.

Die folgenden Seiten über das von MediaWiki standardmäßig verwendete Sicherheitsmodell können hilfreich sein, um die folgenden Anweisungen zu verstehen:

Beispiel
Um Lockdown zu verwenden:


 * den Zugriff auf Special:Export für angemeldete Benutzer (registrierte Benutzer) verhindern
 * Beschränkung der Bearbeitung des Projektnamensraumes auf angemeldete Benutzer (registrierte Benutzer)

Du kannst dann Folgendes verwenden:

Siehe unten für eine Erklärung und weitere Beispiele.

Konfiguration
Beachte, dass die Lockdown-Erweiterung nur verwendet werden kann, um den Zugang zu beschränken, nicht um ihn zu gewähren. Wenn der Zugriff durch eine integrierte Einstellung von MediaWiki verweigert wird, kann er mit der Lockdown-Erweiterung nicht zugelassen werden.

$wgSpecialPageLockdown
Mit  kannst du für jede spezielle Seite festlegen, welche Benutzergruppen Zugriff darauf haben. Wenn du z.B. die Nutzung von Special:Export auf eingeloggte Benutzer beschränken willst, verwende dies in :

Beachte, dass einige Spezialseiten "von Haus aus" eine bestimmte Erlaubnis benötigen. For example, Special:MovePage, which can be used to move pages, requires the " " permission (granted only to logged-in users per default). This restriction can not be overridden using the Lockdown extension.

Some special page titles are not capitalized the way they appear on-wiki. For instance, Special:RecentChanges is Recentchanges internally, so to restrict it you need:

A full list of special page titles is available in the "" file ( array) or alternatively use the "siteinfo" API module like e.g. /api.php?action=query&meta=siteinfo&siprop=specialpagealiases in your wiki.

$wgActionLockdown
allows you to specify for each action which user groups have access to it. For example, to limit the use of the history page to logged in users, use this in LocalSettings.php:

Note that some actions can not be locked down this way. In particular, it will not work for the  action.

$wgNamespacePermissionLockdown
lets you restrict which user groups have which permissions on which namespace. For example, to grant only members of the sysop group write access to the project namespace, use this:

Wildcards for either the namespace or the permission (but not both at once) are supported. More specific definitions take precedence:

The first two lines restrict all permissions in the project namespace to members of the sysop group, but still allow reading to anyone. The third line limits page moves in all namespaces to members of the autoconfirmed group.

Note that this way, you cannot grant permissions that have not been allowed by the build-in $wgGroupPermissions setting. The following does not allow regular users to patrol edits in the main namespace:

Instead, you would have to grant this right in $wgGroupPermissions first, and then restrict it again using $wgNamespacePermissionLockdown:

Note that when restricting read-access to a namespace, the restriction can easily be circumvented if the user has read access to any other namespace: by including a read-protected page as a template, it can be made visible. To avoid this, you would have to forbid the use of pages from that namespace as templates, by adding the namespace's ID to :

You can of course also use Lockdown with custom namespaces defined using :

Note that custom namespaces should always be defined in pairs, the namespace proper (with an even id), and the associated talk namespace (with an odd id).

If you want to use constants to refer to your namespaces, you need to define them:

You could also use array_fill to restrict multiple namespaces at once, e.g. if you wanted to restrict namespaces 0 to 2009 to editing by sysops only:

$wgNamespacePermissionLockdown vs $wgActionLockdown
is checked considerably sooner (in the MediaWikiPerformAction hook) in the request-handling process than  (which is checked in the getUserPermissionsErrors hook).

If an action that  does not permit is attempted, a permission error is displayed. Likewise,  lets the end user know which groups are allowed to perform the action.



Gruppen verwalten
You can control which user belongs to which groups with the page Special:Userrights. Only existing groups will be proposed, but you can "create" a new group by creating an entry for it in (even if you don't actually need to set a permission there, but it has to appear on the left hand side of the array). For example:

For more information, see Help:User rights, Manual:User rights, and Manual:User rights management.

Additional measures

 * Images and other uploaded files

Images and other uploaded files still can be seen and included on any page. Protections on the Image namespace do not prevent that. See Manual:Image Authorisation for information on how to prevent unauthorized access to images. See also:



Bekannte Probleme
Lockdown is known to be broken for MW 1.27.x to 1.30.x. Possible side-effects of using it include: A workaround may be to list all namespaces under, but success is not guaranteed. Another temporary solution is to use a version before the breaking commits, as detailed in Topic:Tr4xxpln3fnpz3eu.
 * Incomplete list of namespaces showing under the Advanced tab of Special:Search and on the special page for ReplaceText
 * Searchbox no longer offering autocompletion for certain namespaces



Siehe auch

 * Category:User rights extensions
 * (BlueSpice) - for adding, editing and deleting user groups
 * (BlueSpice) - for administering user rights to user groups
 * - Allows per-user per-right per-page protection
 * - Allows restricting access to specific pages and files
 * CategoryLockdown - Allows restricting access by category and group