473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 "TransportWithMessageCredential" demands
HTTPS.

Is this correct?


My service is configured as

<service behaviorConfiguration="BLST.DataService.WCF.BWServ iceBehavior"
name="BLST.DataService.WCF.BWService"
>
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="ADCredentialsBinding"
contract="BLST.DataService.WCF.IBWService"
>
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add
baseAddress="http://localhost:8731/Design_Time_Addresses/BLST.DataService
..WCF/BWService/" />
</baseAddresses>
</host>
</service>

My binding "ADCredentialsBinding" is defined as

<bindings>
<wsHttpBinding>
<binding name="ADCredentialsBinding">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="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="WSHttpBinding_IBWService"
binding="tns:WSHttpBinding_IBWService">
<soap12:address
location="https://dkljessto.denmark.ecsoft/WCF/servicehost.svc"/>
<wsa10:EndpointReference><wsa10:Address>
https://dkljessto.denmark.ecsoft/WCF/servicehost.svc</wsa10:Address>
<Identity
xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
<Dns>localhost</Dns>
</Identity>
</wsa10:EndpointReference>
</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 1862

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

Similar topics

4
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...
1
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...
10
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...
1
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...
9
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
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...
2
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...
7
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...
2
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...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.