diff options
author | Martin Kosek <mkosek@redhat.com> | 2013-02-13 17:12:57 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-02-14 08:38:11 +0100 |
commit | b8079f9ed4ba9632c77fa973aa2247a4d30434fa (patch) | |
tree | 03c5803d14b4a8b8d61527f2f0f527ba30242dda /ipalib/plugins/hbactest.py | |
parent | 85d16ad7de4cd52e349ee2a7c8ed9b0d72657d33 (diff) | |
download | freeipa-b8079f9ed4ba9632c77fa973aa2247a4d30434fa.tar.gz freeipa-b8079f9ed4ba9632c77fa973aa2247a4d30434fa.tar.xz freeipa-b8079f9ed4ba9632c77fa973aa2247a4d30434fa.zip |
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.
Diffstat (limited to 'ipalib/plugins/hbactest.py')
-rw-r--r-- | ipalib/plugins/hbactest.py | 46 |
1 files changed, 23 insertions, 23 deletions
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 |