From 19854a1ef443516c08a752ddb1f7118572cc4d09 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 19 Jan 2020 19:51:01 +0100 Subject: Use correct return code for unimplemented filters --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') 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 -- cgit v1.2.3