aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/sspi_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/sspi_windows.go')
-rw-r--r--services/auth/sspi_windows.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/services/auth/sspi_windows.go b/services/auth/sspi_windows.go
index 3a8c8bed44..63e70e61d4 100644
--- a/services/auth/sspi_windows.go
+++ b/services/auth/sspi_windows.go
@@ -244,13 +244,3 @@ func sanitizeUsername(username string, cfg *sspi.Source) string {
username = replaceSeparators(username, cfg)
return username
}
-
-// specialInit registers the SSPI auth method as the last method in the list.
-// The SSPI plugin is expected to be executed last, as it returns 401 status code if negotiation
-// fails (or if negotiation should continue), which would prevent other authentication methods
-// to execute at all.
-func specialInit() {
- if auth.IsSSPIEnabled() {
- Register(&SSPI{})
- }
-}