Red Hat Bugzilla – Bug 836385
slapi_ldap_bind() doesn't check bind results
Last modified: 2012-07-02 16:14:38 EDT
This bug is created as a clone of upstream ticket:
The slapi_ldap_bind() function does not properly check the bind operation results. It currently only calls ldap_parse_result() if returnedctrls was passed in by the caller. We need to call ldap_parse_result() even if we don't need to get the returned controls, as it's how we get the LDAP response code for the BIND operation. With the current code, slapi_ldap_bind() will end up returning 0 for a failed BIND operation if returnedctrls is not passed in.
*** This bug has been marked as a duplicate of bug 836386 ***