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.
  #11 (permalink)  
Old 02-26-2007, 11:02 PM
Thomas Koch
 
Posts: n/a
Default RBAC for Typo3, eZ Components and eGroupWare

Hi Ben,

I'm a developer of eGroupWare and currently searching for a new permission framework. I found, that typo3 is also searching:
* http://wiki.typo3.org/index.php/Enhanced_Rights_Management

eZ Components is working on authorization right now, but will also work on permissions soon. It would be great, if we could manage to establish one standard PHP permission framework. Maybe based on your work?
May I have a look at your work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #12 (permalink)  
Old 03-05-2007, 01:36 PM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 77
ben has disabled reputation
Default RE: RBAC for Typo3, eZ Components and eGroupWare

Hi Thomas,

You can download the files from at the bottom of the first post

If you want to discuss the implementation in more detail feel free to send me a PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-12-2007, 12:38 AM
Unregistered
 
Posts: n/a
Default Re: Fine Grained Role Based Access Control (RBAC) system

Ben,
I'd love to have a look at this system you've built.
Unfortunately it seems the zip file is corrupt. Could you please have a look at it for me?

Cheers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Edit/Delete Message Reply With Quote
  #14 (permalink)  
Old 05-12-2007, 01:55 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 Unregistered View Post
Ben,
I'd love to have a look at this system you've built.
Unfortunately it seems the zip file is corrupt. Could you please have a look at it for me?

Cheers.
There was a similar problem a few weeks ago. It should now be fixed. Please let me know if you still have a problem opening up the file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-13-2007, 07:40 AM
eDave eDave is offline
Junior Member
 
Join Date: May 2007
Location: Sydney, Australia
Posts: 1
eDave is on a distinguished road
Default Re: Fine Grained Role Based Access Control (RBAC) system

Just a quick note regarding the schema.
On mysql 5.0.37 the last constraint could not be created. You get this error:
Code:
mysql> ALTER TABLE rbac_users_has_roles ADD CONSTRAINT fk_users_has_roles_roles FOREIGN KEY (roles_id) REFERENCES rbac_roles (id); 
ERROR 1005 (HY000): Can't create table './irie/#sql-4d0_86.frm' (errno: 150)
Which through a strange series of translations thanks to bad error messages equals:

Code:
mysql> SHOW INNODB STATUS;
------------------------
LATEST FOREIGN KEY ERROR
------------------------
070513 11:51:55 Error in foreign key constraint of table irie/#sql-4d0_86:
 FOREIGN KEY (roles_id) REFERENCES rbac_roles (id):
Cannot find an index in the referenced table where the
referenced columns appear as the first columns, or column types
in the table and the referenced table do not match for constraint.
Note that the internal storage type of ENUM and SET changed in
tables created with >= InnoDB-4.1.12, and such columns in old tables
cannot be referenced by such columns in new tables.
See http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html
for correct foreign key definition.
In short, rbac_users_has_roles(roles_id) has a different type to rbac_roles (id).
To fix this I removed the unsigned from rbac_users_has_roles(roles_id)
Code:
mysql> alter table rbac_users_has_roles change roles_id roles_id int(11) NOT NULL;
I guess this will only impact if you get beyond 2147483647 rows in rbac_users_has_roles? (a scary thought).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 05-16-2007, 06:18 PM
caphrim007 caphrim007 is offline
Junior Member
 
Join Date: May 2007
Posts: 1
caphrim007 is on a distinguished road
Default Re: Fine Grained Role Based Access Control (RBAC) system

Thanks for that Dave. I receive the same error on MySQL 4.1.20 but your change fixes it there as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 05-30-2007, 12:20 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

I have just uploaded the RBAC admin files to the server. You should be able to download the files from the 1st post on this thread. If there are any issues please send me a PM.

Cheers,

Ben
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 06-04-2007, 08:14 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

Thanks to Logan, the guys over at Purdue University have integrated the RBAC into their MyEPICS framework. You can find out the details by clicking on the following links:
SourceForge.net: MyEPICS 2.0
https://ims.ecn.purdue.edu/forum/viewtopic.php?t=20
https://ims.ecn.purdue.edu/wiki/RBAC

Let us know if you have successfully integrated RBAC into your framework as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 06-18-2007, 05:05 PM
mjlecomte mjlecomte is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
mjlecomte is on a distinguished road
Default Re: thanks & best regards...

Quote:
Originally Posted by Cem Gencer View Post
thank you very much for sharing this package with us; i will check the whole class out and try to port it to CodeIgniter with maybe removing Adodb...
Just curious if Cem or anyone else has ported this to CodeIgniter. I went looking at CodeIgniter to no avail.

Is the admin panel now in the zip?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 06-19-2007, 10:48 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 77
ben has disabled reputation
Default Re: thanks & best regards...

Quote:
Originally Posted by mjlecomte View Post
Is the admin panel now in the zip?
Yes. There are two zip files. One just contains the RBAC classes the other contains the RBAC classes + all the admin panel files. (You can tell by looking at the sizes.)
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 02:16 AM.


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