0680a45 Ticket #47799 - Any negative LDAP error code number reported as Illegal error by ldclt.

Authored and Committed by nhosoi 4 years ago
    Ticket #47799 - Any negative LDAP error code number reported as Illegal error by ldclt.
    
    Description: ldclt was implemented with mozldap, which did not expect
    negative erorr codes, but openldap does.  E.g., LDAP_FILTER_ERROR (-7)
    This patch prepares a negativeError array for the negative error codes.
    Example:
      $ ldclt [...] -e esearch -e random -b "<basedn>" -f "<bad filter="">" -v
      Filter             = "<bad filter="">"
       ...
      ldclt[16030]: T000: Cannot ldap_search(), error=-7 (Bad search filter) -- NULL result
       ...
      ldclt[16030]: Global error -7 (Bad search filter) occurs  1001 times
      ldclt[16030]: Exit status 3 - Max errors reached.
    
    https://fedorahosted.org/389/ticket/47799
    
    Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
    
    (cherry picked from commit 71be5faaa478593bb056887410ca8e48e05b2fe4)