Re: confused about credentials in impersonation
From: Andre Strik (anonymous_at_newgroups.microsoft.com)
Date: 02/04/05
- Next message: Mike: "Re: Automatic Checkout"
- Previous message: alexisatk: "Re: problems branding SPS 2003"
- In reply to: silentsoldier: "confused about credentials in impersonation"
- Next in thread: Daniel Larson (www.portalbuilder.org): "RE: confused about credentials in impersonation"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Feb 2005 14:28:26 -0000
As in a traditional ASP.Net application the logged in user making the
request from the web browser is the principle that is impersonated.
Therefore when you do something like HttpContext.User.Identity.Name in your
code you will be returned the name of the currently logged in user making
the request. In order for this to work you must have the following setting
in your web.config file:
<identity impersonate="true"/>
If impersonation is not turned on then the user credentials that will be
accessing your app is the anonymous user that is defined for your virtual
directory.
However having something like the following in your web.config file will not
only ensure impersonation is on, but also any services that run under the
application are accessed with those credentials, an example might be where
the user WebUserLogon in the Domain is the principle used when making
connections to a database.
<identity impersonate="true" userName="WebApps\WebUserLogon"
password="pass01"/>
Therefore the user accessing your database for example will be
WebApps\WebUserLogon, but the user accessing your site is the currently
logged in user.
"silentsoldier" <silentsoldier@discussions.microsoft.com> wrote in message
news:2E67F350-999B-4219-8A05-2C3DC116B5D9@microsoft.com...
> what kind of credential are passed for impersonating an account i am
confused
> about credentials ie whose user name password and domain is required
client's
> account or server's accounts or server's administration account or domain
> account can some one guide abt this issue
- Next message: Mike: "Re: Automatic Checkout"
- Previous message: alexisatk: "Re: problems branding SPS 2003"
- In reply to: silentsoldier: "confused about credentials in impersonation"
- Next in thread: Daniel Larson (www.portalbuilder.org): "RE: confused about credentials in impersonation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|