diff options
author | Alex Auvolat <alex@adnab.me> | 2020-01-19 19:51:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-01-19 19:51:01 +0100 |
commit | 19854a1ef443516c08a752ddb1f7118572cc4d09 (patch) | |
tree | 6dc1f0e2aef1635b3718c7854b3072378767cd97 | |
parent | 5ae18daff7356a26b0d6195b25435126ffd46d5e (diff) | |
download | bottin-19854a1ef443516c08a752ddb1f7118572cc4d09.tar.gz bottin-19854a1ef443516c08a752ddb1f7118572cc4d09.zip |
Use correct return code for unimplemented filters
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |