aboutsummaryrefslogtreecommitdiff
path: root/read.go
diff options
context:
space:
mode:
Diffstat (limited to 'read.go')
-rw-r--r--read.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/read.go b/read.go
index 29ef9ed..15a2a0b 100644
--- a/read.go
+++ b/read.go
@@ -73,6 +73,9 @@ func (server *Server) handleSearch(s ldap.UserState, w ldap.ResponseWriter, m *l
if err != nil {
res.SetDiagnosticMessage(err.Error())
}
+ if code != ldap.LDAPResultSuccess {
+ server.logger.Printf("Failed to do search %#v (%s)", r, err)
+ }
w.Write(message.SearchResultDone(res))
}