[29621] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit [krb5-1.14]: Properly escape quotes for otp set_string

daemon@ATHENA.MIT.EDU (Tom Yu)
Fri Sep 2 17:10:50 2016

Date: Fri, 2 Sep 2016 17:04:30 -0400
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201609022104.u82L4UIx023844@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/82aac26f382da3d8c01dedf8287e8b87d6c83f2f
commit 82aac26f382da3d8c01dedf8287e8b87d6c83f2f
Author: Ben Kaduk <kaduk@mit.edu>
Date:   Wed Aug 3 10:23:56 2016 -0500

    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.)
    
    (cherry picked from commit 3e319b1f93f75a3bab86425221f2bcbf5603f3f9)
    
    ticket: 8469
    version_fixed: 1.14.4

 doc/admin/admin_commands/kadmin_local.rst |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/doc/admin/admin_commands/kadmin_local.rst b/doc/admin/admin_commands/kadmin_local.rst
index be874b1..c99d308 100644
--- a/doc/admin/admin_commands/kadmin_local.rst
+++ b/doc/admin/admin_commands/kadmin_local.rst
@@ -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:
 
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post