c# - How kerberos recognizes SPN entries -



c# - How kerberos recognizes SPN entries -

question 1: there way create setspn.exe take effects without need restart computer?

question 2: did set spn , ran wcf service on server. client connected using kerberos, changed identity element @ client side , tried again. found using ntlm instead of kerberos fine.

when did alter spn in wcf service configuration file , re-ran service (without changing registered spn), found used kerberos authentication @ client side. why changing identity element of wcf service doesnt create effect? how can be?

note: using fiddler check authentication.

server side config file:

<?xml version="1.0" encoding="utf-8" ?> <configuration> <appsettings> <add key="aspnet:usetaskfriendlysynchronizationcontext" value="true" /> </appsettings> <system.web> <compilation debug="true" /> </system.web> <system.servicemodel> <services> <service name="wcfservicelibrary1.service1"> <host> <baseaddresses> <add baseaddress = "https://fqdn:port/testsvc/" /> </baseaddresses> </host> <!-- service endpoints --> <!-- unless qualified, address relative base of operations address supplied above --> <endpoint address="" binding="wshttpbinding" bindingconfiguration="service_binding" contract="wcfservicelibrary1.iservice1"> <identity> <serviceprincipalname value="svc1/fqdn:port" /> </identity> </endpoint> <endpoint address="mex" binding="mexhttpsbinding" contract="imetadataexchange"/> </service> </services> <bindings> <wshttpbinding> <binding name="service_binding"> <security mode="transport"> <transport clientcredentialtype="windows" /> </security> </binding> </wshttpbinding> </bindings> <behaviors> <servicebehaviors> <behavior> <servicemetadata httpsgetenabled="true"/> <servicedebug includeexceptiondetailinfaults="false" /> </behavior> </servicebehaviors> </behaviors> </system.servicemodel> </configuration>

client side config file:

<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedruntime version="v4.0" sku=".netframework,version=v4.5" /> </startup> <system.servicemodel> <bindings> <wshttpbinding> <binding name="wshttpbinding_iservice1"> <security mode="transport" /> </binding> </wshttpbinding> </bindings> <client> <endpoint address="https://fqdn:port/testsvc/" binding="wshttpbinding" bindingconfiguration="wshttpbinding_iservice1" contract="servicereference1.iservice1" name="wshttpbinding_iservice1"> <identity> <serviceprincipalname value="ismine/nhdc1.nhandal2.local:8730" /> </identity> </endpoint> </client> </system.servicemodel> </configuration>

c# wcf authentication kerberos spn

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -