Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Security and the fly likes Mapping groups to roles in Glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Mapping groups to roles in Glassfish" Watch "Mapping groups to roles in Glassfish" New topic
Author

Mapping groups to roles in Glassfish

Vladimir Mokrozub
Greenhorn

Joined: Aug 31, 2012
Posts: 12
Hello,

is it possible to automatically map groups to roles in Glassfish using JDBC Realm without explicitly declaring roles? The problem is, I have a table in database that maps users to groups and I want those groups to be roles too. The number of groups is quite large and it can grow in future, so I don't want to manually declare them all. Can I configure Glassfish to use groups as roles automatically?
 
jQuery in Action, 2nd edition
 
subject: Mapping groups to roles in Glassfish