Use correct return code for unimplemented filters

This commit is contained in:
Alex 2020-01-19 19:51:01 +01:00
parent 5ae18daff7
commit 19854a1ef4

View file

@ -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