f43ed1d Ticket 399 - slapi_ldap_bind() doesn't check bind results

Authored and Committed by mreynolds 7 years ago
    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
    
    Reviewed by: nhosoi(Thanks Noriko!)
    
        
file modified
+22 -15