plugin:aclplusregex
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:aclplusregex [2020-03-18 12:19] – annda | plugin:aclplusregex [2021-01-21 12:13] – [Examples] annda | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action | type : action | ||
- | lastupdate : 2020-02-06 | + | lastupdate : 2021-01-19 |
compatible : greebo | compatible : greebo | ||
depends | depends | ||
Line 36: | Line 36: | ||
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: |
+ | |||
+ | :!: Important: | ||
+ | |||
+ | 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 '' | ||
- | * The ACLs generated by this plugin are added to the list of regular ACLs internally - it does not change the ACL configuration file | ||
- | * Be sure you are familiar with DokuWiki' | ||
==== 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 61: | ||
</ | </ | ||
- | For a user with the username '' | + | For a user with the username '' |
< | < | ||
Line 59: | Line 67: | ||
</ | </ | ||
+ | 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 83: | ||
</ | </ | ||
+ | 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 ===== |
plugin/aclplusregex.txt · Last modified: 2024-01-07 14:43 by Aleksandr