From 2767fb584a4240bf3742144fd6d362053b76dadd Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Thu, 19 Jun 2014 12:28:32 -0400 Subject: Add the otptoken-add-yubikey command This command behaves almost exactly like otptoken-add except: 1. The new token data is written directly to a YubiKey 2. The vendor/model/serial fields are populated from the YubiKey Reviewed-By: Alexander Bokovoy --- API.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'API.txt') diff --git a/API.txt b/API.txt index 7466930fb..a7d11b5b3 100644 --- a/API.txt +++ b/API.txt @@ -2326,6 +2326,18 @@ option: Str('version?', exclude='webui') output: Output('completed', , None) output: Output('failed', , None) output: Entry('result', , Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) +command: otptoken_add_yubikey +args: 1,8,1 +arg: Str('ipatokenuniqueid?', cli_name='id', primary_key=True) +option: Str('description?', cli_name='desc') +option: Bool('ipatokendisabled?', cli_name='disabled') +option: Str('ipatokennotafter?', cli_name='not_after') +option: Str('ipatokennotbefore?', cli_name='not_before') +option: IntEnum('ipatokenotpdigits?', autofill=True, cli_name='digits', default=6, values=(6, 8)) +option: Str('ipatokenowner?', cli_name='owner') +option: IntEnum('slot?', cli_name='slot', values=(1, 2)) +option: Str('version?', exclude='webui') +output: Output('result', None, None) command: otptoken_del args: 1,2,3 arg: Str('ipatokenuniqueid', attribute=True, cli_name='id', multivalue=True, primary_key=True, query=True, required=True) -- cgit