]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
totp: Update raddb/mods-available/totp
authorJorge Pereira <jpereira@freeradius.org>
Thu, 14 Sep 2023 01:03:18 +0000 (22:03 -0300)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 27 Sep 2023 13:14:55 +0000 (09:14 -0400)
* Update mods-available/totp to new asciidoc markup
* Fix the attributes

raddb/mods-available/totp

index 43d2f57afa428d6b242e5d54104f04a648eda6b1..87acd56aebe9911192fd59ffbb363fd28fe1d136 100644 (file)
@@ -2,35 +2,38 @@
 #
 #  $Id$
 
+########################################################################
 #
-#  Time-based One-Time Passwords (TOTP)
+#  Time-based One-Time Passwords (TOTP)
 #
-#  Defined in RFC 6238, and used in Google Authenticator.
+#  Defined in `rfc6238`, and used in Google Authenticator.
 #
 #  This module can only be used in the "authenticate" section.
 #
 #  The Base32-encoded secret should be placed into:
 #
-#      &control:TOTP-Secret
+#      `&control.TOTP.Secret`
 #
 #  Any "bare" key should be placed into:
 #
-#      &control:TOTP-Key
+#      `&control.TOTP.Key`
 #
-#  If TOTP-Key exists, then it will be used instead of TOTP-Secret.
+#  If `TOTP.Key` exists, then it will be used instead of `TOTP.Secret`.
 #
 #  The TOTP password entered by the user should be placed into:
 #
-#      &request:TOTP-Password
+#      `&request.TOTP.From-User`
 #
-#  The module will return "ok" if the passwords match, and "fail"
+#  The module will return `ok` if the passwords match, and `fail`
 #  if the passwords do not match.
 #
-#  Note that this module will NOT interact with Google.  The module is
+#  NOTE: The crypto algorithms are HmacSHA1, HmacSHA256 and HmacSHA512.
+#
+#  NOTE: This module will *NOT* interact with Google. The module is
 #  intended to be used where the local administrator knows the TOTP
 #  secret key, and user has an authenticator app on their phone.
 #
-#  Note also that while you can use the Google "chart" APIs to
+#  NOTE: Also that while you can use the Google "chart" APIs to
 #  generate a QR code, doing this will give the secret to Google!
 #
 #  Administrators should instead install a tool such as "qrcode"
 #      https://linux.die.net/man/1/qrencode
 #
 #  and then run that locally to get an image.
-#  
 #
-#  The module takes no configuration items.
+
+#
+#  ## Configuration Settings
+#
+#  totp { ... }::
 #
 totp {
        #
-       #  Default time step between time changes
+       #  time_step:: Default time step between time changes.
        #
        time_step = 30
 
        #
-       #  Length of the one-time password.
+       #  otp_length:: Length of the one-time password.
        #
        #  Must be 6 or 8
        #
-       otp_length = 8
+       otp_length = 6
 
        #
-       #  How many steps backward in time we look for a matching OTP
+       #  lookback_steps:: How many steps backward in time we look for a matching OTP.
        #
        lookback_steps = 1
 
        #
-       #  Time delta between steps.
+       #  lookback_interval:: Time delta between steps.
        #
-       #  Cannot be larger than time_step
+       #  Cannot be larger than `time_step`
        #
        lookback_interval = 30
 }