Skip to content

Commit

Permalink
mangle/ipa: all hbac access supersedes everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Oct 16, 2024
1 parent a6f4632 commit 448b8c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mangle/ipa/ipaauditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,14 @@ def user_deep_list(api, user, groups):
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):
Expand Down

0 comments on commit 448b8c0

Please sign in to comment.