Skip to content

WIU/roles-management

 
 

Repository files navigation

DSS Roles Management

Roles Management (RM) is a people, roles, and application management web application developed by the UC Davis Division of Social Science.

Main screen with role selected

The purpose of DSS RM is to allow anyone with subordinate employees and virtual appliances (file servers, mailing lists, web applications) to manage and assign their people and groups whatever permissions they wish without requiring the help of IT.

Requirements

RM was written for Ruby 1.9 and Rails 3.2 and is deployed using Unicorn and PostgreSQL. It has been tested on Apache and Nginix and should run fine on Linux, Mac OS X, and Windows. It has not been tested with Microsoft's IronRuby, and as of this writing, IronRuby does not support Ruby 1.9, which is a requirement for this application.

Installation / Deployment

Step 1. (Set configuration values)

RM is designed to be re-deployable in any organization, though there are a few matters of configuration that need to be attended to:

config/database.example.yml Move this file to config/database.yml and set the appropriate values.

config/ldap.example.yml Move this file to config/ldap.yml and set the appropriate values.

config/active_directory.example.yml Move this file to config/active_directory.yml and set the appropriate values.

config/secret_token.example.yml Move this file to config/secret_token.yml and set the value. It is recommended you use 'rake secret' to obtain a high quality secret.

config/environment.rb Recode the cas.ucdavis.edu URL to your CAS server, or remove CAS entirely. If you decide to remove CAS, also remove the before_filter in app/controllers/application_controller.rb.

config/deploy.rb You'll likely want to set this to your own Capistrano setup or delete it if you do not use Capistrano.

config/schedule.rb This file controls when cron jobs run to sync databases. It is currently set up to do so at night, but you should change the time in this file if you'd like anything else.

You can also search the code for "INSTALLME" (case-sensitive) or "CHANGEME" in case this README neglects any configuration details.

Step 2. (Standard Rails procedures)

Run the follow commands in order and ensure they complete successfully:

  • bundle install
  • bundle exec rake db:schema:load
  • bundle exec rake db:seed

Step 3. (Add a user)

The follow steps obtain a user from a configured LDAP server and grant admin access:

  • bundle exec rake ldap:import[the_username]
  • bundle exec rake user:grant_admin[the_username]

Step 4. (Done!)

Run the application:

  • bundle exec rails server (visit localhost:3000 to view)

Screenshots

Group rule editor Person dialog relations tab

Owners and Operators

RM has two classes of users with administrative behavior: owners and operators. Their application applies to both groups and applications:

  • Application/Group Owners: Can create, edit, and delete all attributes of an application or group.
  • Application Operators: Can make role assignments with that group or application but cannot edit any attributes.
  • Group Operators: Similar to Application Operators but with the added ability to add or remove explicit membersbut cannot edit the group rules.

Authors

Christopher Thielen (cmthielen@ucdavis.edu)

About

Roles management software designed by UC Davis DSS IT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 85.5%
  • CoffeeScript 9.8%
  • CSS 2.4%
  • JavaScript 2.3%