EllisLab text mark
Advanced Search
2 of 2
2
   
Which is best for ACL?
Posted: 09 September 2007 07:41 PM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Joined: 2007-09-05
24 posts

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?

 
Posted: 13 November 2007 05:01 PM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Joined: 2007-04-16
10 posts

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.

 
Posted: 13 November 2007 05:34 PM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-06
743 posts
Valdemar - 13 November 2007 10: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”

 
Posted: 13 November 2007 06:15 PM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Joined: 2006-07-10
485 posts

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.

 
Posted: 01 December 2007 06:50 PM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-31
29 posts

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

 
Posted: 01 December 2007 07:54 PM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-06
743 posts

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”

 
Posted: 01 December 2007 08:39 PM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-31
29 posts

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

George

 
2 of 2
2