From b8079f9ed4ba9632c77fa973aa2247a4d30434fa Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 13 Feb 2013 17:12:57 +0100 Subject: Fix hbachelp examples formatting Add correct labeling of matched/nonmatched output attributes. Also make sure that "\" is not interpreted as newline escape character but really as a "\" character. --- ipalib/plugins/hbactest.py | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'ipalib') diff --git a/ipalib/plugins/hbactest.py b/ipalib/plugins/hbactest.py index 3e2c69eb0..953b29858 100644 --- a/ipalib/plugins/hbactest.py +++ b/ipalib/plugins/hbactest.py @@ -77,10 +77,10 @@ EXAMPLES: -------------------- Access granted: True -------------------- - notmatched: my-second-rule - notmatched: my-third-rule - notmatched: myrule - matched: allow_all + Not matched rules: my-second-rule + Not matched rules: my-third-rule + Not matched rules: myrule + Matched rules: allow_all 2. Disable detailed summary of how rules were applied: $ ipa hbactest --user=a1a --host=bar --service=sshd --nodetail @@ -89,53 +89,53 @@ EXAMPLES: -------------------- 3. Test explicitly specified HBAC rules: - $ ipa hbactest --user=a1a --host=bar --service=sshd \ + $ ipa hbactest --user=a1a --host=bar --service=sshd \\ --rules=my-second-rule,myrule --------------------- Access granted: False --------------------- - notmatched: my-second-rule - notmatched: myrule + Not matched rules: my-second-rule + Not matched rules: myrule 4. Use all enabled HBAC rules in IPA database + explicitly specified rules: - $ ipa hbactest --user=a1a --host=bar --service=sshd \ + $ ipa hbactest --user=a1a --host=bar --service=sshd \\ --rules=my-second-rule,myrule --enabled -------------------- Access granted: True -------------------- - notmatched: my-second-rule - notmatched: my-third-rule - notmatched: myrule - matched: allow_all + Not matched rules: my-second-rule + Not matched rules: my-third-rule + Not matched rules: myrule + Matched rules: allow_all 5. Test all disabled HBAC rules in IPA database: $ ipa hbactest --user=a1a --host=bar --service=sshd --disabled --------------------- Access granted: False --------------------- - notmatched: new-rule + Not matched rules: new-rule 6. Test all disabled HBAC rules in IPA database + explicitly specified rules: - $ ipa hbactest --user=a1a --host=bar --service=sshd \ + $ ipa hbactest --user=a1a --host=bar --service=sshd \\ --rules=my-second-rule,myrule --disabled --------------------- Access granted: False --------------------- - notmatched: my-second-rule - notmatched: my-third-rule - notmatched: myrule + Not matched rules: my-second-rule + Not matched rules: my-third-rule + Not matched rules: myrule 7. Test all (enabled and disabled) HBAC rules in IPA database: - $ ipa hbactest --user=a1a --host=bar --service=sshd \ + $ ipa hbactest --user=a1a --host=bar --service=sshd \\ --enabled --disabled -------------------- Access granted: True -------------------- - notmatched: my-second-rule - notmatched: my-third-rule - notmatched: myrule - notmatched: new-rule - matched: allow_all + Not matched rules: my-second-rule + Not matched rules: my-third-rule + Not matched rules: myrule + Not matched rules: new-rule + Matched rules: allow_all HBACTEST AND TRUSTED DOMAINS -- cgit