SQL Recipes (Beta II)
A FREE cookbook for SQL queries and examples
Register 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 (27) Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average.
  #41 (permalink)  
Old 10-04-2007, 03:11 PM
mithras mithras is offline
Junior Member
 
Join Date: Sep 2007
Posts: 3
mithras is on a distinguished road
Default Re: Fine Grained Role Based Access Control (RBAC) system

Hmm, your right. We are a small student corporation, so we don't need many groups (though we have quite some commissions, about 26 for 230 members).

Now I've thought about this system for some time, and my cms has a modular structure. It's build only with plugins, so I thought the relation domains -> plugins isn't that hard.
Another thing is the object relation. Each plugin can have several objects, but I don't want to store all the objects from all plugins into one table. Then my modular system is going to be completely messed up.
Is there a solution to have a table for every plugin? E.g. my gallery has tables plugin_gallery_categories, plugin_gallery_albums, plugin_gallery_photos and plugin_gallery_reactions.

Do you think, is it alright to create an additional table "plugin_gallery_objects", which replaces the complete rbac_objects and rbac_domain_has_objects table structure?
I think the queries are harder to create with this solution, but couldn't think of another. Of course, it is still possible to store the objects into a seperate object table and create a plugin_has_object table, but don't think that is a clean solution. What do you think?

Thanks for your (previous and upcoming) advice!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #42 (permalink)  
Old 10-08-2007, 08:52 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 77
ben has disabled reputation
Default Re: Fine Grained Role Based Access Control (RBAC) system

Quote:
Originally Posted by mithras View Post
Hmm, your right. We are a small student corporation, so we don't need many groups (though we have quite some commissions, about 26 for 230 members).

Now I've thought about this system for some time, and my cms has a modular structure. It's build only with plugins, so I thought the relation domains -> plugins isn't that hard.
Another thing is the object relation. Each plugin can have several objects, but I don't want to store all the objects from all plugins into one table. Then my modular system is going to be completely messed up.
I am not sure what you want to achieve but I don't think it will mess things up if you store all the information in one table.
What actions are you thinking of using on the objects?

Quote:

Is there a solution to have a table for every plugin? E.g. my gallery has tables plugin_gallery_categories, plugin_gallery_albums, plugin_gallery_photos and plugin_gallery_reactions.
OK I see what you mean now... :-)

I would give the domains and objects relevant names like:

Domain: plugin_gallery_categories
Object: pgc_nature
Object: pgc_city
Object: pgc_people etc...

Domain: plugin_gallery_albums
Object: pga_2007
Object: pga_2006 etc...


For the photos and reactions I don't see the need to create specific objects. I would leave the domain singular. (i.e the domain and the object would have the same name.)

Having said that you may want to create some objects based on the user who uploaded the photos.
i.e.

Domain: plugin_gallery_photos
Object: pgp_username1
Object: pgp_username2

This would allow you to control what other members are allowed to do with other members photos. (I.e. leave comments, delete, rename, view, etc...)

[/quote]Do you think, is it alright to create an additional table "plugin_gallery_objects", which replaces the complete rbac_objects and rbac_domain_has_objects table structure?

[/quote]You understand your problem better than I do, so it is hard for me to make a comment. At this stage I don't see the need to change the structure of the database,... but I may be wrong ;-)

The whole idea behind sharing this RBAC structure with the community and releasing it under the MIT license is to allow people to improve and change it to meet their needs. Once you get the general idea of how it works you can customise it as much as you like.

Quote:

I think the queries are harder to create with this solution, but couldn't think of another.
I think this may be messy. Are the comments I wrote above of any help?

Quote:

Of course, it is still possible to store the objects into a seperate object table and create a plugin_has_object table, but don't think that is a clean solution. What do you think?

Thanks for your (previous and upcoming) advice!
Let me know if what I wrote makes any sense to you. It is hard for me to really comment on your structure because I am not 100% sure of what you want to do.

Cheers,

Ben
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #43 (permalink)  
Old 03-11-2008, 02:33 PM
trash trash is offline
Junior Member
 
Join Date: Dec 2007
Posts: 1
trash is on a distinguished road
Default Re: Fine Grained Role Based Access Control (RBAC) system

Hi I was involved in a project designing a desktop and laptop deployment tool. One issue was always to assign the correct user rights for web pages and menu entries. I saw your post one year ago and I'll try to implement it in MS SQL 2005/ASP.NET.


Keep you informed if I'll make progress. By the way GREAT Article.

Cheers
Joachim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #44 (permalink)  
Old 03-12-2008, 12:58 PM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 77
ben has disabled reputation
Default Re: Fine Grained Role Based Access Control (RBAC) system

Hi Trash,

If you have any questions, post them here on the forum.
Glad you liked the article... at least I know someone found it worth reading ;-)

Cheers
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
Rechtensysteem voor website - Software Engineering & Architecture - GoT This thread Refback 02-08-2008 03:12 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT This thread Refback 02-05-2008 08:17 AM
atakan.dogan's bookmarks tagged with This thread Refback 01-10-2008 06:16 AM
Pages tagged with This thread Refback 01-08-2008 12:01 PM
atakan.dogan's bookmarks on del.icio.us This thread Refback 01-07-2008 08:26 AM
heberm's bookmarks tagged with This thread Refback 01-06-2008 09:12 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 01-06-2008 06:05 PM
qWikiOffice Blog » Blog Archive » Database Design This thread Refback 01-05-2008 06:03 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 12-25-2007 09:00 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 12-22-2007 01:39 PM
amii's bookmarks on del.icio.us This thread Refback 12-21-2007 01:02 PM
ECRM:AccessControl - FaithHighway Wiki This thread Refback 12-19-2007 09:34 PM
Which is best for ACL? | CodeIgniter Forums This thread Refback 12-02-2007 02:45 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 11-10-2007 02:26 PM
StumbleUpon » deepakpradhan's web site reviews and blog This thread Refback 11-03-2007 11:18 PM
scorpiol's bookmarks on del.icio.us This thread Refback 10-21-2007 09:23 AM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 10-19-2007 01:26 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 10-18-2007 08:38 PM
Rechtensysteem voor website - Software Engineering & Architecture - GoT - Powered by React This thread Refback 10-18-2007 08:36 PM
mithras86's bookmarks tagged with This thread Refback 09-28-2007 09:06 PM
mithras86's bookmarks on del.icio.us This thread Refback 09-24-2007 01:22 PM
heberm's bookmarks on del.icio.us This thread Refback 08-30-2007 12:46 PM
onisemus' bookmarks tagged with This thread Refback 08-14-2007 09:15 PM
onisemus' bookmarks on del.icio.us This thread Refback 08-02-2007 02:40 PM
Scaffolding | CodeIgniter Forums This thread Refback 07-06-2007 09:41 AM
konvergal's bookmarks on del.icio.us This thread Refback 06-29-2007 10:06 PM
dynasync's bookmarks tagged with This thread Refback 06-26-2007 01:39 AM


All times are GMT. The time now is 07:55 PM.


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

1 2 3 4 5 6 7