Update go-ldap with our patch for control packets. (#3670)

Fixes #3656
Fixes #3625
Fixes #3402
This commit is contained in:
Jeff Mitchell
2017-12-09 10:45:03 -05:00
committed by GitHub
parent c48636d0b2
commit 3386e8d770
4 changed files with 8 additions and 6 deletions

View File

@@ -40,7 +40,9 @@ func (bindRequest *SimpleBindRequest) encode() *ber.Packet {
request.AppendChild(ber.NewString(ber.ClassUniversal, ber.TypePrimitive, ber.TagOctetString, bindRequest.Username, "User Name"))
request.AppendChild(ber.NewString(ber.ClassContext, ber.TypePrimitive, 0, bindRequest.Password, "Password"))
request.AppendChild(encodeControls(bindRequest.Controls))
if len(bindRequest.Controls) > 0 {
request.AppendChild(encodeControls(bindRequest.Controls))
}
return request
}