c# - Delegation in WCF web service -
I have a WCF web service, currently serviced at the WSHttpBinding endpoint with the Transportation Security and Windows Client Credential Type. The service is hosted at the top of the IIS 5.1, is configured using a certificate from the SSL Domain Certificate Authority. The IIS itself runs on a domain computer with the identification of test@domain.com. Anonymous access is disabled and is the only way to authenticate integrated Windows authentication.
There is a method in the service that returns the current window identity name and cloning level. In this method cloning is essential in your OperationBehaviorAttribute.
[OperationBehavior (impersonation = impersonation option mandatory)] Public IEnumerable & lt; String & gt; GetInformation () {WindowsIdentity ID = WindowsIdentity.GetCurrent (); New list back & lt; String & gt; () {Identity.Name, identity.ImpersonationLevel.ToString ()}; } I am creating a WCF channel manually in the client and allow delegation to the service.
WSHttpBinding binding = new WSHttpBinding (); Binding.security.mode = security mode. Transportation; Binding. Security. Transportation Client Credential Type = HTTP Client Credential Type Indoj; Endpoint Address Endpoint = New Endpoint Edress ("https: //host/DelegateService/Service.svc"); ChannelFactory & LT; ServiceInterface.IService & gt; CF = New Channel Factor & lt; Service Interface. ISG & gt; (Binding, closing point); Cf.Credentials.Windows.AllowedImpersonationLevel = Token Retribution. Level. Delegation; ServiceInterface.IService service = cf.CreateChannel (); The client is a fully trusted XBAP signed with a domain certificate that has been moved to a trusted publisher certificate store.
The host computer, test@domain.com and Current@domain.com, has allowed delegation to be installed in the domain and none of the users are sensitive. Seamanspanetet prizeel is either impersonation as a problem Should not work.
When the client calls the service method, then the method "domain \ current" and "impersonation" gives what I need "domain \ current" and "representative" according to the second table on the customer or The service is not capable of delegation.
The functional level of the Windows 2000 domain is mixed. I have read somewhere that this means NTLM authentication but I believe that in the context of traffic between domain controllers When the VirusHark is not running on the top, the supported: looks at the HTP response from 1.2.840.48018.1.2.2 (MS KRB5 - Microsoft Kerberos 5) , it seems that Kerberos is capable.
By technically we can extend the functional level as two domain controllers up to Windows 2003, but we have both W2K3 servers but IT departments are currently unable to allocate resources for backup operations. And before doing so, they want to do and increase the functional level.
We have a virtual test domain that can be upgraded at the functional level of Windows Server 2003, but there is a lack of certificate authority or client computer with IIS in this domain, while the functional level can be It has been raised for the purpose of testing, setting up the rest of the infrastructure is a lot of work.
This is a problem that I can not solve for a while. The web looks full of "how do you do it like this" kind of article, but I had no luck with them. Is any idea wrong?
Are you running XBAP and service on the same IIS host?
If I understand it correctly - you have got it: Client-> XBAP-> WCF.
The customer is connecting to XBSAP hosted on IIS. It can be authenticated through Kerberos and you feel that it is such.
The second hop is when XBAP is connecting to the WCF service. If both of them are hosted on one IIS host, then Kerbos will not be attempted and NTLM will be used. If another host machine is WCF then Kerbos only will be attempted.
If you have got a host of Xbep and WCF on the separate box, then you have got classic carbose upwards of 2. Hop Authentication Setup and in any way, "How do you do this" article type It should be understood.
(I know that this question was some time back - but I recently got it and only recently came to understand the issues of Kerberos and 2-hop.)
< / Div>
Comments
Post a Comment