summaryrefslogtreecommitdiffstats
path: root/API.txt
diff options
context:
space:
mode:
authorOndrej Hamada <ohamada@redhat.com>2012-01-07 20:17:25 +0100
committerAlexander Bokovoy <abokovoy@redhat.com>2012-01-09 08:49:10 +0200
commit0e037f24ce59752713d8291eae30403cb864c758 (patch)
tree816e0c3d3caafb91183b52b9d0a3e300186b9e9e /API.txt
parent2a00393712eb490b23604399ea8318b3b4cca118 (diff)
downloadfreeipa-0e037f24ce59752713d8291eae30403cb864c758.tar.gz
freeipa-0e037f24ce59752713d8291eae30403cb864c758.tar.xz
freeipa-0e037f24ce59752713d8291eae30403cb864c758.zip
HBAC test optional sourcehost option
New version of SSSD begins ignoring sourcehost value of HBAC rules by default. In order to match this behaviour the sourcehost option in hbactest is optional now, but the value of sourcehost is ignored in all rules. Every rule's sourcehost value is set to 'ALL' what turns sourchost value comparation off. If srchost option is used, warning is displayed to inform the user about changes. Text of plugin help was also updated. Also the unit tests for hbactest plugin were updated. Every test was doubled. The second ones test the plugin without sourcehost option. They are supposed to have the same result. https://fedorahosted.org/freeipa/ticket/2085
Diffstat (limited to 'API.txt')
-rw-r--r--API.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/API.txt b/API.txt
index aba3d8aa0..493d5a3ff 100644
--- a/API.txt
+++ b/API.txt
@@ -1455,9 +1455,9 @@ output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None)
output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None))
output: Output('value', <type 'unicode'>, None)
command: hbactest
-args: 0,8,5
+args: 0,8,6
option: Str('user', cli_name='user', primary_key=True)
-option: Str('sourcehost', cli_name='srchost')
+option: Str('sourcehost?', cli_name='srchost')
option: Str('targethost', cli_name='host')
option: Str('service', cli_name='service')
option: Str('rules*', cli_name='rules', csv=True)
@@ -1465,6 +1465,7 @@ option: Flag('nodetail?', autofill=True, cli_name='nodetail', default=False)
option: Flag('enabled?', autofill=True, cli_name='enabled', default=False)
option: Flag('disabled?', autofill=True, cli_name='disabled', default=False)
output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None)
+output: Output('warning', (<type 'list'>, <type 'tuple'>, <type 'NoneType'>), None)
output: Output('matched', (<type 'list'>, <type 'tuple'>, <type 'NoneType'>), None)
output: Output('notmatched', (<type 'list'>, <type 'tuple'>, <type 'NoneType'>), None)
output: Output('error', (<type 'list'>, <type 'tuple'>, <type 'NoneType'>), None)