473,386 Members | 1,864 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,386 software developers and data experts.

The authentication scheme 'NTML' is not supported

I posted this in the WCF forum and didn't see any response. Re-posting
here to a wider audience to see if anyone else has seen similar
behavior...

Created a simple service in WCF and hosted it on my XP box in IIS
(5.1) which works as expected. I was interested in exposing the
endpoint to both WCF & non-WCF clients: i.e. the service is exposed
using both wsHttpBinding as well as basicHttpBinding.
When I tried to setup the same service on a W2k3 m/c and i get this
error. The stack trace is presented below:
Code Snippet[NotSupportedException: The authentication scheme 'NTML'
is not supported.]

System.ServiceModel.Activation.MetabaseSettingsIis .RemapAuthenticationSchemes(AuthFlags
flags, String[] providers) +241

System.ServiceModel.Activation.MetabaseSettingsIis .GetAuthenticationSchemes(String
virtualPath) +25

System.ServiceModel.Channels.HttpChannelListener.A pplyHostedContext(VirtualPathExtension
virtualPathExtension, Boolean isMetadataListener) +33

System.ServiceModel.Activation.VirtualPathExtensio n.ApplyHostedContext(TransportChannelListener
listener, BindingContext context) +4347180

System.ServiceModel.Channels.HttpTransportBindingE lement.BuildChannelListener(BindingContext
context) +112

System.ServiceModel.Channels.BindingContext.BuildI nnerChannelListener()
+63

System.ServiceModel.Channels.DatagramChannelDemuxe r`2..ctor(BindingContext
context) +84
System.ServiceModel.Channels.ChannelDemuxer.GetTyp edDemuxer(Type
channelType, BindingContext context) +187

System.ServiceModel.Channels.ChannelDemuxer.BuildC hannelListener(BindingContext
context, ChannelDemuxerFilter filter) +56

System.ServiceModel.Channels.ChannelDemuxerBinding Element.BuildChannelListener(BindingContext
context) +178

System.ServiceModel.Channels.BindingContext.BuildI nnerChannelListener()
+63

System.ServiceModel.Channels.MessageEncodingBindin gElement.InternalBuildChannelListener(BindingConte xt
context) +67

System.ServiceModel.Channels.TextMessageEncodingBi ndingElement.BuildChannelListener(BindingContext
context) +46

System.ServiceModel.Channels.BindingContext.BuildI nnerChannelListener()
+63
System.ServiceModel.Channels.ChannelBuilder.BuildC hannelListener()
+57

System.ServiceModel.Security.SecuritySessionServer Settings.CreateInnerChannelListener()
+334

System.ServiceModel.Channels.SecurityChannelListen er`1.InitializeListener(ChannelBuilder
channelBuilder) +64

System.ServiceModel.Channels.SymmetricSecurityBind ingElement.BuildChannelListenerCore(BindingContext
context) +2436

System.ServiceModel.Channels.SecurityBindingElemen t.BuildChannelListener(BindingContext
context) +206

System.ServiceModel.Channels.BindingContext.BuildI nnerChannelListener()
+63

System.ServiceModel.Channels.TransactionFlowBindin gElement.BuildChannelListener(BindingContext
context) +178

System.ServiceModel.Channels.BindingContext.BuildI nnerChannelListener()
+63
System.ServiceModel.Channels.Binding.BuildChannelL istener(Uri
listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode
listenUriMode, BindingParameterCollection parameters) +125

System.ServiceModel.Description.DispatcherBuilder. MaybeCreateListener(Boolean
actuallyCreate, Type[] supportedChannels, Binding binding,
BindingParameterCollection parameters, Uri listenUriBaseAddress,
String listenUriRelativeAddress, ListenUriMode listenUriMode,
ServiceThrottle throttle, IChannelListener& result) +4348670

System.ServiceModel.Description.DispatcherBuilder. BuildChannelListener(StuffPerListenUriInfo
stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode
listenUriMode, IChannelListener& result) +758

System.ServiceModel.Description.DispatcherBuilder. InitializeServiceHost(ServiceDescription
description, ServiceHostBase serviceHost) +1240
System.ServiceModel.ServiceHostBase.InitializeRunt ime() +37
System.ServiceModel.ServiceHostBase.OnOpen(TimeSpa n timeout) +63
System.ServiceModel.Channels.CommunicationObject.O pen(TimeSpan
timeout) +268
System.ServiceModel.Channels.CommunicationObject.O pen() +30
System.ServiceModel.HostingManager.ActivateService (String
normalizedVirtualPath) +104
System.ServiceModel.HostingManager.EnsureServiceAv ailable(String
normalizedVirtualPath) +445

Authentication scheme NTML??? [not a typo!]
..NET 3.0 was recently installed on this m/c & i've verified that the
installation is correct. In fact, if i host the service in a console
app, it behaves correctly. Only hosting in IIS 6.0 seems to be
exhibiting this symptom.

Spelunking using Reflector, it appears that the
MetabaseSettingsIis.cctor sets up the DefaultAuthProviders to be
"negotiate" & "ntlm". It appears as if NTLM is somehow clobbered to
become "NTML" causing the above exception to be thrown. Any IIS
settings that i should check that would affect this? Any ideas or
pointers please? I've been struggling with this for almost a week
now...

TIA,
chen

Sep 10 '07 #1
2 2777
Better check what is set on the metabase. I would guess somehow the
NTAuthenticationProviders metabase key has wrong values.
Open a prompt and type:

# cd c:\inetpub\AdminScripts
# cscript adsutil.vbs get w3svc/NTAuthenticationProviders

If you find you have something like "Negotiate,NTML" then type:
# cscript adsutil.vbs set w3svc/NTAuthenticationProviders
"Negotiate,NTLM"
or delete the key, since IIS6 has this value by default
# cscript adsutil.vbs delete w3svc/NTAuthenticationProviders

By the way, you should probably check it also on the specific WebSite
where the service is setup, example:
# cscript adsutil.vbs get w3svc/1/ROOT/NTAuthenticationProviders

IIS6 already has "Negotiate, NTLM" by default.
http://support.microsoft.com/kb/215383

Tiago Halm

Sep 10 '07 #2
I had checked w3svc/NTAuthenticationProviders as well as w3svc/1/
NTAuthenticationProviders earlier. Didn't realize i had to check w3svc/
NT/1/ROOT/AuthenticationProviders as well. Sure enough, this one had
Negotiate & NTML. Once it reset it to NTLM, it worked.

Thanks for the tip.

On Sep 10, 2:58 pm, tiago.h...@gmail.com wrote:
Better check what is set on the metabase. I would guess somehow the
NTAuthenticationProviders metabase key has wrong values.
Open a prompt and type:

# cd c:\inetpub\AdminScripts
# cscript adsutil.vbs get w3svc/NTAuthenticationProviders

If you find you have something like "Negotiate,NTML" then type:
# cscript adsutil.vbs set w3svc/NTAuthenticationProviders
"Negotiate,NTLM"
or delete the key, since IIS6 has this value by default
# cscript adsutil.vbs delete w3svc/NTAuthenticationProviders

By the way, you should probably check it also on the specific WebSite
where the service is setup, example:
# cscript adsutil.vbs get w3svc/1/ROOT/NTAuthenticationProviders

IIS6 already has "Negotiate, NTLM" by default.http://support.microsoft.com/kb/215383

Tiago Halm

Sep 10 '07 #3

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

Similar topics

2
by: Michael Foord | last post by:
To be fair this is more a question about http than directly about python... but I'm trying to work with it from python and would appreciate some help. I'm writing a cgiproxy to remotely fetch...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
6
by: Alexander Gnauck | last post by:
Hello, i need to perform NTML Authentication with SMTP against a exchange server. I cant use existing libraries like CDO. The type1 and type2 mesages work OK. Now i have to create the type3...
1
by: Jonas | last post by:
Hi! I'm building an ASP.NET web application that needs an automatic logoff after a specified time out period, forcing the user to enter his/her Windows authentication credentials again. I use...
4
by: Coldman | last post by:
hi, IIS 5 and 6, IE 5 and 6, simple authentication does the browser send the username and password in clear text on every request after been authenticated?
40
by: webrod | last post by:
Dear All, let's say I have a web service. I would like to authenticate users who try to access it. I am on a winnt server so I will have to use NTLM but I don't want to use IIS settings. Is...
2
by: WT | last post by:
Hello, I tryed to fix a variable with the current authentication mode, I tryed to use Request.LogonUserIdentity AuthenticationType for this but when I traced with this code if...
2
by: chen | last post by:
I posted this in the WCF forum and didn't see any response. Re-posting here to a wider audience to see if anyone else has seen similar behavior... Created a simple service in WCF and hosted it...
1
by: whitemice | last post by:
The only documentation regarding doing authentication for XML-RPC I can find is - "Both the HTTP and HTTPS transports support the URL syntax extension for HTTP Basic Authentication:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.