]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Properly escape quotes for otp set_string example
authorBen Kaduk <kaduk@mit.edu>
Wed, 3 Aug 2016 15:23:56 +0000 (10:23 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 2 Sep 2016 18:49:38 +0000 (14:49 -0400)
The libss parser will consume paired double quotes, but within
a double-quoted region, repeated double quotes will be treated
as an escape and passed through as a single double quote.

(The new kadmin(1) parser in 1.14 that lets commands be specified
on the command line without -q does not go through the libss parser,
so standard shell methods for escaping quotes function as usual.)

(cherry picked from commit 3e319b1f93f75a3bab86425221f2bcbf5603f3f9)

ticket: 8469
version_fixed: 1.14.4

doc/admin/admin_commands/kadmin_local.rst

index be874b1a5363754acce75bea460415f4fed85d30..c99d30834c00fc99fec0d17da785d59020fce1db 100644 (file)
@@ -656,7 +656,7 @@ 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 user@FOO.COM otp "[{""type"":""hotp"",""username"":""al""}]"
 
 .. _set_string_end: