-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11371 from enj/enj/f/sspi
Implement SSPI Support on Windows (oc Kerberos)
- Loading branch information
Showing
33 changed files
with
3,618 additions
and
63 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package tokencmd | ||
|
||
import ( | ||
"errors" | ||
"net/url" | ||
) | ||
|
||
func getServiceName(sep rune, requestURL string) (string, error) { | ||
u, err := url.Parse(requestURL) | ||
if err != nil { | ||
return "", err | ||
} | ||
|
||
return "HTTP" + string(sep) + u.Hostname(), nil | ||
} | ||
|
||
type negotiateUnsupported struct { | ||
error | ||
} | ||
|
||
func newUnsupportedNegotiator(name string) Negotiator { | ||
return &negotiateUnsupported{error: errors.New(name + " support is not enabled")} | ||
} | ||
|
||
func (n *negotiateUnsupported) Load() error { | ||
return n | ||
} | ||
|
||
func (n *negotiateUnsupported) InitSecContext(requestURL string, challengeToken []byte) ([]byte, error) { | ||
return nil, n | ||
} | ||
|
||
func (*negotiateUnsupported) IsComplete() bool { | ||
return false | ||
} | ||
|
||
func (n *negotiateUnsupported) Release() error { | ||
return n | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.