aboutsummaryrefslogtreecommitdiff
path: root/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'api.go')
-rw-r--r--api.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/api.go b/api.go
index 1ddb4ea..6bff15d 100644
--- a/api.go
+++ b/api.go
@@ -30,8 +30,7 @@ func checkLoginAPI(w http.ResponseWriter, r *http.Request) (*LoginStatus, error)
l := ldapOpen(w)
if l == nil {
- log.Println(l)
- http.Error(w, "Internal server error", http.StatusInternalServerError)
+ log.Println("Unable to open LDAP connection")
return nil, errors.New("Unable to open LDAP connection")
}
@@ -154,7 +153,7 @@ func handleAPIGarageBucket(w http.ResponseWriter, r *http.Request) {
func buildBucketRequest(w http.ResponseWriter, r *http.Request) (*BucketRequest, error) {
_, s3key, err := checkLoginAndS3API(w, r)
if err != nil {
- http.Error(w, "Unable to connect on LDAP", http.StatusUnauthorized)
+ //http.Error(w, "Unable to connect on LDAP", http.StatusUnauthorized)
return nil, err
}