roles

dynamic roles on a Java EE server

I want to manage user and roles in a dedicated application. For example a user of this application ("customerX boss") can create a new role "customerX employee". If an employee accesses the Java EE application server (GlassFish 3) he should get the role "customerX employee". It sounds simple, but it is not supported by Java EE, because ...

Are there user/role libraries for Java on Google App Engine?

For Java web app development on GAE, I would like to add users androles management. Is there a basic Java library which provides role management (maybe based on annotations) which I could use as a foundation? ...

What is wrong with this method? (I need some awesome Ruby Coders)

Ignoring rolerequirement with restfulauthentication method in a subdomain scope I have created a site which utilizes subdomains and searches whether or not the user is at: subdomain.domain.com or domain.com. If the user is in subdomain.domain.com, /views/layouts/application.html.erb appears, if the user is in domain.com /views/layouts/p...

Rails: Undefined method 'to_sym'

I'm getting the following error in my deployed Rails 2.3.5 application: NoMethodError (undefined method `to_sym' for nil:NilClass): My local testing install of the application, which uses Sqlite, doesn't get the error, but my deployed app running Mysql does. The only other difference between the two is I'm running Ruby 1.8.7 on my loc...

Permissions system for a CMS

Hi - does anyone know of a good tutorial for how to build a permissions and roles system for a CMS? Thanks you in advance. ...

Grants by role changed in Oracle 11g?

I tried to grant CONNECT to a user through a role: CREATE ROLE my_role IDENTIFIED BY "passwd"; GRANT CONNECT TO my_role; CREATE USER my_user IDENTIFIED BY "passwd"; GRANT my_role TO my_user; When I try this in 10g it works fine, while in 11g login is rejected: ORA-01045:user MY_USER lacks CREATE SESSION privilege; logon denied Gran...

Where are my Roles being stored?

hey everyone, I've enabled Roles in my ASP.NET web application, but I'm slightly confused as to where they are being stored. In my old project, each Role would appear in the ASP.NET Roles table, and I could see them. However, in my new project, I can't see any Roles in the database table. The strange thing is, I can still use them (and...

Built-in database role in SQL Server 2005 to permit execution of stored procedures?

In SQL Server 2005, there are built in roles: db_reader db_writer etc. Is there any role that lets a user execute an stored proc? I don't want to use db_owner, because that will permit deletion and updates, which I don't need. The only permissions I need are: SELECT EXECUTE ...

Integrating linux into Active Directory- best approach?

We have a bunch of RHEL5/CENTOS5 boxes. And now, despite our best efforts, we are having XP desktops and AD (WS2003) shoved down our throats. Currently the linux boxes are all standalone, and use the usual /etc/passwd authentications, /etc/group groups, /etc/sudoers sudoers, and so forth. So this could actually be a constructive th...

How do I serve up an Unauthorized page when a user is not in the Authorized Roles?

I am using the Authorize attribute like this: [Authorize (Roles="Admin, User")] Public ActionResult Index(int id) { // blah } When a user is not in the specified roles, I get an error page (resource not found). So I put the HandleError attribute in also. [Authorize (Roles="Admin, User"), HandleError] Public ActionResult Index(in...

Jboss isn't updating roles for user?

I am using JBoss3.2 J_Security feature for roles management. In jboss's login-config.xml file.I have specified query to retrieve roles as below. <authentication> <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required" > <module-option name="dsJndiName">java:/R...

ASP.net roles and Projects

EDIT - Rewrote my original question to give a bit more information Background info At my work I'm working on a ASP.Net web application for our customers. In our implementation we use technologies like Forms authentication with MembershipProviders and RoleProviders. All went well until I ran into some difficulties with configuring the ...

Database Schema for Hierarchy

I am looking for a generic open source database schema for a basic login, and user management with roles. Users: belong to Business Units which belong to Clients. Users have Roles - Manager, Regional Manager, site manager, worker etc. Users can have multiple roles dependant on the business unit and multiple business units.. Business ...

Using ASP.NET roles to represent different access levels

I need to design a system that will control access to certain information. The requirement from the user is to use access levels e.g. Level 1 - Support Level 2 - Manager Level 3 - Senior Manager Level 4 - Department Head etc. If a certain piece of information is marked as Level 1, then all roles should be able to view that piece of in...

Is there any API for IBM WebSphere portal roles management?

I mean API to assign roles (user,privileged user, etc) to specific users and user groups. As I got PUMA (Portal User Management) has only API to manipulate users and user groups, not roles. Thanks. ...

rolebase using forms authentication

Hi, I am working on ASP.NET using C#.I have created a website and now have to implement rolebase.This is a part of my final semister project and I am new to this.I need to work something like this-I have 3 roles say it owner,manager and teamleader.Owner can view all the employees which is in the database called through storedprocedure,ma...

Why won't the .ASPXROLES cookie pass through subdomains?

I have tried to set up .Net authentication to allow authentication across subdomains in my app. To do this, I added a "domain" attribute in the forms element, like this: <forms domain=".mydomain.com" name=".MyApp" loginUrl="Util/login.aspx" timeout="120" /> Then, for the role provider, I added a domain to that too: <roleManager doma...

ASP.NET MVC - Dynamic Authorization

I am building a simple cms in which roles are set dynamically in the admin panel. therefore the existing way of authorizing a controller method - [[Authorize(Roles=”admin”)] for example, is no longer sufficient. The role - action relationship must be stored in the database, so that end users could could easily give/take permissions to ot...

How can I access a method of the consumer class inside a method created at runtime in a method of the parameterized role using Moose with Perl?

I define a method inside a parametrized role that needs to create a new class at run time using Moose::Meta::Class->create and apply that exact parametrized role to it. I am also making a new method for that role using $new_class->meta->add_method( some_name => sub { my ($self) = @_; ... }) inside the sub {...} I want to access a...

How can I enumerate the list of privileges granted to an Oracle role?

I have a homegrown Oracle role that was created long ago: create role MyRole; It's been granted the ability to select, insert, update, and delete from some tables and views. grant select on sometable to MyRole; grant insert on sometable to MyRole; grant select on someothertable to MyRole; -- etc. How can I now enumerate the specifi...