forked from Deuxfleurs/bottin
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
|
// TODO filter out if no permission to read this
|
||||||
matched, err := applyFilter(entry, r.Filter())
|
matched, err := applyFilter(entry, r.Filter())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ldap.LDAPResultOperationsError, err
|
return ldap.LDAPResultUnwillingToPerform, err
|
||||||
}
|
}
|
||||||
if !matched {
|
if !matched {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue