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

1 file Authored by mreynolds 11 years ago, Committed by rmeggins 11 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!)
    (cherry picked from commit f43ed1ddaa9bcbf1308b2ecbe9044e2058776d2c)
    
        
file modified
+22 -15