Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7915861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:36:12+00:00 2026-06-03T14:36:12+00:00

I have got a .NET WCF client talking to a Java server component. Server-side

  • 0

I have got a .NET WCF client talking to a Java server component. Server-side authentication is done via an intermediate Apache server that is configured as a reverse proxy.

The .NET client has a configuration as follows:

<basicHttpBinding>
    <binding name="AdministrationServiceImplServiceSoapBinding">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" proxyCredentialType="Windows" />
          </security>
    </binding>
</basicHttpBinding>

The Apache is configured to require a Kerveros authentication:

<LocationMatch "^...$">
  AuthType Kerberos
  Krb5Keytab ...
  KrbServiceName HTTP/hostname
  KrbMethodNegotiate on
  KrbMethodK5Passwd off
  Require valid-user
  Satisfy All
</LocationMatch>

If I start my application on Windows 7, everything works as expected: the .NET client is using Kerberos, Apache authenticates the client, I can access the client credentials using Spring security.

If I start my application on Windows XP, I get an HTTP 401 error message. After watching the network communication using WireShark, I saw this happening:

(1) Initial attempt to access the web service without authentication

POST <path> HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Host: <host>
Content-Length: 374
Expect: 100-continue
Connection: Keep-Alive

(2) 100 Continue reply from server

HTTP/1.1 100 Continue

(3) SOAP request from client (still unauthenticated)

(4) Server giving 401 response

HTTP/1.1 401 Authorization Required
Server: Apache
WWW-Authenticate: Negotiate

(5) Attempt of Client to use NTLM for authentication

POST <path> HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Authorization: Negotiate TlRMTVNTUAABAAAAt4IY4gAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==
Host: <host>
Content-Length: 0

(6) 401 message from server (we don’t speak NTLM here!)

HTTP/1.1 401 Authorization Required

(7) Client giving up

When I decode the Base64 negotiate header from the client, it starts with NTLMSSP\x00 indicating that the client wants to do NTLM authentication despite of the configuration file specifying “Windows” (aka Kerberos) for the autentication.

Is there anything that I can do on the client side to persuade .NET to use Kerberos? If not, what should my Apache return so that the client knows it should use Kerberos?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:36:14+00:00Added an answer on June 3, 2026 at 2:36 pm

    Windows did not use the correct service principal name (SPN) for the Kerberos-secured service: When using Kerberos, Windows should lookup the SPN HTTP/$servername in the active directory.

    A possible cause of errors is that the SPN for the service does not exist and must be created (c.f. Kerberos Authentication problems – Service Principal Name (SPN) issues – Part 3). In my setup, however, the SPN did exist, but somehow Windows did not retrieve them). Using KerbTray I verified that Windows did in fact not contain a Kerberos ticket for HTTP/$servername.

    The solution was to explicitly define the SPN in the WCF client configuration.

    <endpoint address="http://$servername/Service" />
    

    became

    <endpoint address="http://$servername/Service" />
      <identity>
        <servicePrincipalName value="HTTP/$servername" />
      </identity>
    </endpoint>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've finally got my WCF service setup and talking to browser via ASP.NET
I've got an asp.net application where each client will have their own data entry
I've got a .NET application running on WCF. In that application, I have a
I have got a question with regards to upgrading asp.net mvc applications from v1
I have got one weird issue. I am working on an asp .net mvc
I am a fresher and I have got a project in asp.net and c#.
I have been assigned to Convert a VB.NET project to C# and I got
I have a FormView control in an ASP.NET 2.0 app. I've got the database
vb.net windows forms question. I've got 3 forms that have exactly the same functions,
I have got a server that controls a complicated industrial system. We need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.