Browse Source

Update authenticator.go

Hakan Carlsson 7 years ago
parent
commit
827aec80d5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      service/authenticator.go

+ 4 - 4
service/authenticator.go

@@ -81,10 +81,10 @@ func (c *Config) Authenticate(neg, addr string) (i goidentity.Identity, ok bool,
 	}
 	}
 	var krb5Found bool
 	var krb5Found bool
 	for _, t := range spnego.NegTokenInit.MechTypes {
 	for _, t := range spnego.NegTokenInit.MechTypes {
- 	   if t.Equal(gssapi.MechTypeOIDKRB5) {
-        	krb5Found = true
-        	break
-    	   }
+		if t.Equal(gssapi.MechTypeOIDKRB5) {
+			krb5Found = true
+			break
+    	   	}
 	}
 	}
         if !krb5Found {
         if !krb5Found {
                 err = errors.New("SPNEGO OID of MechToken is not of type KRB5")
                 err = errors.New("SPNEGO OID of MechToken is not of type KRB5")