acl

How to restrict VOB read access in ClearCase (Windows Server)?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 03:16:42
问题 I have been asked to look at how to restrict read access on certain VOBs in ClearCase, for compliance reasons (so this needs to be auditable, etc, etc...). I have found a solution so far, that I will post here, but I still have questions, so any help would be appreciated. Especially as the devil is in the details, I think. For ease of argument, let say we have 3 VOBs, and 3 groups: gA and gB are two special group, all other CC users are in gC, which is the default CC group VOB vA, is read

How to check if a Windows file is readable/writable?

孤街浪徒 提交于 2020-01-03 20:05:10
问题 First off: I know that this isn't reliable for actually checking if I can write. I'm writing a file transfer client, and want feature parity between the "remote" and "local" file browser panes. I fully understand I will have to handle any permission related exceptions for any operation performed regardless; it's not a programming check it's just to display to the user. I've seen several examples for these posted, but everything I've tried either wasn't understandable or didn't work. I've

How to check if a Windows file is readable/writable?

此生再无相见时 提交于 2020-01-03 20:04:11
问题 First off: I know that this isn't reliable for actually checking if I can write. I'm writing a file transfer client, and want feature parity between the "remote" and "local" file browser panes. I fully understand I will have to handle any permission related exceptions for any operation performed regardless; it's not a programming check it's just to display to the user. I've seen several examples for these posted, but everything I've tried either wasn't understandable or didn't work. I've

Windows permissions on a directory: Mercurial - hg merge - “abort: access is denied”

元气小坏坏 提交于 2020-01-03 17:28:40
问题 Background: this is running on a Windows 2008 Server. https://www.mercurial-scm.org/wiki/Workflows#Feature_separation_through_named_branches I'm a Mercurial newbie, and am trying to follow the advice above where it says to "Merge default into your feature as often as possible" -- and I've done this a couple of times previously today, already, with other files. However, this newest change just won't merge. When I do the 'hg merge default' I get the error "abort: Access is denied". After

How to check if user is logged with Zend Framework?

被刻印的时光 ゝ 提交于 2020-01-03 11:47:29
问题 I'm learning Zend Framework, but I have some doubts about the usage and the concepts. I want to check if the user is logged to allow access to all the pages. If it is, show the page, if not, display the login the page. My main doubts are what I need to use to do this (Zend_Auth, Zend_Acl, etc) and where to check if the user is logged (in each controller or the framework automatically checks this for each requisition). 回答1: The tool you want to use is Zend_Auth which is quite easy to use when

Symfony2 get user id in entity repository

我的未来我决定 提交于 2020-01-03 09:46:25
问题 I have coded a page which displays all administrators of the system. What I want to do is customize my query so that it would exclude the currently authenticated user from the list. Now I know I can get the user_id from the controller and pass it to the entity repository, but I was wondering if there is a way to access that directly through the Entity Repository? For example: use Doctrine\ORM\EntityRepository; use Doctrine\ORM\NoResultException; use Symfony\Component\Security\Core\User

Zend Acl - is it possible for an assertion to allow access to a privilege when the acl rules return false?

∥☆過路亽.° 提交于 2020-01-03 02:59:25
问题 By default, returning false in an assertion denies access even when the acl rules allow it. What I want to do is the other way round - i.e. return true in an assertion to allow access when the acl rules deny it. For example: class TestAssert implements Zend_Acl_Assert_Interface { public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role = null, Zend_Acl_Resource_Interface $resource = null, $privilege = null) { return true; } } $acl = new Zend_Acl; $acl->addResource('page'); $acl-

Zend Acl - is it possible for an assertion to allow access to a privilege when the acl rules return false?

梦想与她 提交于 2020-01-03 02:59:07
问题 By default, returning false in an assertion denies access even when the acl rules allow it. What I want to do is the other way round - i.e. return true in an assertion to allow access when the acl rules deny it. For example: class TestAssert implements Zend_Acl_Assert_Interface { public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role = null, Zend_Acl_Resource_Interface $resource = null, $privilege = null) { return true; } } $acl = new Zend_Acl; $acl->addResource('page'); $acl-

C# Get “Apply To” information from “Advanced Security Settings” for a directory

喜夏-厌秋 提交于 2020-01-02 20:58:33
问题 I'm writing an application that is used to search through folders for their permissions and return details such as Rights (eg Full Control, Read), AccessControlType (eg Allow, Deny) and Apply To information (eg This folder, subfolders and files). Most of this information I am able to obtain using DirectoryInfo's GetAccessControl(DirectorySecurity) method. However, I can't accurately obtain the directory's Apply To information. After much research I came across this StackOverflow Q&A How to

Symfony 2 ACL and Role Hierarchy

折月煮酒 提交于 2020-01-02 06:35:28
问题 I'm a little stuck and unable to find the answer to this. In my app test I've created two Entities User and Comment both are mapped correctly. I have created a small controller which depending on the user will add the comment and the data to the ACL tables, if I create my comment as a standard user with the associated for of 'ROLE_USER', and Try to access it as user with the role 'ROLE_ADMIN' I get access denied, it seems to completely ignore the security.yml hierarchy. I know this works by