Hello,

Thanks very much for your reply !!! It works fine with:
kadmin.local: setstr laurent "[{""type"":""foo""}]"
kadmin.local: getstr laurent
otp: [{"type":"foo"}]

but not with:
kadmin.local: setstr laurent '[{"type":"foo"}]'
kadmin.local: getstr laurent
otp: '[{type:foo}]')

For information, the MIT documentation (https://web.mit.edu/kerberos/krb5-1.13/doc/admin/admin_commands/kadmin_local.html#set-string) uses:

set_string u...@foo.com otp [{"type":"hotp","username":"custom"}]


Thanks again !

Best regards

Laurent BASTET
Administrateur de systèmes et réseaux
CPII/DOIP/IR/Infrastructure Bordeaux
rue Pierre Ramond
CS 60013
33166 Saint Médard en Jalles
05.56.70.65.90


Le 03/08/2016 06:58, > Benjamin Kaduk (par Internet) a écrit :
On Tue, 2 Aug 2016, Benjamin Kaduk wrote:

I am not actually sure how to escape the quotes to get them through the SS
parser.  Probably the easiest way to get well-formed JSON as the string
Apparently doubled double quotes within a double-quote context will do the
escaping.

So:

setstr laurent otp "[{""type"":""foo""}]"

ought to do the trick as well, even on the older version.

-Ben


  • ... BASTET Laurent (Administrateur de systèmes et réseaux au sein du groupe Infrastructure et Réseau) - SG/SPSSI/CPII/DOIP/IR/Infrastructure Bordeaux
    • ... Benjamin Kaduk
      • ... Benjamin Kaduk
        • ... BASTET Laurent (Administrateur de systèmes et réseaux au sein du groupe Infrastructure et Réseau) - SG/SPSSI/CPII/DOIP/IR/Infrastructure Bordeaux

Reply via email to