impersonation

Execute SSIS package from stored procedure as proxy user without xp_cmdshell

 ̄綄美尐妖づ 提交于 2019-12-07 13:33:49
问题 I am trying to run an SSIS package through a stored procedure, but I am getting an Access is denied error when I try to import a CSV. I put the package inside a job and ran it and it worked as long as I used a proxy account. I am trying to replicate that proxy account to the stored procedure call without using xp_cmdshell . I also ran this package inside Visual Studio and it ran smoothly. My SSIS package is simple: It imports a CSV file from the network, converts the data to varchar , and

Impersonation and delegation (with SQL Server) in ASP.NET

♀尐吖头ヾ 提交于 2019-12-07 11:32:21
问题 I've written a simple ASP.NET application that works as a frontend for a simple MSSQL database. The application is accessible over the Internet. There are two physical servers involved: a WS2008R2 Active Directory domain controller which is also running MSQL Server 2008 R2, and another server, the webserver (WS2008R2/IIS7.5) where my application resides. The Application Pool for my application "FooPool" has its own AD User identity it runs under "FooUser". FooUser does not have any permission

WCF Parallel Impersonation

本秂侑毒 提交于 2019-12-07 09:16:25
问题 I have a WCF service with "ImpersonationOption.Required". The impersonation does not seem to flow through when using parallelism. For example: Parallel.ForEach(items => results.Add(SystemUtil.WindowsUser.Name) Will return a number with the impersonated user, and a number with the app pool user. Can impersonation be made to work with parallelism? Best, Marc Update: This is actual code on the IIS Service side. [OperationBehavior(Impersonation = ImpersonationOption.Required)] public string[]

Help understanding impersonation

匆匆过客 提交于 2019-12-07 05:07:50
问题 Could somebody please help me understand the concept of 'impersonation'? The way I understand it is that when impersonation occurs, code executes on behalf of some identity. So, for a web page, as long as impersonation is disabled, the web page will always run under its configured account. If it’s enabled, I can ‘override’ its default account and set the account under which I want the web application to run. So if I'm using IIS7 and I have the following: - An application pool with identity

An error occurred loading a configuration file: Failed to start monitoring changes to '\\share'

非 Y 不嫁゛ 提交于 2019-12-07 02:10:51
问题 I had this same problem last week, which resolved itself after I enabled impersonation. Now, I've moved this box to a different location and am now receiving it again. However, this time it is much less descriptive. The only error I'm receiving is: An error occurred loading a configuration file: Failed to start monitoring changes to '\\share' I've changed both the web server and file server's local administrator password to what it should be and also the power user that connects between. I've

How to call net.pipe (named pipe) WCF services while impersonating in a Windows Service

冷暖自知 提交于 2019-12-06 14:12:42
I am having an issue calling a WCF service over net.pipe with Windows impersonation from a C# Windows service. Background The service reads from a queue and creates children app domains, each running a particular module per the item pulled from the queue. We call the Windows service a “JobQueueAgent” and each module a “Job”. I will use these terms going forward. A job can be configured to run as a specified user. We use impersonation inside the job’s app domain to accomplish this. The following is the flow of logic and credentials in the service: JobQueueAgent (Windows Service – Primary User)

IIS Express - Impersonate a windows account

亡梦爱人 提交于 2019-12-06 11:32:13
问题 I'm using IIS Express to host my website, and I would like to do something similar to Directory Security in IIS 6. In IIS 6, I was able to go to the Directory Security tab and allow the anonymous user to be a local windows account. Is there something equivalent in IIS Express for that? What changes do I need to make in applicationhost.config? Thanks 回答1: IIS Express process runs under the logged on user. With default settings, anonymous requests will execute under the identity of the process.

How do you do Impersonation in UWP?

牧云@^-^@ 提交于 2019-12-06 09:18:35
I am working on UWP application. A scenario came where i want to change the current context user(current login user).For that i am trying to implement Impersonation in UWP. In general windows or web application I am able to change the current context user by using sample code available on following link: http://www.codeproject.com/Articles/10090/A-small-C-Class-for-impersonating-a-User But i am unable to implement this in UWP. I want to implement impersonation in UWP. Impersonation is not available for UWP applications. They are all tied to the current session user with only a restricted set

how to implement Kerberos protocol transition in Java? (S4U2Self)

为君一笑 提交于 2019-12-06 06:43:55
问题 Edit Now I know what I need. I need to implement Kerberos protocol transition (S4U2Self) in Java. There are examples in .Net, but none for Java. There is this third party library Quest Single Sign on for Java that claims to do that. I've downloaded the JAR and it looks good, but I would rather use a custom implementation instead of someone else's code (which have to be paid). Can anyone give any head start on what needs to be done? Any existing open Java API to handle this? Thanks Question

asp.net WindowsImpersonationContext function

戏子无情 提交于 2019-12-06 05:11:58
Can anyone please explain the function of the lines below: WindowsIdentity wId = (WindowsIdentity)HttpContext.Current.User.Identity; WindowsImpersonationContext wIdCon = wId.Impersonate(); That is used on a POST method with IIS basic authentication and works fine. If however the IIS authentication is set to windows the above no longer works. There is simply way too much code to dump for an example. The call to Impersonate() makes IIS pretend to be the requesting user from that point on. This is useful for a number of reasons, chiefly that the subsequent code will only work if the requesting