Part of the EllisLab Network
   
3 of 3
3
Which is best for ACL?
Posted: 09 September 2007 05:41 PM   [ Ignore ]   [ # 21 ]  
Summer Student
Total Posts:  23
Joined  09-05-2007

What I don’t like about any Zend solution is that the Zend Framework appears to be writen for PHP5 only. I still have clients using PHP 4.x and MySQL 4.x and need to keep my code compliant.

 Signature 

If you ask me if it can be done, the answer is yes! It can always be done. The correct question however, is what will it cost?

Profile
 
 
Posted: 13 November 2007 03:01 PM   [ Ignore ]   [ # 22 ]  
Summer Student
Total Posts:  10
Joined  04-16-2007

Exactly.. that’s my main concern as well. Isn’t there any other ACL available?

Zend Framework isn’t really a solution for me because:

a) As mentioned above it would load it’s own libraries, which means more resources/time overhead.

b) Requires php5.1.x at least and I would like my app to be php4 compatible. On the other hand, frankly enough, my own host is using 5.0.5.

Profile
 
 
Posted: 13 November 2007 03:34 PM   [ Ignore ]   [ # 23 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  786
Joined  02-05-2007
Valdemar - 13 November 2007 03:01 PM

a) As mentioned above it would load it’s own libraries, which means more resources/time overhead.

Zend Framework components were designed to be isolated from one another. The acl component doesn’t rely on any other framework component (except the zend_exception class which can be changed to the native exception with a search/replace).

 Signature 

“I am the terror that flaps in the night”

Profile
 
 
Posted: 13 November 2007 04:15 PM   [ Ignore ]   [ # 24 ]  
Research Assistant
RankRankRank
Total Posts:  915
Joined  07-10-2006

If using Adodb for database abstraction is not a problem, you can use phpGACL. If you go that route, use the updated Adodb integration instructions at CiForge rather than the wiki instructions. It should be possible to convert phpGACL to use the CI DBAL with a bit of work.

There is a RBAC solution on sqlrecipes.com. Download instructions are mentioned in the comments on the article that discusses the solution.

Profile
 
 
Posted: 01 December 2007 04:50 PM   [ Ignore ]   [ # 25 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  10-31-2006

Of all the Access Control Libs/Models for CI, has anyone determined which one(s) are close to an RBAC implementation? as described here: http://en.wikipedia.org/wiki/Role-Based_Access_Control

And this RBAC system http://www.sqlrecipes.com/database_design/fine_grained_role_based_access_control_rbac_system-3/

Someone mentioned porting it to CodeIgniter, does anyone know of it’s success?

http://www.sqlrecipes.com/database_design/fine_grained_role_based_access_control_rbac_system-3/#post284

George

Profile
 
 
Posted: 01 December 2007 05:54 PM   [ Ignore ]   [ # 26 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  786
Joined  02-05-2007

glemigh, thanks for the link to that article. Based on the following quote, I think the Zend Framework ACL is a RBAC:

RBAC differs from access control lists (ACLs) used in traditional discretionary access control systems in that it assigns permissions to specific operations with meaning in the organization, rather than to low level data objects. For example, an access control list could be used to grant or deny write access to a particular system file, but it would not say in what ways that file could be changed.

With the Zend ACL you can assign roles to resources, but you can also add privileges into the mix. Take the file system example above. With the Zend ACL you can grant or deny privileges (write and/or read etc.) to a resource (the file system or a file) for a role.

 Signature 

“I am the terror that flaps in the night”

Profile
 
 
Posted: 01 December 2007 06:39 PM   [ Ignore ]   [ # 27 ]  
Grad Student
Avatar
Rank
Total Posts:  45
Joined  10-31-2006

Your welcome for the link, and I downloaded the Zend FrameWork to have a look.

George

Profile
 
 
   
3 of 3
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 77466 Total Logged-in Users: 19
Total Topics: 101509 Total Anonymous Users: 2
Total Replies: 544249 Total Guests: 196
Total Posts: 645758    
Members ( View Memberlist )