Users and Authorization in 2.0

I read the guide about users and authorization. There didn’t seem to be any indication on where the web application should look for the relevant users/rights tables in the DB. Is there a tutorial available for 2.0 in this regard?

Have a look at the advanced template which uses a database-table to store users.

RBAC simplified:

http://www.yiiframework.com/wiki/771/rbac-super-simple-with-admin-and-user/