aboutsummaryrefslogtreecommitdiff
path: root/read.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-01-28 00:52:30 +0100
committerAlex Auvolat <alex@adnab.me>2020-01-28 00:52:30 +0100
commite1f5c31402df97594116267b4f918582f2496ee0 (patch)
treecf87b238f6680ea85ffa8d9d6c5107b096ff5056 /read.go
parent3edaad9317db280db903a18ec85a70e6c32cabf9 (diff)
downloadbottin-e1f5c31402df97594116267b4f918582f2496ee0.tar.gz
bottin-e1f5c31402df97594116267b4f918582f2496ee0.zip
More logs
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))
}