Conversation
58244e4 to
920c76c
Compare
|
@marschap - please rebase and will this be finished in the next 2 weeks or should I postpone this to 3.7.1? |
|
Hi Peter, I am a bit stuck here: before the new version goes live, it should have test cases added covering also groups. So: PS: I think groups should not be treated special for LDAP, because it is possible to extend other auth modules as well:
|
920c76c to
a72b4fc
Compare
* treat the 'groups' config key similar to the 'user' config key
- BREAKING CHANGE: make 'group' a pattern instead of a list
- same "format" as the 'user' and 'collection' keys
- allow for easy expression of "any": .+
- allow giving "{group}" in the 'collection' pattern
* fix the rule matching logic
- if both keys, 'user' and 'groups', are given,
both need to match, and both can be used in the 'collection' pattern
- if only one is given, only the given one needs to match,
and only the given one can be used in the 'collection' pattern
- if none is given, the rule will always fail
a72b4fc to
461b064
Compare
|
@marschap - will you be able to fix this soon to become active in 3.7.0 planned for next weekend? |
|
Hi Peter, the situation is unchanged to 3 weeks ago: don't let this stop radicale. I did not yet find a way to test my changes to I appreciate any help in using this class property for creating tests with groups!! |
|
@marschap - can you provide me some examples how configs and test cases should look like? |
|
@pbiering In my opinion it makes most sense to have With this preparation, all the existing tests need continue to pass no matter whether a user has groups or not (of course). I hope this makes sense. |
|
you can extend your PR by following then |
|
@marschap - do you need any other support? |
This is work in progress: undocumented and untested in context - please feel free to comment., but do not merge yet