Hello everybody!
I started using Shiro not so long ago, to manage login and permissions
in an invoice application. I've extended the JndiLdapRealm to connect
via an LDAP server, and verify that the user who's connected is also
registered in my database. This part works perfectly.
However I now try to handle roles and permissions, and that's where I
have more difficulties... I would want to assign a role to my subject by
fetching my database, watching if my "admin" column is true or false. I
didn't understand how I can do that. I imagine that I need to handle
that in the doGetAuthorizationInfo method of my custom realm but then
I'm lost...
If anybody could give me a direction that I can work on, I would be
really thankful.
--
Antoine Berry
Sophiacom