access-rights

How can I get the name of any process having a visible window - WinAPI?

余生颓废 提交于 2021-02-08 04:31:53
问题 I'm trying to get the name of processes which have a visible window. For example, if I have Chrome opened, I would like to get the string "chrome.exe", but I only get the init value "unknown" using the code below. I read around it could be an access rights problem, can you suggest me how to change them in order to get the name of processes? DWORD idProc = 0; //pointer to the process which created the window DWORD idThread = GetWindowThreadProcessId(Wnd->get_handle(), &idProc); Wnd->set_pid

How do I programmatically create new groups with specific set of rights on XWiki?

那年仲夏 提交于 2020-03-25 05:51:31
问题 I'm writing my own XWiki Authenticator (that extends XWikiAuthServiceImpl ) and therein, I want to create few groups, each with different sets of rights. How do I do it programmatically? Example, XWiki.MyStandardGroup - view , edit , comment XWiki.MyClassicGroup - view , edit , comment , script XWiki.MyAdminGroup - view , edit , commit , script , delete , admin Also, I create the users programmatically. How do I give different access rights to different sets of users? On the conceptual level,

How to solve “Microsoft Visual Studio (VS)” error “Unable to connect to the configured development Web server”

拥有回忆 提交于 2019-12-28 08:07:42
问题 PROBLEM If you start using "Microsoft Internet Information Services Express (IIS)" from "Microsoft Visual Studio (VS)" you may get when you run Build this error message Unable to connect to the configured development Web server . Failed to register URL "http://{ip_addr}:{port}/" for site "{project_name}" application "/". Error description: Access is denied. (0x80070005) What kind of rights is it? 回答1: SOLUTION This means that you are missing the right for using it. Create it with Netsh

How to deal with deep level granularization with XACML in enterprise application

你说的曾经没有我的故事 提交于 2019-12-23 19:57:13
问题 I am using IS WSO2 for authorization with XACML. I am am able to achieve authorization for static resource. But I am not sure with the design when it comes to granularization. Example : if I have method like getCarDetails(Object User) where I should get only those cars which are assigned to this particular user, then how to deal this with XACMl? Wso2 provides support for PIP where we can use custom classes which can fetch data from database. But I am not sure if we should either make copy of

Access denied error when using VirtualQueryEx

删除回忆录丶 提交于 2019-12-21 21:15:10
问题 So, I wrote a program which is able to successfully read memory from most of processes using VirtualQueryEx . However, I've come across a process for which this function fails. It's not a system process, just a game process. Without Debug privileges I couldn't even open the process's handle. With them I am able to get the process's handle but still get access denied for VirtualQueryEx . I'm not sure but maybe the process is private? If that's the case, what should I do to successfully use

Different REST resource content based on user viewing privileges

左心房为你撑大大i 提交于 2019-12-20 08:41:29
问题 I want to provide different answers to the same question for different users, based on the access rights. I read this question: Excluding private data in RESTful response But I don't agree with the accepted answer, which states that you should provide both /people.xml and /unauthenticated/people.xml , since my understanding of REST is that a particular resource should live in a particular location, not several depending on how much of its information you're interested in. The system I'm

Field level access rights and Security in openerp 7

浪子不回头ぞ 提交于 2019-12-20 04:22:39
问题 Suppose I have 3 users which are as follows: user_employee having access rights Human Resource /Employee group user_officer having access rights Human Resource /officer group user_manager having access rights Human Resource /manager group For object hr_employee(hr.employee) If I am logged in as user_manager or user_officer I can create/edit my own employee record. If I am logged in as user_employee I cannot edit my own employee record. Then I gave write permission to Human Resource/Employee

Why is registry written in different location than expected?

陌路散爱 提交于 2019-12-18 04:44:12
问题 I tried to write a registry subkey and its corresponding value to registry like this: const string subKey = @"SOFTWARE\Apple\Banana\"; const string regKey = "pip"; var rk = Registry.LocalMachine.OpenSubKey(subKey); if (rk == null) rk = Registry.LocalMachine.CreateSubKey(subKey); var rv = rk.GetValue(regKey); if (rv == null) rk.SetValue(regKey, "XXX"); return rv.ToString(); Now the problem is that I when I look in the location manually (via regedit) I cannot see the folder SOFTWARE\Apple

CouchDB-wide read-only access rights

余生长醉 提交于 2019-12-17 23:04:30
问题 I need to create a CouchDB user which can only read documents from any database but can't write any of them. As far as I'm concerned, it is not what is supported by default (user types are described here). As the wiki says, access rights are given per database, so it seems what I am trying to do is not the best way to use CouchDB. Anyway, it would be great to do that. Could you please give me some tips on how to implement that? 回答1: You will need to put a design doc in each database you want

CouchDB / PouchDB partial syncs with limited rights

梦想的初衷 提交于 2019-12-11 13:46:37
问题 I just stumbled across CouchDB and PouchDB sync features. Typically web applications have an application server implementing authentication, rights and business logic allowing to limit users access to specific resources/records. This brought up several questions in my mind: Is it possible to limit access to records within couch db. Eg. a super-admin sees everything, a department-manager everything of his department and a simple user only his own records or e.g. tasks assigned to him? Is