473,555 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

identity impersonate for special anonymous account

Hello,

I got a weird problem...I didn't set up this machine so I don't know
what possibly went wrong...IIS set up after VS.NET..

On a virtual directory for a web app...I go to properties and click
on the 'Directory Security' tab, click the 'Edit' button,check
anonymous access, type in username/password for account, check
'Integrated Windows authentication' at the bottom...then OK out.

in web.config, I add the tag identity impersonate="tr ue" />

startup the app in Page_Load I have...

string samp =
System.Security .Principal.Wind owsIdentity.Get Current().Name;

firstload I get the account I typed in above...on postback it changes
to my personal windows account....

strange!!! no joy searching google so I post here in hopes....

Also when I switch on the anon user account for the whole website it
works.

Jul 22 '05 #1
1 1608
Hmmm but it works if I take out the requiredfieldva lidators....

it also works on other machines...

it is checked into source safe....
hmmmm..
yurps wrote:
Hello,

I got a weird problem...I didn't set up this machine so I don't know
what possibly went wrong...IIS set up after VS.NET..

On a virtual directory for a web app...I go to properties and click
on the 'Directory Security' tab, click the 'Edit' button,check
anonymous access, type in username/password for account, check
'Integrated Windows authentication' at the bottom...then OK out.

in web.config, I add the tag identity impersonate="tr ue" />

startup the app in Page_Load I have...

string samp =
System.Security .Principal.Wind owsIdentity.Get Current().Name;

firstload I get the account I typed in above...on postback it changes
to my personal windows account....

strange!!! no joy searching google so I post here in hopes....

Also when I switch on the anon user account for the whole website it
works.


Jul 22 '05 #2

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

Similar topics

3
2231
by: todd_groten | last post by:
Alright, I've been searching around for some time and have not been able to find anything concrete on fixing an issue I am having. Here's the situation: 1) I have a non-anonymous webservice running on a w2k3ee sp1 server 2) I am behind a corporate firewall, but was able to get our network services group to punch a hole at port 80 through....
0
889
by: Dave Mullen | last post by:
I'm trying to access a SQL server from a thread started from an asp.net application and get a "Cannot log into database as user null..." error. How can I make the thread inherit the same identity as the calling process? When I spin off the thread I have seen that it typically runs as NT ANONYMOUS\SYSTEM (via...
1
6283
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 Analysis Services. It seems impossible to make the impersonation work. Every path I try seems to be blocked. Path number one: set <identity...
1
1447
by: Peter Johansen | last post by:
Hi, I have a server that I use for shared hosting. For security reasons, I set <identity impersonate="true" /> in my machine.config file, and set allowOverRide="false" to prevent individual webs from impersonating anything other than the IIS anonymous account. The problem now is that I would actually like to impersonate a non-anonymous...
3
6497
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 reasons for using each? Thanks for any replies, Scott
8
9441
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 System.Security.Principal.WindowsImpersonationContext Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
4
4648
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this is for security reason when accessing databases). We use the Integrated Windows authentication to authenticate users, and we have setup the...
7
5411
by: WT | last post by:
Hi, Working on MS CRM 3, I have created an aspx page using vs2005 and .NET 2. I am faced with a problem concerning the identity of the running user. More details: The CRM application which creates the iFrame is on the same server as the called aspx page. CRM is running .NET 1.1, my page .NET 2 They run under IIS6 in différent web sites,...
3
21999
by: Michael Schwarz | last post by:
Hi, from time to time I get following error message with my ASP.NET 2.0 web application in the event log: An error occurred executing the configuration section handler for system.web/identity. My web.config looks like this: <authentication mode="Forms">
0
7621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7824
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8060
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7587
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7903
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6176
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3593
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2034
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 we have to send another system

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.