diff options
author | Alex Auvolat <alex@adnab.me> | 2020-01-28 00:52:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-01-28 00:52:30 +0100 |
commit | e1f5c31402df97594116267b4f918582f2496ee0 (patch) | |
tree | cf87b238f6680ea85ffa8d9d6c5107b096ff5056 /read.go | |
parent | 3edaad9317db280db903a18ec85a70e6c32cabf9 (diff) | |
download | bottin-e1f5c31402df97594116267b4f918582f2496ee0.tar.gz bottin-e1f5c31402df97594116267b4f918582f2496ee0.zip |
More logs
Diffstat (limited to 'read.go')
-rw-r--r-- | read.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)) } |