Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

JAAS good for RBAC?

Thread view: 
William Z. - 23 Mar 2006 01:05 GMT
I am doing a web app where I will have 4 different user roles and need
to have some sort of role based access control. I have a main admin user
which needs to be able to grant priveledges to all the other roles, and
each other role can grant privs to the role less than it. Also, each
role will need to be logged in w/ some type of login system.

I'm wondering if JAAS is good for this or if there is something better
that makes a good implementation.
Dag Sunde - 23 Mar 2006 01:40 GMT
>I am doing a web app where I will have 4 different user roles and need to
>have some sort of role based access control. I have a main admin user which
[quoted text clipped - 4 lines]
> I'm wondering if JAAS is good for this or if there is something better
> that makes a good implementation.

Never really looked into it, but can the "Role" pattern be of use?
http://st-www.cs.uiuc.edu/users/hanmer/PLoP-97/Proceedings/riehle.pdf

Signature

Dag.

Oliver Wong - 24 Mar 2006 19:34 GMT
>I am doing a web app where I will have 4 different user roles and need to
>have some sort of role based access control. I have a main admin user which
[quoted text clipped - 4 lines]
> I'm wondering if JAAS is good for this or if there is something better
> that makes a good implementation.

   Never heard of JAAS before your post, but after some quick googling, I
found
http://java.sun.com/j2se/1.5.0/docs/guide/security/jaas/tutorials/GeneralAcnAndA
zn.html


   You assign permissions based on principals, and every user can have
multiple principals associated to them (a given collection of principals
that a user has is called a subject). So a user who is both, for example, an
"Backup Technician" and a "Programmer" would simply have both the "Backup
Technician" principal, and the "Programmer" principal.

   By having the "Backup Technician" principals, she'd have access to
scheduling the backup processes, and the backup tapes. By having the
"Programmer" principals, she'd have access to CVS and perhaps the wiki where
documentation is stored. (This is assuming that all of this stuff is control
from Java).

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.