summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2014-12-02 14:43:27 -0500
committerPetr Vobornik <pvoborni@redhat.com>2014-12-05 13:44:51 +0100
commitf5ae902eb5c391bd6150c99d5b3316be937aa459 (patch)
tree25288fb72e45594ca0621ffc5eeab2e0ed9cfbc5
parent3013385ca4a28a4f203fae6dbef34321720d8879 (diff)
downloadfreeipa-f5ae902eb5c391bd6150c99d5b3316be937aa459.tar.gz
freeipa-f5ae902eb5c391bd6150c99d5b3316be937aa459.tar.xz
freeipa-f5ae902eb5c391bd6150c99d5b3316be937aa459.zip
Create an OTP help topic
This allows the various OTP related commands to be grouped together in the IPA CLI documentation. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
-rw-r--r--ipalib/plugins/otpconfig.py2
-rw-r--r--ipalib/plugins/otptoken.py2
-rw-r--r--ipalib/plugins/otptoken_yubikey.py3
3 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/plugins/otpconfig.py b/ipalib/plugins/otpconfig.py
index 440440dc9..b69bfb27e 100644
--- a/ipalib/plugins/otpconfig.py
+++ b/ipalib/plugins/otpconfig.py
@@ -49,6 +49,8 @@ EXAMPLES:
register = Registry()
+topic = ('otp', _('One time password commands'))
+
@register()
class otpconfig(LDAPObject):
diff --git a/ipalib/plugins/otptoken.py b/ipalib/plugins/otptoken.py
index f0850854f..41a7f1087 100644
--- a/ipalib/plugins/otptoken.py
+++ b/ipalib/plugins/otptoken.py
@@ -61,6 +61,8 @@ EXAMPLES:
register = Registry()
+topic = ('otp', _('One time password commands'))
+
TOKEN_TYPES = {
u'totp': ['ipatokentotpclockoffset', 'ipatokentotptimestep'],
u'hotp': ['ipatokenhotpcounter']
diff --git a/ipalib/plugins/otptoken_yubikey.py b/ipalib/plugins/otptoken_yubikey.py
index 4c2594182..58fc18308 100644
--- a/ipalib/plugins/otptoken_yubikey.py
+++ b/ipalib/plugins/otptoken_yubikey.py
@@ -44,6 +44,9 @@ EXAMPLES:
register = Registry()
+topic = ('otp', _('One time password commands'))
+
+
@register()
class otptoken_add_yubikey(Command):
__doc__ = _('Add a new YubiKey OTP token.')