76d0f90 pysss_nss_idmap: return same type as it is in module constants

Authored and Committed by lslebodn 2 years ago
    pysss_nss_idmap: return same type as it is in module constants
    
    The python module pysss_nss_idmap contains few module constants
    which should be used (based on python documentation) for checking
    type of results.
    
    e.g.
        getsidbyid(...)
            getsidbyid(id or list/tuple of id) -> dict(id => dict(results))
            Returns a dictionary with a dictionary of results for each given
            POSIX ID. The result dictionary contains the SID and the type of the
            object which can be accessed with the key constants SID_KEY and
            TYPE_KEY, respectively.
    
    However, type of module constant and type of returned key had different type
    with python3 due to different handling of strings. This patch unifies it
    to string. The same as it is in python2.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3491
    
    Reviewed-by: Sumit Bose <sbose@redhat.com>
    (cherry picked from commit cc4d6435ef49738a02ddfc6072f1197d7f8f7319)
    
        
file modified
+6 -6