Skip to content

Commit 448b8c0

Browse files
committed
mangle/ipa: all hbac access supersedes everything else
1 parent a6f4632 commit 448b8c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mangle/ipa/ipaauditor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,14 @@ def user_deep_list(api, user, groups):
500500
new_hbac_hosts = sorted(set(hbac_hosts))
501501
print('User Has Access To These Hosts')
502502
print('------------------------------------------')
503-
for hhost in new_hbac_hosts:
504-
print(hhost)
505503
if len(hbac_rule_all_hosts) > 0:
506504
print('!! Notice: User has access to ALL hosts from the following rules:')
507505
hbac_rule_all_hosts = sorted(set(hbac_rule_all_hosts))
508506
for allrule in hbac_rule_all_hosts:
509507
print(allrule)
508+
else:
509+
for hhost in new_hbac_hosts:
510+
print(hhost)
510511

511512
@staticmethod
512513
def group_deep_list(api, group):

0 commit comments

Comments
 (0)