Crates.io | himmelblau_kerberos_ccache |
lib.rs | himmelblau_kerberos_ccache |
version | 0.4.1 |
source | src |
created_at | 2024-06-21 19:49:26.8133 |
updated_at | 2024-07-03 17:46:38.496476 |
description | Library to parse ccache kerberos structures |
homepage | |
repository | https://github.com/himmelblau-idm/kerbeiros |
max_upload_size | |
id | 1279884 |
size | 143,349 |
Types used to store Kerberos credentials in a ccache
Load and save into a file:
use kerberos_ccache::CCache;
use std::fs;
let data = fs::read("./bob_tgt.ccache").expect("Unable to read file");
let ccache = CCache::parse(&data)
.expect("Unable to parse file content")
.1;
let data_2 = ccache.build();
fs::write("./bob_tgt2.ccache", data_2).expect("Unable to write file");