From 448b8c035b6d18d2de0ac5b312a704be7213b9a2 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 16 Oct 2024 10:17:09 -0700 Subject: [PATCH] mangle/ipa: all hbac access supersedes everything else --- mangle/ipa/ipaauditor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mangle/ipa/ipaauditor.py b/mangle/ipa/ipaauditor.py index c8349cc..79a7794 100644 --- a/mangle/ipa/ipaauditor.py +++ b/mangle/ipa/ipaauditor.py @@ -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):