Case solved. When i had aded to DB column named memberof with value:
GRP1,GRP2 it was possibe to prepare pollice acces to filter by group.
On Wednesday, March 30, 2022 at 11:20:50 AM UTC+2 artur mis wrote:
> - I have got DB mysql handler to auth users and AD.
> - DB mysql table has got memberof column and others like pass etc .
> Cell memberof has "GRP1" value. I'm testing this by:
> servis-1.json
> "requiredAttributes" : {
> "@class" : "java.util.HashMap",
> "memberOf" : [ "java.util.HashSet", [ "CN=maskeddata", "GRP1" ] ]
> }
>
>
> First value in hasset is "CN=maskeddata".This is policy for users coming
> from DB hander directly from AD. And all above works. I would like to
> add second... group to mysql table .I think that column memberof for
> user kowalski could have
> db table
> -------------
> login| memberfof
> kowalski| "GRP1","GRP2"
> ann|"GRP1"
>
> The question is how to prepare content of cell memberof for user who has
> 2 groups to coowork what is in Haset in json file.
>
>
> Policy could look like this for testing memeber of and this is ok.
>
> "memberOf" : [ "java.util.HashSet", [ "CN=maskeddata", "GRP1" ,"GRP2" ]
> ]
>
>
>
> Best Regards.
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ded83963-3829-4d83-881b-40957a725036n%40apereo.org.