]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Update kadmin set_string document 63/head
authorZhanna Tsitkov <tsitkova@mit.edu>
Mon, 24 Feb 2014 19:17:43 +0000 (14:17 -0500)
committerZhanna Tsitkov <tsitkova@mit.edu>
Wed, 26 Feb 2014 16:54:20 +0000 (11:54 -0500)
Added 'otp' as an acceptable attribute name.  Added examples.
Also, x-ref kadmin document from otp.rst.

doc/admin/admin_commands/kadmin_local.rst
doc/admin/otp.rst

index 7f334a518eca88b6e1c2c4c2efff38dae7cf012c..39545c07f9574f596e86fd9ed145833f6ee3e5b6 100644 (file)
@@ -573,11 +573,12 @@ Alias: **getstr**
 set_string
 ~~~~~~~~~~
 
-    **set_string** *principal* *key* *value*
+    **set_string** *principal* *name* *value*
 
 Sets a string attribute on *principal*.  String attributes are used to
 supply per-principal configuration to the KDC and some KDC plugin
-modules.  The following string attributes are recognized by the KDC:
+modules.  The following string attribute names are recognized by the
+KDC:
 
 **session_enctypes**
     Specifies the encryption types supported for session keys when the
@@ -585,10 +586,22 @@ modules.  The following string attributes are recognized by the KDC:
     :ref:`Encryption_types` in :ref:`kdc.conf(5)` for a list of the
     accepted values.
 
+**otp**
+    Enables One Time Passwords (OTP) preauthentication for a client
+    *principal*.  The *value* is a JSON string representing an array
+    of objects, each having optional ``type`` and ``username`` fields.
+
 This command requires the **modify** privilege.
 
 Alias: **setstr**
 
+Example:
+
+ ::
+
+    set_string host/foo.mit.edu session_enctypes aes128-cts
+    set_string user@FOO.COM otp [{"type":"hotp","username":"custom"}]
+
 .. _set_string_end:
 
 .. _del_string:
index 9c634d6acba6d6b3200b5cccba192399976eac6c..9baf7a7bcf60b5042188b819602f630471f50672 100644 (file)
@@ -20,8 +20,8 @@ details of authentication.
 Defining token types
 --------------------
 
-Token types are defined in either krb5.conf or kdc.conf according to
-the following format::
+Token types are defined in either :ref:`krb5.conf(5)` or
+:ref:`kdc.conf(5)` according to the following format::
 
     [otp]
         <name> = {
@@ -63,8 +63,11 @@ Token instance configuration
 ----------------------------
 
 To enable OTP for a client principal, the administrator must define
-the **otp** string attribute for that principal.  The **otp** user
-string is a JSON string of the format::
+the **otp** string attribute for that principal.  (See
+:ref:`set_string`.)  The **otp** user string is a JSON string of the
+format:
+
+.. code-block:: xml
 
     [{
         "type": <string>,