in reply to Perl and ldap

Your bind is failing. The resultCode of 32 indicates no such object. I expect the DN you are attempting to authenticate as is not found.

Using Net::LDAP to access and update LDAP directories has examples and explanations that might help you.