go-ldap icon indicating copy to clipboard operation
go-ldap copied to clipboard

Not handling ApplicationAbandonRequest

Open shellster opened this issue 5 years ago • 0 comments

I'll update this with more details, but basically the server isn't catching ApplicationAbandonRequest's.
To "fix" this issue, the following patch can be applied to ldap/server.go:

225a226
> 	case ApplicationAbandonRequest:

So now the code looks like this:

// return an error when the client connection should be closed
func (cli *srvClient) processRequest(msgID int, pkt *Packet) error {
        var res Response
        switch pkt.Tag {
        default:
                pkt.Format(os.Stdout)
                return ErrUnsupportedRequestTag(pkt.Tag)
        case ApplicationAbandonRequest:
        case ApplicationUnbindRequest:
                return io.EOF
...

shellster avatar Sep 25 '20 20:09 shellster