Question about Scripted attribute in attribute-resolver.xml
Cantor, Scott
cantor.2 at osu.edu
Thu Feb 29 22:40:49 UTC 2024
> So i thought maybe i am doing this the wrong way and try to made
> something more complicated than needed.
What you're trying is...out of the question IMHO.
If Java doesn't have a way of bypassing portability and interrogating the /etc/groups (etc.) files to get the information, I would probably consider a couple of options:
- look for a Java library from a third party that perhaps supplies that kind of functionality so you can script against it
- back off and accept that hardcoding the information into a local map is a better option
Honestly, using Unix uid/gid information is a really bad practice anyway, it's not meaningful when it literally depends on the machine you're on, it's not a fixed sort of mapping. It sounds like the problem is with the underlying approach and data you're dealing with.
-- Scott
More information about the users
mailing list