roles

Symfony 2 - Checking Action Permission with Roles and Groups

喜欢而已 提交于 2019-12-24 00:25:12
问题 I'm new into Symfony 2 and I read some docs about ACL and the ROLE System. I understood that I can use different Permissions on a Object with ACL. But I need some different ( ? ) type of permission check, like in the static apache turbine roles / permission sets. I want to use FOSUserBundle and using Groups. The Groups should have permissions like DOWNLOAD_PDF DOWNLOAD_PPT INVITE_USERS and so on.. Stuff that does not have something to do with Objects but I have to check in Controller ( static

Grails: SpringSecurity roleHierarchy not working as expected

寵の児 提交于 2019-12-23 18:09:47
问题 I am using the springsecurity plugin in Grails 2.0.1. My role hierarchy and other s2 properties are shown below. grails.plugins.springsecurity.userLookup.userDomainClassName = 'myApp.security.User' grails.plugins.springsecurity.userLookup.authorityJoinClassName = 'myApp.security.UserRole' grails.plugins.springsecurity.authority.className = 'myApp.security.Role' grails.plugins.springsecurity.successHandler.defaultTargetUrl="/index" grails.plugins.springsecurity.securityConfigType = "Annotation

How to determine if the “Active Directory Domain Services” role has been installed on a server

守給你的承諾、 提交于 2019-12-23 10:08:18
问题 I am trying to figure out if the Active Directory Domain Services are installed a windows server. I know they show up in the Server Manager, but can I programmatically get if the role is installed on a server using C# code 回答1: If you know the name of the server you want to test and can run the program with domain admin privileges remotely, you can use WMI: internal static bool IsDomainController(string ServerName) { StringBuilder Results = new StringBuilder(); try { ManagementObjectSearcher

Adding Role to User Created in Web.config

时光怂恿深爱的人放手 提交于 2019-12-23 07:37:02
问题 I have a few users setup in the web.config of an asp.net site to handle authentication. Without getting into details I'm not using the full membership/role provider and would rather not have to implement it at the moment do to time constraints. However I do need the ability to assign a role to a user so that securityTrimming works on the sitemaps associated menus. For now I just have a few users setup in the web.config (i use SHA1 in real config) <authentication mode="Forms"> <forms name=

Users and roles in context

荒凉一梦 提交于 2019-12-23 05:13:09
问题 I'm trying to get a sense of how to implement the user/role relationships for an application I'm writing. The persistence layer is Google App Engine's datastore, which places some interesting (but generally beneficial) constraints on what can be done. Any thoughts are appreciated. It might be helpful to keep things very concrete. I would like there to be organizations, users, test content and test administrations (records of tests that have been taken). A user can have the role of participant

ASP.NET MVC and role caching?

我只是一个虾纸丫 提交于 2019-12-23 04:56:50
问题 I am developing an ASP.NET MVC app with custom membership and role providers. My custom role provider uses LinqToEntities to query the user/role mapping table and retrieve if a user is in a role or not. When running on debug, local machine, everything is fine. When deploying on IIS7 however, I have this strange behavior: When I change roles to a user, and then login with that user, it retains the old roles, instead of the new ones. It's like they are cached somewhere, but I already set the

Set up users roles and permissions in parse.com

喜欢而已 提交于 2019-12-23 03:04:30
问题 looking to set up user permissions in parse.com. i have a know list of users in my user "table". i want to lock down the app for supervisors(role) only view most tables and modify a few. have managers(role) to view almost all tables and modify most. Administrators to view and modify all. after searching for days i only see code to modify roles and permissions. what is the purpose using code if the roles and permissions are only setup once? or would someone please explain how to set up roles

How can I check if a non-logged in user has a role?

别来无恙 提交于 2019-12-22 18:22:13
问题 I have a situation where I need to check the roles for a user who isn't logged in. I was originally simply querying the users table's roles field to see if the role in question was contained, but this does not take into account role heirarchy. For example, if a user has been granted ROLE_ADMIN they would also have ROLE_USER . However, you won't see ROLE_USER in the database, since in this case it's included in ROLE_ADMIN . I'm a bit unfamiliar with the inner workings of Symfony2's security

Converting Single DB ASP.NET Site into MultiTenant - Membership and Roles Dilemma

杀马特。学长 韩版系。学妹 提交于 2019-12-22 11:13:13
问题 I'm in the process up changing a single SQL DB website (ASP.NET/VB.NET) into a multitenant app, where each client has their own database. In the old site, all the ASP roles, logins and providers pointed to the single database. Now we have multiple databases, I'm wondering what would the best architecture/techniques to use. There is one database that configures the tenants, such as the company name, various settings (that would normally be in a web.config) and the connection string to their

Symfony 2 - Adding user roles under the ROLE_USER

与世无争的帅哥 提交于 2019-12-22 10:29:57
问题 I'm trying to create a new role in Symfony 2 below the default USER_ROLE (that role would have limited write access to some features). I am using FOSUserBundle. I've written the following security settings so far but my ROLE_DEMO users still get the ROLE_USER. role_hierarchy: ROLE_DEMO: [] ROLE_USER: [ROLE_DEMO] ROLE_ADMIN: [ROLE_USER, ROLE_SONATA_ADMIN] ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] Is it possible to create a role under the ROLE_USER in Symfony 2. If yes,