Description of problem: 'ipa hbactest' shows result as 'False' for overidden trusted AD account despite of correct HBAC rule in place. Version-Release number of selected component (if applicable): RHEL 7.9 How reproducible: Always Steps to Reproduce: 1. Setup IPA-AD trust 2. Configure HBAC rule in IPA for trusted AD user (by assigning it to IPA POSIX group) 3. For trusted AD account, override primary group name & gidNumber. 4. On IPA client, run 'ipa hbactest' command to check access & it shows --- Access granted: False <---- --- 5. However, 'sssctl user-checks' shows success for the same trusted AD account. --- testing pam_acct_mgmt pam_acct_mgmt: Success <---- --- (Note that actual access to IPA client for trusted AD user still works fine based on the HBAC rule in place) Actual results: 'ipa hbactest' command shows incorrect result: --- Access granted: False --- Expected results: Ideally, 'ipa hbactest' command should show: --- Access granted: True ---