Impersonation - Is this possible -
I am trying to design a windows forms application (not asp.net) in C#, and need to know if the following scenario is possible :
Once my application is running I need to be able to impersonate another user account which will have access to a network drive that the current user account does not have access to. Is it possible to impersonate the required user account and map to the drive in code, enabling the current user to view the required files?
I need to do this so that users can only view/alter files from my application. All the files will only be accessible via a user account (which only the admin will know), thus stopping tampering with the files except via the application.
Can anybody can tell me if this is possible, and if it is possible some example code would be much appreciated.
[1.0/1.1] impersonation issue -
Hi,
Code1 ---> c# web application
HTML Code:
class class1
{
Impersonation;
//code here
undo Impersonation;
class 2
{
Impersonation;
//code here
undo Impersonation;
}
}
Code2 ---> c# web application
HTML Code:
class class1
{
Impersonat
COM+ Automation, Impersonation -
Would anyone happen to know how to setup impersonation programmatically using COM+ automation?
I've been looking all over the place for this one... even MSDN is lax on solutions..
Thanks!
Best way to GAC dll on remote computer with Impersonation -
What is the best way to GAC dll on remote computer with Impersonation to an admin account?
Thanks
[03/05] Impersonating an Odbc Connection -
I have a few applications that I am impersonating in order to access resources on a network (Some are 2003 and some are 2005). The impersonation works fine within the .net .exe but when I am using an ODBC connection in the application, the impersonation does not carry over into it. M
Gaining access with identity impersonation on and windows authentication on -
Hi,
I was wondering if anybody has had any experience with allowing anonymous access to a website, or virtual directory, and getting the application to assume the identity of a windows user, with identity impersonation on and windows authentication on.
Any articles or experience
impersonation -
Anyone knews on how to convert this impersonation from web config to c# impersonation?
HTML Code:
<identity impersonate="true"/>
<!--userName="usrname" password="password"/-->
Thansk,
Popskie
Impersonation and mapped drive -
Hi, in my application I do an impersonation with an admin account to allow the user to write in a folder which he doesn't have access. But the folder is on a mapped drive of the admin account. When I run the application I got the error.
Could not find a part of the path 'Y:\Para\Ser
SSPI handshake failed -
I have an asp.net site that uses integrated security to connect to a remote database. The webservice running under IIS is using local impersonation with an administrator account.
On startup the database is called, works fine, on http methods it works fine, however I have a timer withi
Impersonation (newbie) -
Hi All,
I am writing a program that needs to create registry keys and copy files to a remote PC. In my program I have a username and password text box and I use these strings to run the file copy, registry edit, service interaction..but at the moment I cannot find any way of specify
Big up respeck to me main man from the westsiide - aiii. -
I won 6 beers at me uni bar trivia last night with an Ali G impersonation. Love it.
[2005] Impersonate in windows vista -
i have a program of impersonation to update files in server , it;s working fine in windows xp , how can i do it in windows vista
any code
COM+ Package -
Hi all,
Any one knows which the most commonly used Authentication level and Impersonation level in COM+ Package
WMI Security Question -
Hey All,
I'll try and keep this short. I am looking for some opinions/advice on securing an admin intranet site that I have created. Among other things, this site allows for Active Directory user updates and also querying information using WMI. The problem is that I can query thr
[2005] WMI Security Question -
Hey All,
I'll try and keep this short. I am looking for some opinions/advice on securing an admin intranet site that I have created. Among other things, this site allows for Active Directory user updates and also querying information using WMI. The problem is that I can query thr
Why doesn't impersonation work with ODBC -
I am impersonating in my application and map drives as the impersonated user, but when I use ODBC to connect to Foxpro tables, it does not recognize the mapped drives.
Is there a work around for this?
Windows Integrated Security -
I have an Intranet running on our network on which I want to add a web app in vb/asp.net only I want to make the web app only available to certain people within the company. I ideally want it (if possible) so that people dont have to log in to the webapp but that instead the web server
impersonation issue -
I post this one in C# forums but no reply.
http://www.vbforums.com/showthread.php?t=433350
New coworker... George Costanza -
I kid you not. A new guy has joined our team. He looks just like George Costanza. I can barely contain myself. I don't know whether I should go up to him and do my Seinfeld impersonation expecting a response.
Something odd about him though, he's very polite.
ASP .Net application receiving permission denied error when trying to create a COM+ -
I'm getting a permission denied error when trying to get my ASP.Net application to create a COM+ object which is located on another server.
I believe this error is happening because the ASP .NET application is running using the default ASPNET account which is not a valid user on the C
ASP.NET impersonate problem -
Hi,
For an ASPX application, I enable impersonation by adding the line
<identity impersonate="true" />
to the web.config file. At the same time, I also enable Anonymous access and Windows Integrated security in IIS.
With this combination, which ID will be us
[02/03] network authentication -
I have a web page that lists files from a network UNC path. As of right now, I have it using impersonation in my web.config file in order to access the drive. I would like to not use this and use the regular Windows authentication with the persons username and password they use on th
Impersonations -
OK here is how this game works:
I will start it by impersonating someone, or some type of person. You have to guess who I'm impersonating. Then I will reply with the answer, and who ever gets it right gets to impersonate someone else.
If nobody is getting it after quite a few rep
default credentials return nothing!urgent!! -
hello all!!
i have an asp.net application and i am trying to execute a simple command to a crm service. the problem is that each time i am getting a user not authenticated error! i am using getdefaultcredentials function . the type of authentication is windows and impersonation is
.NET remoting IIS Problem -
HI,
I have a problem setting .NET Remoting in IIS. We are running a client windows application that access a Singleton Remoting object on and Application server using IIS. When I have Integrated Security AND Anonymous access turned on everything works fine. When I turn OFF anonymo
Accessing network files while impersonating -
I have an internal web site set up that is using impersonation to allow access to external programs like word and excel on the web server. One thing that I need this web program to do is move files about on our intranet. The user account being impersonated only exists on the web server
Accessing Network Files while impersonating users -
I have an internal web site set up that is using impersonation to allow access to external programs like word and excel on the web server. One thing that I need this web program to do is move files about on our intranet. The user account being impersonated only exists on the web serv
Impersonation - Is this possible -
I am trying to design a windows forms application (not asp.net) in C#, and need to know if the following scenario is possible :
Once my application is running I need to be able to impersonate another user account which will have access to a network drive that the current user accoun
Help with impersonation and writing a file! -
I have an ASP.NET 2.0 webapp that I have setup for Windows authentication.
In IIS it is configured. In the web.config i have both:
<authentication mode="Windows" />
<identity impersonate="true" />
On the default.aspx i have 2 labels showing Eviro
Help on COM+ Server Application role-based security -
I’m facing a problem while accessing COM+ server application from VB application where the role-based security is enabled.
My COM+ server application has following settings.
1. Checked “Enforce access checks for this application”
2. Selected security level as “Perform ac
[2005] How does WMI Impersonation work in VB.NET -
Hello again,
I have some code that runs WMI queries on remote machines. By default I set the AuthenticationLevel to Packet and the ImpersonationLevel to Impersonate. Now, I understand that means that all WMI calls will be made using MY credentials.
The code that sets it up is a
Impersonate Problems -
I have an application that retrieves services from a remote machine and if I run the page from the web server everything works. If I run the page from anywhere else it dies with a permissions error.
It always dies at ServiceProcess.ServiceController.GetServices(remoteMachine)
In
Strange Error 70 (not the usual DCOM-security-problem) -
Hi there!
I´ve got a strange problem with DCOM.
My setup:
An ActiveX.ocx including a proxy-DCOM-Client written in VB.
A Win2k-Server with the DCOM-Client (serving a HTML-File, using the DCOM-functionality).
The DCOM-Security setup is:
Default Authentication: none, impersonatio
[2005] Which Security Model to Use -
Hello All,
I have a question about which security model to use for an application. I have the users accessing both SQL Server 2005 and Active Directory. I would like to use the built in security with VS2005 using roles and what not, but i'm not sure how to do it for both AD and SQ
Run time error 3043: Disk or network error -
Hi All,
I have developed a VB6. application which connects to two database SQL Server and MS access. User connects to SQL database using windows authentication.
I have applied user impersonation in code. In code application first connect to SQL database which can present at the s
[2005] Remote Process Execution using WMI -
In VBScript, to create a new process on a remote machine, you could use this code:
Code:
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
intReturn = objWMIService.Create("delprof /q/i", Null, Null,
[2005] Code for enumerating mapped drives on a remote machine -
Phew. After hours of trying to convert some VBScript code, I've finally succeeded. WMI, unfortunately, cannot retrieve the mapped drives of local machines. Win32_LogicalDisk and Win32_MappedLogicalDisk simply do not do it. So, you have to get the values from the user context in the
printing to a client from an ASP.NET app on the web server -
I've written an ASP.NET (VS 2005) application that will print a receipt automatically when a command button is pressed. Here is an excerpt of the code that I am using to do this:
Dim printFont As New Font("COURIER NEW", 12)
Dim pd As New PrintDocument()
AddHandler pd.
[2005] Impersonation in Web.config -
Hi,
Anyone can explain the difference between
Code:
<identity Impersonate =true user=username password=password/>
against
Code:
<identity Impersonate =true />
Thanks
Activate remote process plus network shares accessible -
Hello
I have been working with some remote process activation and i works fine, but the process im starting on the remote machine need access to network shares also. Is there a way to accomplish that? I need it to act as a logged on administrator user.
This is my code so far:
[2005] How to access methods of instantiated class -
I'm trying to make my application code more manageable by breaking some of the main form code up into classes.
I have this class that contains various functions to handle all the WMI code.
Code:
Option Strict On
Option Explicit On
Public Class WMIWrapper
Implements IDispo