473,466 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

impersonation

I have a directory synchronization service that requires access to network
shares. I am getting access denied errors. It looks like I need to
implement impersonation.

Can anyone direct me to a working example or good article of impersonation
for a windows application?

Any help is appreciated.

Thanks,
Brent
Nov 20 '05 #1
4 1158
Hi,

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
--------------
"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:eD****************@TK2MSFTNGP11.phx.gbl...
I have a directory synchronization service that requires access to network
shares. I am getting access denied errors. It looks like I need to
implement impersonation.

Can anyone direct me to a working example or good article of impersonation
for a windows application?

Any help is appreciated.

Thanks,
Brent

Nov 20 '05 #2
* "Brent Burkart" <Br***********@wvmb.com> scripsit:
I have a directory synchronization service that requires access to network
shares. I am getting access denied errors. It looks like I need to
implement impersonation.

Can anyone direct me to a working example or good article of impersonation
for a windows application?


P/invoke on 'ImpersonateLoggedOnUser':

<http://groups.google.com/groups?selm=hCARpJtVBHA.313%40cppssbbsa01.microsof t.com>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet/>
Nov 20 '05 #3
Thanks, this is what I needed.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c1*************@ID-208219.news.uni-berlin.de...
* "Brent Burkart" <Br***********@wvmb.com> scripsit:
I have a directory synchronization service that requires access to network shares. I am getting access denied errors. It looks like I need to
implement impersonation.

Can anyone direct me to a working example or good article of impersonation for a windows application?
P/invoke on 'ImpersonateLoggedOnUser':

<http://groups.google.com/groups?selm...bsa01.microsof
t.com>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet/>

Nov 20 '05 #4
thank you for your help, this is what I needed
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:eo****************@TK2MSFTNGP12.phx.gbl...
Hi,

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
--------------
"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:eD****************@TK2MSFTNGP11.phx.gbl...
I have a directory synchronization service that requires access to network shares. I am getting access denied errors. It looks like I need to
implement impersonation.

Can anyone direct me to a working example or good article of impersonation for a windows application?

Any help is appreciated.

Thanks,
Brent


Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris | last post by:
Hello all, Here is my problem. I have a windows service (C#) that is supposed to move files from/to the local drive to/from a UNC share (\\domainserver\share). The service is running on a Win3k...
1
by: Ripa Horatiu | last post by:
Does anyone knows how can I impersonate to another user (basically Administrator) for a piece of my code? I've tried the samples provided by MS but they didn't worked. -- Horatiu Ripa
12
by: Anil Krishnamurthy | last post by:
We have an ASP.NET application that uses COM objects through Interop. The web application requires access to network and database resources and hence, needs to impersonate a domain account. The...
1
by: techfuzz | last post by:
I'm posting my problem experience and solution I found here for other ASP.NET developers. I have a web application that uses Forms Authentication with Active Directory to control access. In...
3
by: Wm. Scott Miller | last post by:
What is the difference between using a username and password in the processmodel section vs using one in impersonation in the machine.config file? What are the advantages of each and what are the...
11
by: Phil | last post by:
Hi, I've currently setup a local user as described in: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnne...
1
by: Patrick | last post by:
I have an ASP.NET web service whose Web.Config is set to use impersonation <authentication mode="Windows" /> <identity impersonate="true" /> Within a Web Method, I want to use...
0
by: velvet.graham | last post by:
I'm having a difficult time with impersonation. I've created an impersonation class. Here is the code below: ******Impersonation Class Code********* Imports System Imports System.Web.Security...
1
by: zhuang | last post by:
Dear all, I found a very interesting thing about viewing crystal report (located on network drive) with asp.net application. To do the impersonation, modify web.config does not work, you have...
5
by: =?Utf-8?B?S2l0dHlIYXdr?= | last post by:
I am in the process of migrating an II6 environment from a single server to a network load balanced system. Thus, I am using a virtual directory on a UNC share to house the dynamic data that the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.