473,513 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

identity impersonate

just wondering what could cause identity impersonate = true to not work on a
server? It works on my development machine but when I try it on a server
that has the framework installed it does not seem to work. the setup is
client------>server (should use user password and name)---->webfile gets
file listing from server 3. Server 3 is another server with a shared folder
with the file listing I need to get.

This seem to work where I have the client and Server2 on the same machine,
my development machine. Just wondering if there are any ideas. thanks.
--
Paul G
Software engineer.
Jan 18 '06 #1
4 1346
Is the root problem that you can't access a file or database from the code?
Have you confirmed that the server/Virtual Directory is using Basic or NTLM
authentication? Otherwise, you'll be impersonating IUSR_ and that won't do
you any good.

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

"=?Utf-8?B?UGF1bA==?=" <Pa**@discussions.microsoft.com> wrote in
news:E9**********************************@microsof t.com:
just wondering what could cause identity impersonate = true to not
work on a server? It works on my development machine but when I try
it on a server that has the framework installed it does not seem to
work. the setup is client------>server (should use user password and
name)---->webfile gets file listing from server 3. Server 3 is
another server with a shared folder with the file listing I need to
get.

This seem to work where I have the client and Server2 on the same
machine, my development machine. Just wondering if there are any
ideas. thanks.


Mar 13 '06 #2
Hi thanks for the response. I ended up just moving the files over to the
source machine but would still like to figure out what is going on. Just
wondering how to confirm if the server/Virtual Directory is using Basic or
NTLM authentication?
Thanks, Paul.
--
Paul G

"cbDevelopment" wrote:
Is the root problem that you can't access a file or database from the code?
Have you confirmed that the server/Virtual Directory is using Basic or NTLM
authentication? Otherwise, you'll be impersonating IUSR_ and that won't do
you any good.

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

"=?Utf-8?B?UGF1bA==?=" <Pa**@discussions.microsoft.com> wrote in
news:E9**********************************@microsof t.com:
just wondering what could cause identity impersonate = true to not
work on a server? It works on my development machine but when I try
it on a server that has the framework installed it does not seem to
work. the setup is client------>server (should use user password and
name)---->webfile gets file listing from server 3. Server 3 is
another server with a shared folder with the file listing I need to
get.

This seem to work where I have the client and Server2 on the same
machine, my development machine. Just wondering if there are any
ideas. thanks.


Mar 13 '06 #3
You would use the IIS manager. Get properties of the virtual directory (or
server if you've set up a Web Site for the code). Go to Directory
Security>Anonymous Access and Authentication Control>Edit and see which
checkboxes are checked.

That's only part of the problem. Let's say all three are enabled. The
normal order is NTLM, Basic, Anonymous. So you would think that your users
would be impersonated using their logins. But if the user does not have
access to a file being requested (ASPX, GIF, CSS, whatever), IIS will fall
back to Anonymous access for the request. Then you're impersonating IUSR
again.

So you need to make sure that the folder you've deployed to on the server
has the proper permissions (that doesn't mean Everyone - Full Access,
either). Make a user group, put the designated users in the group and
assign the group to the application folder. Test by removing Anonymous
access to the virtual directory/web site.

Hope this helps.

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

=?Utf-8?B?UGF1bA==?= <Pa**@discussions.microsoft.com> wrote in
news:D8**********************************@microsof t.com:
Hi thanks for the response. I ended up just moving the files over to
the source machine but would still like to figure out what is going
on. Just wondering how to confirm if the server/Virtual Directory is
using Basic or NTLM authentication?
Thanks, Paul.

Mar 15 '06 #4
Ok thanks for the information. will impliment it when I get a chance.
--
Paul G
Software engineer.
"cbDevelopment" wrote:
You would use the IIS manager. Get properties of the virtual directory (or
server if you've set up a Web Site for the code). Go to Directory
Security>Anonymous Access and Authentication Control>Edit and see which
checkboxes are checked.

That's only part of the problem. Let's say all three are enabled. The
normal order is NTLM, Basic, Anonymous. So you would think that your users
would be impersonated using their logins. But if the user does not have
access to a file being requested (ASPX, GIF, CSS, whatever), IIS will fall
back to Anonymous access for the request. Then you're impersonating IUSR
again.

So you need to make sure that the folder you've deployed to on the server
has the proper permissions (that doesn't mean Everyone - Full Access,
either). Make a user group, put the designated users in the group and
assign the group to the application folder. Test by removing Anonymous
access to the virtual directory/web site.

Hope this helps.

--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions

=?Utf-8?B?UGF1bA==?= <Pa**@discussions.microsoft.com> wrote in
news:D8**********************************@microsof t.com:
Hi thanks for the response. I ended up just moving the files over to
the source machine but would still like to figure out what is going
on. Just wondering how to confirm if the server/Virtual Directory is
using Basic or NTLM authentication?
Thanks, Paul.


Mar 15 '06 #5

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

Similar topics

12
2543
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
6281
by: Svein Terje Gaup | last post by:
I have a website running on Windows 2000 Server, that should be able to retrieve data from a datawarehouse on another machine running Windows 2000 Server, SQL Server 2000 and SQL Server 2000...
3
6495
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...
1
1751
by: Sorin Sandu | last post by:
How can I override Identity Impersonate setting from machine.config on a site on the same server ? I am using impersonate on most web sites but on one I need to use Windows Identity.
8
9432
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
2
7254
by: franzhe | last post by:
Hi all, in a simple ASP.Net application with resources in satellite assemblies I have the following problem: If I set <identity impersonate="true"/>, accessing a culture specific resource...
3
2452
by: Sonal | last post by:
I am trying to impersonate user with windows account. If I write following lines in web.config it show error <identity impersonate="true" userName="contoso\Jane" password="pass"/> ERROR:...
6
3116
by: Meena Desai | last post by:
Hi, What are the effects of using <identity impersonate="true"/> in web.config on windows auhtentication? Does it affect windows security? Thanx in advance, Meena.
0
1113
by: martin | last post by:
Hi, I am having trouble using impersonation -- with integrated security - on a domain controller. The authentication on IIS is set to integrated security only --- (NO annoymosy access allowed)...
8
3531
by: Doug | last post by:
Visual Studio 2005, SQL Server 2000, ASP.NET/VB.NET Not allowed to use the ASPNET machine account in SQL Server (very strict environment). Need to use Windows authentication, so we use...
0
7257
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
7379
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,...
1
7098
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...
1
5084
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
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.