diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2014-06-19 12:28:32 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-06-26 16:10:16 +0200 |
commit | 2767fb584a4240bf3742144fd6d362053b76dadd (patch) | |
tree | 04b0edbef3ab49e735df06524951ce940a258604 /API.txt | |
parent | 14b38b7704778b4000a7b1b31d78fbb6b45e647b (diff) | |
download | freeipa-2767fb584a4240bf3742144fd6d362053b76dadd.tar.gz freeipa-2767fb584a4240bf3742144fd6d362053b76dadd.tar.xz freeipa-2767fb584a4240bf3742144fd6d362053b76dadd.zip |
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 <abokovoy@redhat.com>
Diffstat (limited to 'API.txt')
-rw-r--r-- | API.txt | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2326,6 +2326,18 @@ option: Str('version?', exclude='webui') output: Output('completed', <type 'int'>, None) output: Output('failed', <type 'dict'>, None) output: Entry('result', <type 'dict'>, 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) |