4b03093 Print correct error messages for dp_err_to_string()

Authored and Committed by sgallagh 13 years ago
    Print correct error messages for dp_err_to_string()
    
    All errnum values passed into this function throughout the code
    are PAM error codes, but we were passing them through strerror()
    to print them, which is only meaningful for ERRNO error codes.
    
    This patch changes dp_err_to_string() to use pam_strerror() and
    renames it to dp_pam_err_to_string() for clarity.
    
    https://fedorahosted.org/sssd/ticket/636
    
        
file modified
+2 -1