Browse Source

ldap: log two non-errors on Trace level (#5804)

Marco van Zwetselaar 5 years ago
parent
commit
cab2b96871
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/auth/ldap/ldap.go

+ 2 - 2
pkg/auth/ldap/ldap.go

@@ -269,7 +269,7 @@ func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, str
 			log.Error(2, "LDAP: Group search failed: %v", err)
 			return "", "", "", "", false, false
 		} else if len(srg.Entries) < 1 {
-			log.Error(2, "LDAP: Group search failed: 0 entries")
+			log.Trace("LDAP: Group search returned no entries")
 			return "", "", "", "", false, false
 		}
 
@@ -310,7 +310,7 @@ func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, str
 		if err != nil {
 			log.Error(2, "LDAP: Admin search failed: %v", err)
 		} else if len(sr.Entries) < 1 {
-			log.Error(2, "LDAP: Admin search failed: 0 entries")
+			log.Trace("LDAP: Admin search returned no entries")
 		} else {
 			isAdmin = true
 		}