dc49e07 IPA: Include SYSDB_OBJECTCATEGORY, not OBJECTCLASS in cache search results

1 file Authored by jhrozek 6 years ago, Committed by lslebodn 6 years ago,
    IPA: Include SYSDB_OBJECTCATEGORY, not OBJECTCLASS in cache search results
    
    The function get_object_from_cache() returns an ldb_message that is
    passed to apply_subdomain_homedir() which expects SYSDB_OBJECTCATEGORY
    to be present in the message, otherwise it errors out.
    
    However, get_object_from_cache() was reading only SYSDB_OBJECTCLASS.
    
    This patch changes get_object_from_cache() to ready
    SYSDB_OBJECTCATEGORY.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3599
    
    Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>