473,621 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WCF: Passing AD-credentials

I have the following requirements:

a. Have a WCF-service hosted on IIS (6.0)
b. Pass user's AD-credentials to the WCF-service
c. NOT use SSL/HTTPS

So in IIS I have disabled anonymous access and specified "integrated
Windows authentication" .

I have tried to use wsHttpBinding, but as far as I can figure out,
wsHttpBinding with security mode "TransportWithM essageCredentia l" demands
HTTPS.

Is this correct?


My service is configured as

<service behaviorConfigu ration="BLST.Da taService.WCF.B WServiceBehavio r"
name="BLST.Data Service.WCF.BWS ervice"
>
<endpoint address=""
binding="wsHttp Binding"
bindingConfigur ation="ADCreden tialsBinding"
contract="BLST. DataService.WCF .IBWService"
>
<identity>
<dns value="localhos t" />
</identity>
</endpoint>
<endpoint address="mex"
binding="mexHtt pBinding"
contract="IMeta dataExchange"/>
<host>
<baseAddresse s>
<add
baseAddress="ht tp://localhost:8731/Design_Time_Add resses/BLST.DataServic e
..WCF/BWService/" />
</baseAddresses>
</host>
</service>

My binding "ADCredentialsB inding" is defined as

<bindings>
<wsHttpBindin g>
<binding name="ADCredent ialsBinding">
<security mode="Transport WithMessageCred ential">
<transport clientCredentia lType="Windows"/>
</security>
</binding>
</wsHttpBinding>
</bindings>

The funny thing is that when I look at the WSDL generated by my
service.svc, it is (the last part, anyway)

<wsdl:service name="BWService ">
<wsdl:port
name="WSHttpBin ding_IBWService "
binding="tns:WS HttpBinding_IBW Service">
<soap12:addre ss
location="https ://dkljessto.denma rk.ecsoft/WCF/servicehost.svc "/>
<wsa10:Endpoint Reference><wsa1 0:Address>
https://dkljessto.denma rk.ecsoft/WCF/servicehost.svc </wsa10:Address>
<Identity
xmlns="http://schemas.xmlsoap .org/ws/2006/02/addressingident ity">
<Dns>localhos t</Dns>
</Identity>
</wsa10:EndpointR eference>
</wsdl:port>
</wsdl:service>

(notice the small 's' in the protocol-prefix of
https://mymachine.denmark.myaddomain...ervicehost.svc)

Is my understanding correct - and if it is - which binding should I turn
to instead?

--
Jesper Lund Stocholm
http://idippedut.dk
Nov 11 '08 #1
0 1879

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
10679
by: dgilbert | last post by:
I have a custom membership provider that I am using to authenticate users in a WCF web service hosted IIS. I want to be able to see any cookies that come across and save session variables, but I cannot get to the OperationContext.Current nor the HttpContext.Current (I am using aspNetCompatibility=true and confirmed that it is enabled in the debugger) - both are null. Is there a setting someplace that will enable these to be available to...
1
6444
by: John Cosmas | last post by:
I need an example of a project where by WCF Host passes a known DATATABLE to the CLIENT. Can someone please do me a big favor. The examples posted by MSFT is just too basic and passes simple strings. I need to pass large set of rows, record to/from client. TIA John
10
627
by: Oriane | last post by:
Hello, I have to share a object in RAM between several processes. I intend to design a special process to load this objet (an Autocad plan) in memory, and to take care of the read/write operations made by the other processes with WCF based on named pipes. Would you think it is a good idea ? Best regards
1
2183
by: Steven Nagy | last post by:
Hi all, I want to know if it is possible to have a WCF service hosted in IIS (.svc) that uses the provider model in .Net? Ideally, I'd like the WCF service methods to detect the user's AD user name automatically (ie not passed as a parameter in the method) such that it uses trusted authentication. The service then access profile information via the profile provider. In ASP.NET pages this is easy. You can simply do:
9
2553
by: =?Utf-8?B?RXZlcnQ=?= | last post by:
Does anybody have a good example/guide for using LINQ in a layered architecture with maybe WCF? Thanks in advance, Evert
16
2401
by: =?Utf-8?B?U3RldmUgQmFya2Vy?= | last post by:
WCF Question Hi guys, I’m pretty new to WCF, and have a basic question about how it works. I’m trying to use WCF to write an “SOA-system”, and am having a few problems. The following analogy explains what I’m trying to do. I have a very simple class:
2
12867
by: =?Utf-8?B?RWRkaWU=?= | last post by:
Here is my scenario for a problem I can't solve. I am hosting a 3.5 WCF service in IIS on Windows Server 2003. The service works fine with the WCF test client in Visual Studio 2008 and from an ASP.Net client hosted on my development machine in VS2008. As soon as I deploy the ASP.net client to the "Same" IIS server, I get Access Denied messages. My goal is to use AD security groups so the authenticated user on the ASP.net page should be...
7
2633
by: Bill McCormick | last post by:
Hello cSharpies, I'm trying to get up to speed with WCF services. Does a service need to have a ServiceContract/OperationContract to make use of a DataContract? I want to have a service that allows a client to create an object in the service app and have the service app "do something" with the object.
2
4221
by: Steven Cheng | last post by:
Hi Gary, As for the setting you mentioned, it is used to custimze the received data size limitation of WCF binding(such as NetTcpBinding or HttpBinding). After you have definite a customized Binding setting, you can apply it to your WCF service via the "bindingConfiguration" attribute of each <endpoint> here is a simple WCF service configuration in web.config which demonstrate this:
0
2355
by: jcatubay | last post by:
I have a function that returns a list more than 200000 objects and the object has 37 fields. I added the wcf as a web reference so i dont have to add any configuration item in my web apps config file. WCF works when I only have small amount of data. SInce I did'nt add the config file, how can I allow the wcf to send large amount of data. It sems to be timing out. When I debugged my wcf I'm getting this error "An error occurred while receiving...
0
8213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8156
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8457
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5554
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4065
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.