mangle/ipa: all hbac access supersedes everything else

This commit is contained in:
Louis Abel 2024-10-16 10:17:09 -07:00
parent a6f4632d66
commit 448b8c035b
Signed by untrusted user: label
GPG Key ID: 2A6975660E424560

View File

@ -500,13 +500,14 @@ class IPAAudit:
new_hbac_hosts = sorted(set(hbac_hosts))
print('User Has Access To These Hosts')
print('------------------------------------------')
for hhost in new_hbac_hosts:
print(hhost)
if len(hbac_rule_all_hosts) > 0:
print('!! Notice: User has access to ALL hosts from the following rules:')
hbac_rule_all_hosts = sorted(set(hbac_rule_all_hosts))
for allrule in hbac_rule_all_hosts:
print(allrule)
else:
for hhost in new_hbac_hosts:
print(hhost)
@staticmethod
def group_deep_list(api, group):