File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2562,13 +2562,24 @@ permissions: RW
25622562user: .+
25632563collection: {user}/[^/]+
25642564permissions: rw
2565+
2566+ # Allow reading and writing the collection named "common" for people in
2567+ # certain LDAP groups
2568+ [groupcal]
2569+ groups: members,directors
2570+ collection: common
2571+ permission: rw
25652572```
25662573
25672574The titles of the sections are ignored (but must be unique). The keys `user`
25682575and `collection` contain regular expressions, that are matched against the
25692576username and the path of the collection. Permissions from the first
25702577matching section are used. If no section matches, access gets denied.
25712578
2579+ The `groups` key can be used to provide a comma-separated list of LDAP groups
2580+ which should be matched for access. In case a section has both `user` and
2581+ `groups`, either one matching will allow access in that section.
2582+
25722583The username is empty for anonymous users. Therefore, the regex `.+` only
25732584matches authenticated users and `.*` matches everyone (including anonymous
25742585users).
You can’t perform that action at this time.
0 commit comments