KAdminBuilder

Struct KAdminBuilder 

Source
pub struct KAdminBuilder { /* private fields */ }
Expand description

KAdmin builder

Implementations§

Source§

impl KAdminBuilder

Source

pub fn new(variant: KAdm5Variant) -> Self

Create a new KAdminBuilder instance

Source

pub fn params(self, params: Params) -> Self

Provide additional Params to this KAdmin instance

Source

pub fn db_args(self, db_args: DbArgs) -> Self

Provide additional DbArgs to this KAdmin instance

Source

pub fn api_version(self, api_version: KAdminApiVersion) -> Self

Set the kadm5 API version to use. See KAdminApiVersion for details

Source

pub fn library_path<S: AsRef<OsStr>>(self, library_path: S) -> Self

Set the path from where to load the kadm5 library

Source

pub fn with_password(self, client_name: &str, password: &str) -> Result<KAdmin>

Construct a KAdmin object from this builder using a client name (usually a principal name) and a password

Source

pub fn with_keytab( self, client_name: Option<&str>, keytab: Option<&str>, ) -> Result<KAdmin>

Construct a KAdmin object from this builder using an optional client name (usually a principal name) and an optional keytab

If no client name is provided, host/hostname will be used

If no keytab is provided, the default keytab will be used

Source

pub fn with_ccache( self, client_name: Option<&str>, ccache_name: Option<&str>, ) -> Result<KAdmin>

Construct a KAdmin object from this builder using an optional client name (usually a principal name) and an optional credentials cache name

If no client name is provided, the default principal from the credentials cache will be used

If no credentials cache name is provided, the default credentials cache will be used

Source

pub fn with_anonymous(self, client_name: &str) -> Result<KAdmin>

Not implemented

Source

pub fn with_local(self) -> Result<KAdmin>

Available on mit_server or heimdal_server only.

Construct a KAdmin object from this builder for local database manipulation.

Only available on server-side libraries.

Trait Implementations§

Source§

impl Debug for KAdminBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.