[38312] in Kerberos

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

Query: Need help for storing the krb5_creds(ticket) as blob format.

daemon@ATHENA.MIT.EDU (Santosh Kumar)
Sat Aug 25 04:44:17 2018

MIME-Version: 1.0
From: Santosh Kumar <santoshjeergi@gmail.com>
Date: Sat, 25 Aug 2018 14:13:30 +0530
Message-ID: <CAFnsFFexDTGB-uLHrAw5+Px3KoV35MjJQkBBgLFRn+zA-9np6A@mail.gmail.com>
To: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

All,

Could you please help with information how can i store the tickets as blob:

 I'm searching if there is MIT kerberos API's similar to below heimdal
API's which helps to store as blob. could you suggest option,

   krb5_creds* tkt = getTkt();  //obtained krbtgt

  * krb5_storage* sp = krb5_storage_emem();*
*    krb5_store_creds(sp, (krb5_creds*)tkt);*
*    krb5_data sp_data;*
*    memset(&sp_data, 0, sizeof(sp_data));*
*    krb5_storage_to_data(sp, &sp_data);*
    //Blob* blob = new Blob((char*)sp_data.data,  sp_data.length)
*    krb5_storage_free(sp);*


Thanks much
Santosh
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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