Questions tagged [impersonation]

Impersonation is a process whereby an application assumes another identity or security context during execution.

1522 questions
3
votes
1 answer

How to pass on user's identity from web application hosted in one IIS to the web service hosted in another IIS?

I have a web application (developed in ASP.net 4.0) hosted in IIS 6.0 on Windows Server 2003 R2 machine. Integrated Windows Authentication is turned on for this web application. I have hosted a web service (developed using WCF) in IIS 7.5 on Windows…
Learner
  • 4,661
  • 9
  • 56
  • 102
3
votes
2 answers

how to save file in another machine in the same network in c#?

I have to save the uploaded document into another local machine. But I was not clear how to use impersonation in my code. I have used the following code. protected void btnSave_Click(object sender, EventArgs e) { int result = 0,result1=0; …
prabu R
  • 2,099
  • 12
  • 32
  • 41
3
votes
2 answers

Difference in ASP.Net impersonation methods

In this MSDN article on "How to implement impersonation in an ASP.NET application" they list 4 different ways to change the account that's used to execute the web request. Unfortunately, it doesn't describe the differences between these…
PPC-Coder
  • 3,522
  • 2
  • 21
  • 30
3
votes
3 answers

'Item Does Not Exist' error reading SharePoint 2010 List

I have a list in SharePoint 2010. If I add items to the list programmatically (via a custom webpart), I can later read those items and show them in other web parts. However, if I attempt to read a list item added through the web interface, I get…
WOPR
  • 319
  • 2
  • 6
  • 14
3
votes
0 answers

ASP.Net Impersonation in integrated mode on IIS7.5

We have recently discovered that our IIS server is not correctly impersonating the authorised users, and this only works correctly in Classic mode, not integrated mode. To give this context, I'll detail our setup.. We have an Informix database,…
Stuart.Sklinar
  • 3,683
  • 4
  • 35
  • 89
3
votes
1 answer

How can I capture WCF Service endpoint

I'm implementing a WCF service hosted by IIS, that impersonates the caller. When I have the service endpoint configuration in the Web.config-file everything works as intended. I want to set the service endpoint programmatically but I'm missing…
Christian
  • 131
  • 1
  • 11
3
votes
1 answer

Possible to impersonate in app.config for console application?

I know you can impersonate in web.config, Is the exact same thing possible in app.config for a console application?
JL.
  • 78,954
  • 126
  • 311
  • 459
3
votes
1 answer

Impersonating IIS DefaultAppPool in standalone application

Description of my problem sounds somewhat complicated, what makes me think that my approach is flawed, so I will also appreciate any better idea. Short description: Given connection string to MSSQL 2008 DB and website name deployed on IIS6, I want…
Maciek
  • 1,696
  • 12
  • 19
3
votes
2 answers

Impersonate in Tridion 2011 without using core service

I'm trying to impersonate a user in a C# TBB. is it possible to know who initiated the publish action of a component in the TBB which is a part of the component template rendering with the component?
Rohan Gadiya
  • 338
  • 1
  • 6
3
votes
2 answers

Why can't I open a file using impersonation on a remote machine?

I have a WCF service written in C# being hosted on a remote machine, running as the local administrator account. From my machine logged in as an active directory user, I am sending a command that simply tells it to open a file on the network. I have…
MGSoto
  • 2,293
  • 5
  • 21
  • 29
3
votes
4 answers

A proper way to access files on different machine using C#

I want to read files off of different windows machine on the same network, NOT part of the same domain though. (ASP.NET C# app) Tried FileStream (can't authenticate), tried FileWebRequest (reverts to FileStream when file:/// is used), and…
Yakov S
  • 31
  • 1
  • 5
3
votes
1 answer

asp.net WindowsImpersonationContext function

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…
sd_dracula
  • 3,796
  • 28
  • 87
  • 158
3
votes
3 answers

Open a shared file under another user and domain?

I have a C# console application that needs to read a shared file on a machine in another domain. When the application tries to access the file an exception occurs as the local user does not have permission to access the shared resource. Currently I…
Ahmed
  • 7,148
  • 12
  • 57
  • 96
3
votes
0 answers

Successive processes created via CreateProcessAsUser from web service using delegation cannot read/write to network share

What could be causing successive processes created via CreateProcessAsUser from web service using delegation to encounter System.UnauthorizedAccessException exceptions when trying to access network shares? WCF Rest web service kicks off a new…
3
votes
1 answer

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

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…
jmend
  • 1,210
  • 4
  • 16
  • 30