Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums

Go Back   Vista Forums > Vista technology newsgroups > Indigo

Impersonation question

Reply
 
Thread Tools Display Modes
Old 12-14-2007   #1 (permalink)
C Downey
Guest
 
Posts: n/a

Impersonation question

Is there any easy way to impersonate a user account in WCF similar to the
asp.net impersonate below?

<identity impersonate="true" userName="MYDOMAIN\sharepoint"
password="mysecretpassword" />

Thanks,

Clayton


  Reply With Quote

Old 12-14-2007   #2 (permalink)
Tiago Halm
Guest
 
Posts: n/a

Re: Impersonation question

Yes there is. Detailed info here:
http://blogs.msdn.com/wenlong/archiv...23/516041.aspx

However, make a careful decision when impersonating. In other words, the
best impersonation methodology is to only impersonate when needed. For
example, imagine you'd want to delegate the authenticated account when
invoking other services from you service ... in this scenario you would, for
example, create an IClientMessageInspector (and a behavior applied to the
required WCF proxy endpoint to inject the inspector) and perform the
delegation programatically.

Impersonation suffers from external factors such as user rights and
permissions on the same box where the user is being impersonated promoting
scenarios like privilege escalation and others. One should always decide
carefully when to impersonate.


Tiago Halm

"C Downey" <colleen_81@xxxxxx> wrote in message
news:uj2sTunPIHA.4440@xxxxxx
Quote:

> Is there any easy way to impersonate a user account in WCF similar to the
> asp.net impersonate below?
>
> <identity impersonate="true" userName="MYDOMAIN\sharepoint"
> password="mysecretpassword" />
>
> Thanks,
>
> Clayton
>
>

  Reply With Quote
Old 01-22-2008   #3 (permalink)
Cezary Nolewajka
Guest
 
Posts: n/a

Re: Impersonation question

Impersonation is possible but tricky to set up. Many articles are misleading
and quote too many requirements to have it set up.

If you really are keen on setting that up, please reply to that post and I
shall give more details about how to set up WCF impersonation.

--
Best regards,
Cezary Nolewajka

Consultant | Microsoft Services | Microsoft | Poland

"Tiago Halm" <thalm@xxxxxx> wrote in message
news:%23YrkBUqPIHA.3940@xxxxxx
Quote:

> Yes there is. Detailed info here:
> http://blogs.msdn.com/wenlong/archiv...23/516041.aspx
>
> However, make a careful decision when impersonating. In other words, the
> best impersonation methodology is to only impersonate when needed. For
> example, imagine you'd want to delegate the authenticated account when
> invoking other services from you service ... in this scenario you would,
> for example, create an IClientMessageInspector (and a behavior applied to
> the required WCF proxy endpoint to inject the inspector) and perform the
> delegation programatically.
>
> Impersonation suffers from external factors such as user rights and
> permissions on the same box where the user is being impersonated promoting
> scenarios like privilege escalation and others. One should always decide
> carefully when to impersonate.
>
>
> Tiago Halm
>
> "C Downey" <colleen_81@xxxxxx> wrote in message
> news:uj2sTunPIHA.4440@xxxxxx
Quote:

>> Is there any easy way to impersonate a user account in WCF similar to the
>> asp.net impersonate below?
>>
>> <identity impersonate="true" userName="MYDOMAIN\sharepoint"
>> password="mysecretpassword" />
>>
>> Thanks,
>>
>> Clayton
>>
>>
>
>
  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48