|
@@ -68,8 +68,8 @@ tkt, err := cl.GetServiceTicket("HTTP/host.test.gokrb5")
|
|
|
Create the HTTP request object and then call the client's SetSPNEGOHeader method passing the Service Principal Name (SPN)
|
|
Create the HTTP request object and then call the client's SetSPNEGOHeader method passing the Service Principal Name (SPN)
|
|
|
```go
|
|
```go
|
|
|
r, _ := http.NewRequest("GET", "http://host.test.gokrb5/index.html", nil)
|
|
r, _ := http.NewRequest("GET", "http://host.test.gokrb5/index.html", nil)
|
|
|
-cl.SetSPNEGOHeader(r)
|
|
|
|
|
-HTTPResp, err := http.DefaultClient.Do(r, "")
|
|
|
|
|
|
|
+cl.SetSPNEGOHeader(r, "")
|
|
|
|
|
+HTTPResp, err := http.DefaultClient.Do(r)
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### Kerberos Web Service
|
|
### Kerberos Web Service
|