Skip to content

Commit

Permalink
Merge pull request #99 from grierj/fix-logging
Browse files Browse the repository at this point in the history
Remove per-request message when not checking OUs
  • Loading branch information
shlomi-noach committed Aug 25, 2015
2 parents db25681 + 8f8062a commit 6d17614
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/http/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ func Verify(r *nethttp.Request) error {
func VerifyOUs() martini.Handler {
return func(res nethttp.ResponseWriter, req *nethttp.Request, c martini.Context) {
if config.Config.UseMutualTLS {
log.Info("Verifying client OU")
log.Debug("Verifying client OU")
if err := Verify(req); err != nil {
nethttp.Error(res, err.Error(), nethttp.StatusUnauthorized)
}
} else {
log.Debug("Mutual TLS disabled, skipping OU check")
}
}
}
Expand Down

0 comments on commit 6d17614

Please sign in to comment.