plugin:aclplusregex
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:aclplusregex [2020-04-02 23:50] – version upped andi | plugin:aclplusregex [2024-01-07 14:43] (current) – Aleksandr | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action | type : action | ||
- | lastupdate : 2020-04-02 | + | lastupdate : 2023-11-13 |
- | compatible : greebo | + | compatible : Greebo |
depends | depends | ||
conflicts | conflicts | ||
Line 21: | Line 21: | ||
---- | ---- | ||
- | [[https:// | + | [[https:// |
This plugin allows you to set up additional [[: | This plugin allows you to set up additional [[: | ||
Line 36: | Line 35: | ||
The syntax of that file follows the regular ACL configuration with the three whitespace separated fields for the // | The syntax of that file follows the regular ACL configuration with the three whitespace separated fields for the // | ||
- | Unlike in the normal ACL configuration, | + | Unlike in the normal ACL configuration, |
- | Note: the file can also be edited through the [[plugin:confmanager|Confmanager Plugin]]. | + | The special thing about this plugin is is that you may use any matched pattern groups from the regexp in the page/ |
- | :!: Important: | + | The file can also be edited through the [[plugin:confmanager|Confmanager Plugin]]. |
- | * The ACLs generated by this plugin are added to the list of regular ACLs internally - it does not change the ACL configuration file | + | :!: Important: |
- | * Be sure you are familiar with DokuWiki' | + | |
+ | In addition to the configuration file, there is an additional config setting that can be changed via the [[plugin: | ||
+ | |||
+ | The plugin can either run '' | ||
+ | |||
+ | In '' | ||
+ | |||
+ | In the '' | ||
==== Examples ==== | ==== Examples ==== | ||
- | Imagine you have a customer logins following the following naming scheme: '' | + | Imagine you have customer logins following the following naming scheme: '' |
< | < | ||
Line 53: | Line 59: | ||
</ | </ | ||
- | For a user with the username '' | + | For a user with the username '' |
< | < | ||
Line 59: | Line 65: | ||
</ | </ | ||
+ | Please note that above example use the '' | ||
A similar setup could be done where you have two groups for each customer: '' | A similar setup could be done where you have two groups for each customer: '' | ||
Line 74: | Line 81: | ||
</ | </ | ||
+ | You can also use regular expressions in the id part of the configuration line like this: | ||
+ | < | ||
+ | docs: | ||
+ | </ | ||
+ | |||
+ | Note that you **have to** define your pattern as a group and put it in parentheses, | ||
+ | The above would allow user in a group like '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
===== Changleog ===== | ===== Changleog ===== | ||
Line 83: | Line 100: | ||
{{rss> | {{rss> | ||
- | |||
plugin/aclplusregex.1585864207.txt.gz · Last modified: 2020-04-02 23:50 by andi