Ticket 399 - slapi_ldap_bind() doesn't check bind results
Bug Description: There are two issues here. One, we were not calling ldap_parse_result()
for SIMPLE binds. Two, we were overwriting the error code, with the
function result code.
Fix Description: Always call ldap_parse_result, and use a separate error code variable to
preserve the actual result code from the bind operation.
https://fedorahosted.org/389/ticket/399