I developed a webservice (hosted with OWIN not IIS) where my users have to authenticate with their domain credentials. Currently it's using NTLM and everything is working fine but I want to switch to Kerberos, AFAIK I need to add a SPN to AD to make this work. So I tried the following:
- adding HTTP/myserver.myDomain.local to host manually in AD users and computers GUI
- Setspn -S HTTP/myserver.myDomain.local myDomain\ServiceUser (this gave me an duplicate SPN Error in first, so I deleted SPN from Step 1)
- In one of the MS docs I found Setspn -A HTTP/myServer.myDomain.local myDomain\ServiceUser (this gave me an duplicate SPN Error in first, so I deleted SPN from Step 2)
In all cases I get an HTTP401 when trying it in my browser. My URL is https://myserver.mydomain.local:9000/api/listapps
So can anyone please tell me what is the right SPN and why? I tried to understand the documentation from Microsoft but I don't understand in which case you use which parameters
thank you