I had the same problem like gojuukaze in issue #29.
I'm pretty sure that we're simply not smart enough to understand how to save the state between the Bind handle and a possible search handle, but to get my actual problem solved I worked around via this "client.Authenticated" member.
With this I'm able to save the bind result within my Bind handler, for later usage within my Search handler.
For sure, this is more or less dirty but may be someone can give us an advice how to make it better.
I had the same problem like gojuukaze in issue #29.
I'm pretty sure that we're simply not smart enough to understand how to save the state between the Bind handle and a possible search handle, but to get my actual problem solved I worked around via this "client.Authenticated" member. With this I'm able to save the bind result within my Bind handler, for later usage within my Search handler.
For sure, this is more or less dirty but may be someone can give us an advice how to make it better.