Hi Dave,
Seems you used to suffer some problem on MSDN account setting, anyway,
you've got the managed alias configured correctly now, welcome back:)
From your description, you're encountering some problem of the WSE
usernameTokenmanager's security context when accessing a remote SQL
database. You found your imperosonated anonymous account is not used when
accessing the remote server(but used the worker process account), correct?
Though I haven't ever impersonate anonymous account in webservice and WSE,
I think the behavior here could be caused by two possible things:
1. the ASP.NET webservice pipeline haven't perform the impersonate at the
point WSE call the token manager(WSE is injected at SOAP extension stage)
2. the WSE runtime has manually call Reverttoself to change security
context back to the process identity.
I think #1 is more possible here. For the problem here, a possible
workaround is manually put code in the Custom usernameTokenmanager to
perform the impersonation. To programmatically impersonate, you need clear
text username/password credentials, here is a msdn article about
programamatic impersonate:
#How To: Use Impersonation and Delegation in ASP.NET 2.0
http://msdn2.microsoft.com/en-us/library/ms998351.aspx Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx. ==================================================