ee16491 IPA_RULES_COMMON: Introduce ipa_common_get_hostgroupname()

5 files Authored by fidencio 4 years ago, Committed by jhrozek 4 years ago,
    IPA_RULES_COMMON: Introduce ipa_common_get_hostgroupname()
    
    By moving the get_ipa_hostgroupname() method from ipa_hbac_hosts.[ch] to
    ipa_rules_common.[ch] it can be used by both HBAC and, in the future,
    for new backend modules.
    
    The method got renamed to ipa_common_get_hostgroupname() and some coding
    style changes have been made in order to match with what SSSD follows.
    
    Related:
    https://pagure.io/SSSD/sssd/issue/2995
    
    Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>