Re: WCF authentication and remote workstations

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Steven,

thanks for your answer. This confirms my speculation.
I think a way to get around this is

a) move to another VPN solution, which can make our notebooks part of the network
b) disable the authentication and use an own one

For your Idea with another endpoint: nice idea but way to complicated.


Thank you,
Frank


Steven Cheng schrieb:
Hi Frank,

As for the WCF communcation scenario in your context, would you provide some further information about the binding and security configuration of the service/endpoint. For example, are you using transport layer security, let the runtime forward the windows credential automatically for use message laye security(such as username authentication to authenticate the client)?

For the first one(windows authentication that let the client automatically forward the client security context(the current logon user). And I think this may somewhat cause the problem on your side. Because when the laptops are moved outside the domain. However, user can still logon the laptop via their domain credentials due to the cache, and I think it is likely that (when it works out side the domain), it is the cached domain credentials that's fowarded to server-side service. While in cases that the server may require the client to reauthenticate against their user identity, it failes since it's not in the domain. You can just put some trace code at server-side to print out the user identity. e.g.

====================
OperationContext.Current.ServiceSecurityContext.WindowsIdentity
====================

if the service is correctly called, and the security identity got at server-side correctly reflect the client user, that means the cached token are forwarded to server-side.

BTW, for such kind of environment, do you think the following design will help?

Since your client is possiblely be moved outside the domain, you may consider provide an additional endpoint. This endpoint may use a different security approach, such as message layer security(which can let the client manually supply username/password credentials). And whenever the default endpoint raise such security authentication error, your client app can switch to use another endpoint. What do you think?


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 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. 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/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
-------------------
Date: Thu, 27 Nov 2008 12:40:03 +0100
MIME-Version: 1.0
Subject: WCF authentication and remote workstations
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Hi out there,

we have an application which uses WCF to talk to our services with integrated security.
Some of these workstations are notebooks which are someday within our company (connected to the LAN) and
somedays outside (connected through an VPN (VPN-1 from checkpoint)).

On somedays the WCF throws an exception for the outside clients. On some days it works.
My idea is, the WCF does not trust the remote user profile (because it's not verified with the domain controller), but why it's then working
sometimes?

The error message is this one (german and translated from german to english):

Die Vertrauensstellung zwischen dieser Arbeitsstation und der
primären Domäne konnte nicht hergestellt werden.

The domain trust between the workstation and the primary domain could not be established.



Thank you for all ideas,
Frank


.



Relevant Pages

  • RE: * * * C# Application and Database Security Model * * *
    ... I've noticded that your main concern here is to provide security ... If you're going to do authentication and authorization against windows ... ASP.NET 2.0 also provide a well encapsulated Membership and role manager ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: * * * C# Application and Database Security Model * * *
    ... I've noticded that your main concern here is to provide security ... If you're going to do authentication and authorization against windows ... authenticate user against custom security account database and authroize ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WCF security advice (and clarification) needed
    ... You, the client, resolve the foo.mycompany.com hostname within your ... TCP/IP) with that ticket as the security token. ... There are two parties participating in a security scenario, the server ... HTTP supports other authentication ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: How to Authenticate to WCF Service Via VPN
    ... \par Microsoft MSDN Online Support Lead ... He launches Cisco Systems VPN Client and authenticates as ... \par> includes the service account identity as a user principal name. ... \par> mutual authentication is assumed. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: WCF authentication and remote workstations
    ... \par Subject: Re: WCF authentication and remote workstations ... \par Frank ... For example, are you using transport layer security, ... \par> For the first one(windows authentication that let the client automatically ...
    (microsoft.public.dotnet.framework.webservices)