aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-01-19 19:51:01 +0100
committerAlex Auvolat <alex@adnab.me>2020-01-19 19:51:01 +0100
commit19854a1ef443516c08a752ddb1f7118572cc4d09 (patch)
tree6dc1f0e2aef1635b3718c7854b3072378767cd97
parent5ae18daff7356a26b0d6195b25435126ffd46d5e (diff)
downloadbottin-19854a1ef443516c08a752ddb1f7118572cc4d09.tar.gz
bottin-19854a1ef443516c08a752ddb1f7118572cc4d09.zip
Use correct return code for unimplemented filters
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index a05bda8..fd0c279 100644
--- a/main.go
+++ b/main.go
@@ -360,7 +360,7 @@ func (server *Server) handleSearchInternal(state *State, w ldap.ResponseWriter,
// TODO filter out if no permission to read this
matched, err := applyFilter(entry, r.Filter())
if err != nil {
- return ldap.LDAPResultOperationsError, err
+ return ldap.LDAPResultUnwillingToPerform, err
}
if !matched {
continue