312defb Move sized_output_name() and sized_domain_name() into responder common code

Authored and Committed by jhrozek 6 years ago
    Move sized_output_name() and sized_domain_name() into responder common code
    
    These functions are used to format a name into a format that the user
    configured for output, including case sensitiveness, replacing
    whitespace and qualified format. They were used only in the NSS
    responder, which typically returns strings to the NSS client library and
    then the user.
    
    But it makes sense to just reuse the same code in the IFP responder as
    well, since it does essentially the same job.
    
    The patch also renames sized_member_name to sized_domain_name.
    Previously, the function was only used to format a group member, the IFP
    responder would use the same function to format a group the user is a
    member of.
    
    Related to:
        https://pagure.io/SSSD/sssd/issue/3268
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
    (cherry picked from commit 7c074ba2f923985ab0d4f9d6a5e01ff3f2f0a7a8)