From: Ben Kaduk Date: Wed, 3 Aug 2016 15:23:56 +0000 (-0500) Subject: Properly escape quotes for otp set_string example X-Git-Tag: krb5-1.15-beta1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F501%2Fhead;p=thirdparty%2Fkrb5.git Properly escape quotes for otp set_string example 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.) ticket: 8469 (new) target_version: 1.14-next tags: pullup --- diff --git a/doc/admin/admin_commands/kadmin_local.rst b/doc/admin/admin_commands/kadmin_local.rst index a91aa06ec9..50c3b99ea4 100644 --- a/doc/admin/admin_commands/kadmin_local.rst +++ b/doc/admin/admin_commands/kadmin_local.rst @@ -668,7 +668,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: