I have two servers that support my application (in testing). Both are in the same domain, named SPL1...
By rladva
Is there anyway of accesing the session that are alocated to the users when they log in on your sit...
By tedskonto
GuysIf you are receiving access denied error messages one thing to check out if you really are stuck...
By gsuttie2002
The security chapters of SAMS [ASP.NET Unleashed] talks of converting a string into a Byte arrayFunc...
By icelava
Im trying to find a way when i save a security role for the current profile, that only the username ...
By beaulieu, 6 Comments
Hi,1. I have some pages which can be accessed by both admin and user and some of which can be access...
By mvpdotnet, 1 Comments
Hello,I have developed a Asp.Net 2.0 Single sign on(SSO) application it used as a single point of a...
By bainzey, 1 Comments
I have developed a blog application by myself, it is use ASP.NET 2.0.It has a problem about authenti...
By madwww1, 3 Comments
I'm using the CreateUserWizard to create my ASP.NET Membership database records and I've als...
By msaspnetdeveloper, 2 Comments
Does anyone have any ideas or can anyone point me in the right direction.
Thanks!!
djinn1 | Sat, 05 Jan 2008 20:47:00 GMT |
In my opinion the IIS use in your first example
<identity impersonate="true" /
the account of logged user (if you connect the IIS with your browser your own account "domain\YourUser". That's the ID behind the impersonation.
In your second example you enforce the impersonation with a hard coded account.
Best regards.
uk1967 | Sat, 05 Jan 2008 20:49:00 GMT |
That is true if you are using Windows Authentication.
With the use of Forms and allowing access to this web service anonymously it uses the "domain\ProxyAccount" which is the anonymous user listed in IIS.
When viewing the security identity in either example the user is the same.
When using the IIS identity instead of enforcing it by hard coding it with in the identity tag it is lacking the correct permissions or privlege.
When the security error (event id 578) occurs it names the user that is trying to write to the event log as "domain\ProxyAccount" when using the IIS Anonymous account.
If hard code the same domain account it works fine and it does have the correct permissions.
I don't know but it seems like the hardcoded account gets the correct/all of the permissions and privleges but when impersonating the IIS anonymous account it does not.
djinn1 | Sat, 05 Jan 2008 20:50:00 GMT |
I did forget to mention that the "domain\ProxyAccount" does have the correct permissions on the server to write to the Event Log (file and registry).
djinn1 | Sat, 05 Jan 2008 20:51:00 GMT |