Use correct return code for unimplemented filters
This commit is contained in:
parent
5ae18daff7
commit
19854a1ef4
1 changed files with 1 additions and 1 deletions
2
main.go
2
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
|
||||
|
|
Loading…
Reference in a new issue