in reply to Re^2: LDAP Authentication
in thread LDAP Authentication

Your first "bind" operation with the 'search-bind' account may cause the second bind-attempt to be a no-op.(Speculation)

Try either using a "new" ldap object, or doing " $ldap->unbind;" before authenticating the user.

            "XML is like violence: if it doesn't solve your problem, use more."