RE: impersonation
- From: "Salvador" <Salvador@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 03:01:08 -0700
Hi,
There are several ways:
1)if you are using IIS5.1 you can change the user that is impersonate on the
webservice, you can go to the machine.config file and remove the default
ASPNET user, this has some implications related to security, because it will
change the default user for all your sites on the server. (This is not the
account that the client will use, that is a different layer and will still
use IUSR_MachineName). If you want to do it per website you can paste that
code on your web.config file (note: I haven't tried this, I know that some
properties can be set on the web.config but others are ignored and read it
from machine.config, check the help for this)
2)If you are using IIS6 you can easily change that on the website
properties, so its per website, same behaviour as above.
3)If you are going to impersonate remember that only works on Wind2K3 and
XP, for Win2K you need to change the policy settings in order to do this
opening a whole on the security environment.
I prefer the option 1 cause I have more control, but check your requirements
and choose your best approach.
Best regards
Salva
"Ohad Young" wrote:
> Hi,
>
> I need to connect to a remote SQL server from a webservice. The webservice
> (IIS) and SQL server are running on different machines. I'd like to use
> windows authentication rather than SQL one.
> How can I achieve this? through impersonation? what are the implications of
> using impersonation? is there a better way?
>
> Thanks, Ohad
>
> --
> Ohad Young
> Medical Informatics Research Center
> Ben Gurion University
> Information System Eng
> Office Phone: 972-8-6477160
> Cellular Phone: 972-54-518301
> E-Mail: ohadyn@xxxxxxxxxxxxxxxxx
>
>
>
.
- Follow-Ups:
- RE: impersonation
- From: Ohad Young
- RE: impersonation
- References:
- impersonation
- From: Ohad Young
- impersonation
- Prev by Date: RE: Dynamic CacheDuration
- Next by Date: Re: Calling a batch file from a web service
- Previous by thread: impersonation
- Next by thread: RE: impersonation
- Index(es):
Relevant Pages
|