vjeantet / ldapserver

Package ldapserver implements LDAP Server
MIT License
249 stars 93 forks source link

Quirky bind authentication workaround #34

Open Apehaenger opened 3 years ago

Apehaenger commented 3 years ago

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.