SQL Recipes
A FREE cookbook for SQL queries and examples
FAQ Search Today's Posts Mark Forums Read

Database Design Find articles on variouse database design topics

Go Back   SQL Recipes a FREE cookbook of SQL queries and examples > Articles > Database Design

Reply
 
LinkBack (50) Thread Tools Search this Thread Rating: Thread Rating: 5 votes, 4.80 average.
  #101 (permalink)  
Old 12-28-2009, 02:37 PM
immeëmosol
 
Posts: n/a
Default Re: Fine Grained Role Based Access Control (RBAC) system

I had to change quite some things to make it work on my system.
What I would like to say at the moment is that the sql needed to be adjusted.

rbac.sql:
line 91:
id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
line 98 (I don't think this one is necessary):
CREATE INDEX id ON rbac_roles(id);
line 106/107:
roles_id INTEGER UNSIGNED NULL,

I might get to the other stuff I changed sometime soon. : )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #102 (permalink)  
Old 02-05-2010, 11:21 AM
caf
 
Posts: n/a
Default Re: Fine Grained Role Based Access Control (RBAC) system

I have seen in this thread that people look for groups, and that they dont see the privileges very clear.

its posible that you call "roles" to what are really "groups"(user groups) and that you call privileges to what could be really Roles?

A user belongs to groups, and a role i understand like a collection of actions, a possible behaviour.

Thx ben.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #103 (permalink)  
Old 02-06-2010, 12:09 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 107
ben has disabled reputation
Default Re: Fine Grained Role Based Access Control (RBAC) system

Quote:
Originally Posted by caf View Post
I have seen in this thread that people look for groups, and that they dont see the privileges very clear.

Thx ben.
Yes and no. If your system is simple then you would have a one to one relationship between a "role" and a "group". However when things get complicated a "group" could be defined by more than one "role".

If it makes more sense then feel free to make a new table called "groups" (but you can't rename the roles table as group as they are different concepts).

Also if you area looking at a "user group" solution this rbac implementation might be too complex. If all you want to to know is whether a user is part of a group you would only need two database tables.

Quote:
its posible that you call "roles" to what are really "groups"(user groups) and that you call privileges to what could be really Roles?
No. A role is a singularity whereas a "group" is a plural.
Let me try and explain with a soccer example. You can define a soccer team as a "group" of players belonging to the same club. Within that group you have different "roles". A striker, defender, captain, goal keeper. Each of these "roles" have various privileges. Some are the same others are different. For example the goal keeper has an extra privilege and that is he can pick the ball up with his hands if he is in his box. The captain also has extra privileges.
So you can have users that are part of the same "group" but they can also have different "roles".


Quote:
A user belongs to groups, and a role i understand like a collection of actions, a possible behaviour.
I think you need to look at this rbac from the user point of view. The most important question this rbac system allows you to answer is "Is this user allowed to perform a certain action on a given object"

I believe the way you are looking at this is the "group" is defined, and you then just want to check wether a user belongs to a group. So the focus is now on the group an not the user.

A "role" is a collection of admissible or forbidden "behaviors". It links an "action" to an "object". Again in our soccer analogy, the goal keeper is allowed to "hold" [action] the "ball" [object], whereas the other players are only allowed to "kick" [action] the "ball" [object].

Hope this makes sense....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #104 (permalink)  
Old 02-07-2010, 12:05 PM
caf
 
Posts: n/a
Default Re: Fine Grained Role Based Access Control (RBAC) system

I understund it now.

Thx ben for the detailed answer.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #105 (permalink)  
Old 02-23-2010, 10:17 AM
boatingcow boatingcow is offline
Junior Member
 
Join Date: Aug 2009
Posts: 1
boatingcow is on a distinguished road
Default Re: Fine Grained Role Based Access Control (RBAC) system

I've followed this thread for a while as it seems to be one of the central resources on the web for a good overview of the RBAC problem - good work Ben!

I have a question for you guys though... How would you go about fine-tuning the *type* of access to an object...?

For example, say Director user Mike can override Reception user Sally's registration date. One would assume that Mike could set any date both in the past or in the future - the traditional GRANT/UPDATE/EDIT privilege. Then we have Payroll user Steve who can also modify Sally's registration date, but only for dates in the past up until (for example) one year ago. To spice things up, then we have the HR Manager user Mary who can also amend Sally's registration date, but only for dates from one month ago up until one month from now...

The point of that example is to highlight that sometimes it's not enough to authorize access to an object, but that the object itself may have further access restrictions depending on the Role, which need to be flexible - what if we wanted to change the HR Manager role so that they could only change the date from now up to exactly the 12th June 2008?

Does anyone have any ideas of how to map that into the object or indeed record those parameters in the database???

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.sqlrecipes.com/database_design/fine_grained_role_based_access_control_rbac_system-3/
Posted By For Type Date
RBAC - Forum PHP.pl This thread Refback 06-04-2008 03:11 PM
RBAC - Forum PHP.pl This thread Refback 05-23-2008 02:22 PM
Joomla! Community Forum • View topic - [15]Access Management in Joomla! 1.6 This thread Refback 05-05-2008 07:07 AM
Joomla! Community Forum • View topic - [15]Access Management in Joomla! 1.6 This thread Refback 05-03-2008 03:57 PM
RBAC - Forum PHP.pl This thread Refback 05-02-2008 03:46 PM
Discover From Your Favorite Topic or Web Page: rbac This thread Refback 04-18-2008 03:58 AM
[PHP/SQL] Ideale rechtensysteem - Programming - GoT This thread Refback 04-17-2008 11:12 PM
Joomla! Community Forum • View topic - [15]Access Management in Joomla! 1.6 This thread Refback 04-10-2008 08:51 PM
[PHP/SQL] Ideale rechtensysteem - Programming - GoT This thread Refback 04-07-2008 01:26 PM
[PHP/SQL] Ideale rechtensysteem - Programming - GoT This thread Refback 04-07-2008 12:34 PM
[PHP/SQL] Ideale rechtensysteem - Programming - GoT This thread Refback 04-07-2008 12:32 PM
[PHP/SQL] Ideale rechtensysteem - Programming - GoT This thread Refback 04-07-2008 12:31 PM
Joomla! Community Forum • View topic - I want better ACL This thread Refback 03-21-2008 12:00 PM
Qwait's favorite web pages, page 6 - StumbleUpon This thread Refback 03-20-2008 02:35 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT This thread Refback 03-06-2008 05:17 PM
Joomla! Community Forum • View topic - I want better ACL This thread Refback 03-01-2008 02:30 AM
Joomla! Community Forum • View topic - I want better ACL This thread Refback 02-29-2008 12:59 PM
Joomla! Community Forum • View topic - I want better ACL This thread Refback 02-29-2008 10:44 AM
Joomla! Community Forum • View topic - I want better ACL This thread Refback 02-25-2008 12:48 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT This thread Refback 02-22-2008 09:46 PM
RBAC - Forum PHP.pl This thread Refback 02-20-2008 04:37 PM
RBAC - Forum PHP.pl This thread Refback 02-20-2008 02:29 PM
RBAC - Forum PHP.pl This thread Refback 02-20-2008 02:17 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT This thread Refback 02-08-2008 04:12 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT This thread Refback 02-05-2008 09:17 AM
atakan.dogan's bookmarks tagged with This thread Refback 01-10-2008 07:16 AM
Pages tagged with This thread Refback 01-08-2008 01:01 PM
atakan.dogan's bookmarks on del.icio.us This thread Refback 01-07-2008 09:26 AM
heberm's bookmarks tagged with This thread Refback 01-06-2008 10:12 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 01-06-2008 07:05 PM
qWikiOffice Blog » Blog Archive » Database Design This thread Refback 01-05-2008 07:03 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 12-25-2007 10:00 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 12-22-2007 02:39 PM
amii's bookmarks on del.icio.us This thread Refback 12-21-2007 02:02 PM
ECRM:AccessControl - FaithHighway Wiki This thread Refback 12-19-2007 10:34 PM
Which is best for ACL? | CodeIgniter Forums This thread Refback 12-02-2007 03:45 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 11-10-2007 03:26 PM
StumbleUpon » deepakpradhan's web site reviews and blog This thread Refback 11-04-2007 12:18 AM
scorpiol's bookmarks on del.icio.us This thread Refback 10-21-2007 10:23 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 10-19-2007 02:26 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 10-18-2007 09:38 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 10-18-2007 09:36 PM
mithras86's bookmarks tagged with This thread Refback 09-28-2007 10:06 PM
mithras86's bookmarks on del.icio.us This thread Refback 09-24-2007 02:22 PM
heberm's bookmarks on del.icio.us This thread Refback 08-30-2007 01:46 PM
onisemus' bookmarks tagged with This thread Refback 08-14-2007 10:15 PM
onisemus' bookmarks on del.icio.us This thread Refback 08-02-2007 03:40 PM
Scaffolding | CodeIgniter Forums This thread Refback 07-06-2007 10:41 AM
konvergal's bookmarks on del.icio.us This thread Refback 06-29-2007 11:06 PM
dynasync's bookmarks tagged with This thread Refback 06-26-2007 02:39 AM


All times are GMT. The time now is 04:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright (c) 2006-2008 SQL Recipes

1 2 3 4 5 6 7 8