#kerberos #parse #parser #save-file #keytab #parse-file

kerberos_keytab

Library to parse keytab kerberos files

2 releases

0.0.2 Jan 17, 2021
0.0.1 Jan 17, 2021

#30 in #kerberos

37 downloads per month
Used in cerbero

AGPL-3.0

22KB
514 lines

Types used to store Kerberos credentials in a keytab

Example

Load and save into a file:

use kerberos_keytab::Keytab;
use std::fs;

let data = fs::read("./user.keytab").expect("Unable to read file");

let keytab = Keytab::parse(&data)
    .expect("Unable to parse file content")
    .1;

let data_2 = keytab.build();
fs::write("./user2.keytab", data_2).expect("Unable to write file");

References

Dependencies

~2MB
~42K SLoC