http://www.perlmonks.org?node_id=1049805


in reply to Advice for saving a plaintext password for LDAP re-binds using StartTLS

It's been a while since I've done a lot of LDAP, but I think it would be possible to immediately rebind as that user once the login is successful. Hopefully at the time of successful login you still have the password available?

-Scott