summaryrefslogtreecommitdiffstats
path: root/API.txt
diff options
context:
space:
mode:
authorOndrej Hamada <ohamada@redhat.com>2012-01-07 20:17:25 +0100
committerSimo Sorce <ssorce@redhat.com>2012-01-11 12:04:22 -0500
commit3dc5be6465e29c4ce73a966678d65b7a4a3d77ff (patch)
treea0236832080067d259674090dc2f558c8bd3cd6f /API.txt
parent04d8e76a0aee3ed3ee590582eb4c25569e00d8f6 (diff)
downloadfreeipa.git-3dc5be6465e29c4ce73a966678d65b7a4a3d77ff.tar.gz
freeipa.git-3dc5be6465e29c4ce73a966678d65b7a4a3d77ff.tar.xz
freeipa.git-3dc5be6465e29c4ce73a966678d65b7a4a3d77ff.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 aba3d8aa..493d5a3f 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)