Home All Groups Group Topic Archive Search About

IN which context my web service is running?

Author
4 Aug 2006 12:01 AM
serge calderara
Dear all,

I have an ASP 1.1 application which used either Form or WIndows Identification
The aplication is calling a web service to get data from an SQL server
database

Based on that, if Windows identification is used for my ASP application, in
which user context will run my web service when called ? will it run with the
default ASP account or will it automatically inherit from tha Windows
identificvation when called ?

thnaks for your help
regard
serge

Author
4 Aug 2006 5:59 AM
Dominick Baier
Hi,


WindowsIdentity.GetCurrent().Name

will tell you the effective security context.

Also check this out:

http://www.leastprivilege.com/ShowContextsAnotherUpdateIAdmitIt.aspx

dominick

Show quoteHide quote
> Dear all,
>
> I have an ASP 1.1 application which used either Form or WIndows
> Identification The aplication is calling a web service to get data
> from an SQL server database
>
> Based on that, if Windows identification is used for my ASP
> application, in which user context will run my web service when called
> ? will it run with the default ASP account or will it automatically
> inherit from tha Windows identificvation when called ?
>
> thnaks for your help
> regard
> serge