[−][src]Crate kerberos_keytab
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
Structs
CountedOctetString | String used by keytab. Different from the one used by ccache since length is u16. |
KeyBlock | Represents the principal key. |
Keytab | |
KeytabEntry | Definition: |