Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

setspn u0096A HTTP/Abc.co.nz "username" FAILED......

Former Member
0 Kudos

Hi

Just wondering is anyone experience this when generating the setspn command below we get following error.

If anyone seen this before and can advise what the issue would be much appreciated.

Thanks

C:\>setspn -A HTTP/eplkk4.abc.co.nz SID_SAP

Usage: setspn [switches data] computername

Where "computername" can be the name or domain\name

Switches:

-R = reset HOST ServicePrincipalName

Usage: setspn -R computername

-A = add arbitrary SPN

Usage: setspn -A SPN computername

-D = delete arbitrary SPN

Usage: setspn -D SPN computername

-L = list registered SPNs

Usage: setspn [-L] computername

Examples:

setspn -R daserver1

It will register SPN "HOST/daserver1" and "HOST/{DNS of daserver1}"

setspn -A http/daserver daserver1

It will register SPN "http/daserver" for computer "daserver1"

setspn -D http/daserver daserver1

It will delete SPN "http/daserver" for computer "daserver1"

1 REPLY 1

Former Member
0 Kudos

Hello Susanto,

I think that you have to change the SAP_SID by the Active Directory account that you want to associate. It should be like:

setspn -A HTTP/hostname.domain.com ADDOMAIN\username

I hope that helps someone!

Cheers,

Andreu