]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Properly escape quotes for otp set_string example 501/head
authorBen Kaduk <kaduk@mit.edu>
Wed, 3 Aug 2016 15:23:56 +0000 (10:23 -0500)
committerBen Kaduk <kaduk@mit.edu>
Thu, 11 Aug 2016 04:19:43 +0000 (23:19 -0500)
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

doc/admin/admin_commands/kadmin_local.rst

index a91aa06ec9f79b696051fd9561c20d64dc588b08..50c3b99ea428d1e7eacc8e00ee8ce02c2e99cbbc 100644 (file)
@@ -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: