summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2013-02-13 17:12:57 +0100
committerMartin Kosek <mkosek@redhat.com>2013-02-14 08:39:34 +0100
commit2f52d04f1c111b350e70f3f2b936630126e63684 (patch)
tree2122f586359a9740c7757b2c6543d5618e0a3fdd
parent0946e6f5ff5747c444ebdf33569e41ed42bc7f5a (diff)
downloadfreeipa.git-2f52d04f1c111b350e70f3f2b936630126e63684.tar.gz
freeipa.git-2f52d04f1c111b350e70f3f2b936630126e63684.tar.xz
freeipa.git-2f52d04f1c111b350e70f3f2b936630126e63684.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.
-rw-r--r--ipalib/plugins/hbactest.py46
1 files changed, 23 insertions, 23 deletions
diff --git a/ipalib/plugins/hbactest.py b/ipalib/plugins/hbactest.py
index 3e2c69eb..953b2985 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