[EXTENSION] srbac : Web interface for the administration of rbac
#21
Posted 16 July 2009 - 02:38 AM
#22
Posted 16 July 2009 - 10:44 PM
Yii is only interpritate logik and use data strored in its 3 tables.
If add column srbac_id in each table, it give
#23
Posted 17 July 2009 - 12:12 AM
#24
Posted 23 July 2009 - 01:08 AM
Bug Fixes:
- Fixed udefined variable errors
- Fixed showing all items in the assigned and in the not assigned panels when accessing the
assign page for the first time - Fixed errors when pressing '<<' or '>>' with a wrong selection of items
- Wrong tab display after an assignment
Enhancements:
- You can select if demo data will be created in install
- All assignments calls are made in ajax
- You can set the name of the Authorizer authItem
- You can update the names of the auth Items
Demo
Srbac Extension
#25
Posted 27 July 2009 - 07:15 AM
Enhancements:
- You can delete auth items
- New ajax driven web interface for the administration of auth items
Demo
Srbac Extension
#26
Posted 27 July 2009 - 07:49 AM

But what I'm missing is a view, that shows which user can perform which operations. Currently one can only click user by user to see what roles are assigned to them. Then one can switch the tab and have a look at the roles - one by one - to see what tasks are assigned. This repeats for the operations.
Alltogether, this is convenient for assigning authItems to each other, but not to get an impression of who is allowed to perfom which action. Is this something you plan to add in a future release?
#27
Posted 27 July 2009 - 11:48 AM
#30
Posted 29 July 2009 - 05:41 PM

Looks good with all browser I have installed( FF3.5, IE8, Safari3.1.1, Chrome 2.0), except Opera 9.6.4. See screenshot.

Number of downloads: 115
#31
Posted 30 July 2009 - 12:09 AM
Ben, on 29 July 2009 - 05:41 PM, said:

Looks good with all browser I have installed( FF3.5, IE8, Safari3.1.1, Chrome 2.0), except Opera 9.6.4. See screenshot.

Please could you try the fixed I attached with Opera?
Attached File(s)
-
srbac_beta3OperaFix.zip (29.51K)
Number of downloads: 14
#32
Posted 30 July 2009 - 05:57 AM

Some other things I came across while installing the module (hooray, now I know how to work with modules!):
1) Need for CDbAuthManager. Shouldn't this module work with all the authManagers? It displays, creates and administrates authItems, I think this should be possible with every implementation of IAuthManager.
2) Related to the first point; Need for user class being an CActiveRecord. I fell over this in the view that displays the assignments. It calls findAll() to get the list of users. Although I have to admit that I have no clue how this could be solved properly, I think it might raise the reusability of the module if you could provide a more generic way to get the users list. I didn't find something like an IUserManager that would be able to provide the needed methods, but maybe I'm missing something.
3) The tasks shown in the attachement (except the manageUsers task) are actually operations assigned to the role "admin". I know you currently only support role to user, task to role and operation to task, but I think this can be filtered.
All good things come in threes, so I guess this is enough for now and keeps you busy.

Keep up good work, I really like this module and think it is a mandatory that can be usefull for nearly every web application!
Fixed layout in Opera:

Number of downloads: 77
#33
Posted 13 August 2009 - 07:08 AM
2009/08/13 13:47:55 [error] [system.db.CDbCommand] Error in querying SQL: SELECT * FROM `assignments` WHERE itemname = Authorizer LIMIT 1 2009/08/13 13:47:55 [error] [exception.CDbException] exception 'CDbException' with message 'CDbCommand failed to execute the SQL statement: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Authorizer' in 'where clause'' in C:\xxxxxxxx\yii108\framework\db\CDbCommand.php:322
After changing line 173 of helper.php into
$criteria->condition = "itemname = '".Yii::app()->getModule('srbac')->superUser."'";
I get the normal "Unauthorized"-message.
Greetings
Carsten
#34
Posted 14 August 2009 - 11:15 AM
I get the message to overwrite srbac, which is fine.
If I click on "Overwrite", I got this errorMessage:
Install Srbac
Error while installing srbac.
Please check your database and try again
whats going wrong there?
If it helps, after this steps I can only see items table in my database.
#35
Posted 15 August 2009 - 06:45 AM
I can login so it's installed

As far as I can see a Exception is thrown due to missing "CDbAuthManager.superUser is not defined."
Running on Win Vista and IIS7, Yii v1.08
#36
Posted 15 August 2009 - 06:48 AM
Anyone have a clue about my Problem above?
#37
Posted 15 August 2009 - 07:08 AM
sebi, on 15 August 2009 - 06:48 AM, said:
Anyone have a clue about my Problem above?
Thanks sebi!
After correcting that I get the same error as you

It's a SQL error, if you add var_dump($ex) in the catch { at line 285 of srbac/components/Helper.php you can see this;
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or update a parent row: a foreign key constraint fails"
I'll try to find a solution and let you know.
#38
Posted 15 August 2009 - 07:21 AM
rabol, on 15 August 2009 - 07:08 AM, said:
After correcting that I get the same error as you

It's a SQL error, if you add var_dump($ex) in the catch { at line 285 of srbac/components/Helper.php you can see this;
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or update a parent row: a foreign key constraint fails"
I'll try to find a solution and let you know.
The problem is that the installation procedure don't delete existing tables in the correct order:
the correct order is:
$db->createCommand("drop table if exists ".$assignmentTable.";")->execute();
$db->createCommand("drop table if exists ".$itemChildTable.";")->execute();
$db->createCommand("drop table if exists ".$itemTable.";")->execute();
in line 226 of the /modules/srbac/components/Helper.php
#39
Posted 15 August 2009 - 07:38 AM



#40
Posted 15 August 2009 - 09:36 AM
I think there are also other Problem(s)?