RBAM - Role Based Access Control Manager

We don’t have it set up automatically in the database, although I suppose you could do that with triggers in MySQL or Postgres, particularly if you are using a default role. In our apps we have modeled the auth tables and do this:


 	$authAssignment = new AuthAssignment();

	$authAssignment->userid = $user->userId;

	$authAssignment->itemname = $roleName;

	$authAssignment->save();



how did RBAM usse the CPhpAuthManager?

Demo site doesn’t allow admin to go to the RBAM.

gives: Error 403

You are not authorized to perform this action.

Got a solution. It involves messing with the original code but it seems like this extension is not too maintained so… here goes:

This is for v1.6.1

Edit class ApArrayDataProvider, line 41.

Change:




$this->alphaFilterData($currentPage===0?0:$search, $alphapagination->attribute, $alphapagination->forceCaseInsensitive);



To:




$this->alphaFilterData($currentPage===0?0:$search, $alphapagination->attribute, true);



there’s a serious bug with setting ‘initialise’ property in linux.

when you set ‘initialise’=>true , it shows a “404 requested action not found”.

I’ve faced this before, it’s because of CamelCase issue of Controller classes in linux, so I renamed files and class names from

"RbamInitialiseController", "AuthAssignmentsController", "AuthItemsController"

to:

"RbaminitialiseController", "AuthassignmentsController", "AuthitemsController"

and all related folder names in the ‘views’ directory.

Hi,

I am having problem in using the RBAM module for the generate part. When I try to open the Generate Auth Data tab I am getting this error. Although My user id is created once the user is logged in.Some how the user id that is set is removed. Please help me


Property "CWebUser.__id" is not defined.

Thanks in advance.