Compare commits
1 commit
main
...
fix/multiv
Author | SHA1 | Date | |
---|---|---|---|
|
d28e669676 |
1 changed files with 3 additions and 2 deletions
5
read.go
5
read.go
|
@ -213,10 +213,11 @@ func (server *Server) handleSearchInternal(state *State, w ldap.ResponseWriter,
|
|||
continue
|
||||
}
|
||||
// Send result
|
||||
resultVals := []message.AttributeValue{}
|
||||
for _, v := range val {
|
||||
e.AddAttribute(message.AttributeDescription(attr),
|
||||
message.AttributeValue(v))
|
||||
resultVals = append(resultVals, message.AttributeValue(v))
|
||||
}
|
||||
e.AddAttribute(message.AttributeDescription(attr), resultVals...)
|
||||
}
|
||||
w.Write(e)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue