Ask a Question related to ASP.NET Security, Design and Development.
-
Oleg Boldyrev #1
To obtain Web Service security context
Hello all!
I'd like to to impersonate the domain account a web service runs under. I
need this to do a trusted connection to SQL Server.
The current settings for the ASP.NET app are windows authentication and
impersonation. So if I do a trusted connection to SQL Server it would be
in the context of the current user which I don't want.
I like the approach with no global impersonation setting and manual
impersonation when nessessary, like was advised here, but that I can't
change the current global settings because the project is not mine and far
under way, I'm afraid to break something :-\
I feel I would be happy if I could obtain the WindowsImpersonationContext
for the account which runs the working process. If sombody could tell me how
to do this. In fact, all I want to do is to change the current security
context to that of the worker process, execute a sql query and then revert
to the previous context.
I don't want to explicitly set the credentials of any account. Is it
possible?
Oleg Boldyrev Guest
-
obtain jdbc connection in java context
There's a few posts on this topic in the forums: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=6&thread id=784401 ... -
MSXML what security context is used?
If I create an MSXML4 object in an ASP page (set xmldoc = Server.CreateObject("Msxml2.DOMDocument.4.0") .... and then apply an XSL stylesheet... -
Security context is invalid '800706d5'
Hi, We have an iis server where we host several websites. One of our websites has been consistently throwing the following error "Automation... -
CLI: How to obtain a ConnectionHandle from a Context
Hello I'm writing a multithreaded application using CLI and DB2 Administrative API. sqleGetCurrentCtx() provides me with the current Context... -
Security context question
If I turn off anonymous access to an ASP page and then use "Integrated Authentication" in a Intranet environment, I expected the user context to be... -
Joe Kaplan \(MVP - ADSI\) #2
Re: To obtain Web Service security context
Did you see the sample that Brock posted here that shows the trick of
impersonating the null token (which results essentially in "revert to self")
and then undoing the impersonation context to start the impersonation back
up? This sounds like what you need.
Joe K.
"Oleg Boldyrev" <olboldie@yandex.ru> wrote in message
news:%23EPBAuCRFHA.1564@TK2MSFTNGP09.phx.gbl...> Hello all!
>
> I'd like to to impersonate the domain account a web service runs under. I
> need this to do a trusted connection to SQL Server.
> The current settings for the ASP.NET app are windows authentication and
> impersonation. So if I do a trusted connection to SQL Server it would be
> in the context of the current user which I don't want.
> I like the approach with no global impersonation setting and manual
> impersonation when nessessary, like was advised here, but that I can't
> change the current global settings because the project is not mine and
> far under way, I'm afraid to break something :-\
> I feel I would be happy if I could obtain the WindowsImpersonationContext
> for the account which runs the working process. If sombody could tell me
> how to do this. In fact, all I want to do is to change the current
> security context to that of the worker process, execute a sql query and
> then revert to the previous context.
> I don't want to explicitly set the credentials of any account. Is it
> possible?
>
>
Joe Kaplan \(MVP - ADSI\) Guest
-
Oleg Boldyrev #3
Re: To obtain Web Service security context
Yes, I did! It's exactly what i need.
Thank you, Joe, thank you, Brock.
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:OWe7eKjRFHA.2252@TK2MSFTNGP15.phx.gbl...> Did you see the sample that Brock posted here that shows the trick of
> impersonating the null token (which results essentially in "revert to
> self") and then undoing the impersonation context to start the
> impersonation back up? This sounds like what you need.
>
> Joe K.
>
> "Oleg Boldyrev" <olboldie@yandex.ru> wrote in message
> news:%23EPBAuCRFHA.1564@TK2MSFTNGP09.phx.gbl...>>> Hello all!
>>
>> I'd like to to impersonate the domain account a web service runs under. I
>> need this to do a trusted connection to SQL Server.
>> The current settings for the ASP.NET app are windows authentication and
>> impersonation. So if I do a trusted connection to SQL Server it would
>> be in the context of the current user which I don't want.
>> I like the approach with no global impersonation setting and manual
>> impersonation when nessessary, like was advised here, but that I can't
>> change the current global settings because the project is not mine and
>> far under way, I'm afraid to break something :-\
>> I feel I would be happy if I could obtain the WindowsImpersonationContext
>> for the account which runs the working process. If sombody could tell me
>> how to do this. In fact, all I want to do is to change the current
>> security context to that of the worker process, execute a sql query and
>> then revert to the previous context.
>> I don't want to explicitly set the credentials of any account. Is it
>> possible?
>>
>>
>
Oleg Boldyrev Guest



Reply With Quote

