[][src]Struct kanidm_client::KanidmClient

pub struct KanidmClient { /* fields omitted */ }

Methods

impl KanidmClient[src]

pub fn new_session(&self) -> Result<Self, Error>[src]

pub fn logout(&mut self) -> Result<(), Error>[src]

pub fn whoami(&self) -> Result<Option<(Entry, UserAuthToken)>, ClientError>[src]

pub fn auth_anonymous(&self) -> Result<UserAuthToken, ClientError>[src]

pub fn auth_simple_password(
    &self,
    ident: &str,
    password: &str
) -> Result<UserAuthToken, ClientError>
[src]

pub fn search(&self, filter: Filter) -> Result<Vec<Entry>, ClientError>[src]

pub fn create(&self, entries: Vec<Entry>) -> Result<(), ClientError>[src]

pub fn modify(
    &self,
    filter: Filter,
    modlist: ModifyList
) -> Result<(), ClientError>
[src]

pub fn delete(&self, filter: Filter) -> Result<(), ClientError>[src]

pub fn idm_account_set_password(
    &self,
    cleartext: String
) -> Result<(), ClientError>
[src]

pub fn auth_step_init(
    &self,
    ident: &str,
    appid: Option<&str>
) -> Result<AuthState, ClientError>
[src]

pub fn idm_group_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_group_get(&self, id: &str) -> Result<Option<Entry>, ClientError>[src]

pub fn idm_group_get_members(
    &self,
    id: &str
) -> Result<Option<Vec<String>>, ClientError>
[src]

pub fn idm_group_set_members(
    &self,
    id: &str,
    members: Vec<&str>
) -> Result<(), ClientError>
[src]

pub fn idm_group_add_members(
    &self,
    id: &str,
    members: Vec<&str>
) -> Result<(), ClientError>
[src]

pub fn idm_group_purge_members(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_group_unix_token_get(
    &self,
    id: &str
) -> Result<UnixGroupToken, ClientError>
[src]

pub fn idm_group_unix_extend(
    &self,
    id: &str,
    gidnumber: Option<u32>
) -> Result<(), ClientError>
[src]

pub fn idm_group_delete(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_group_create(&self, name: &str) -> Result<(), ClientError>[src]

pub fn idm_account_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_account_create(
    &self,
    name: &str,
    dn: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_set_displayname(
    &self,
    id: &str,
    dn: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_delete(&self, id: &str) -> Result<(), ClientError>[src]

pub fn idm_account_get(&self, id: &str) -> Result<Option<Entry>, ClientError>[src]

pub fn idm_account_primary_credential_set_password(
    &self,
    id: &str,
    pw: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_primary_credential_set_generated(
    &self,
    id: &str
) -> Result<String, ClientError>
[src]

pub fn idm_account_radius_credential_get(
    &self,
    id: &str
) -> Result<Option<String>, ClientError>
[src]

pub fn idm_account_radius_credential_regenerate(
    &self,
    id: &str
) -> Result<String, ClientError>
[src]

pub fn idm_account_radius_credential_delete(
    &self,
    id: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_radius_token_get(
    &self,
    id: &str
) -> Result<RadiusAuthToken, ClientError>
[src]

pub fn idm_account_unix_extend(
    &self,
    id: &str,
    gidnumber: Option<u32>,
    shell: Option<&str>
) -> Result<(), ClientError>
[src]

pub fn idm_account_unix_token_get(
    &self,
    id: &str
) -> Result<UnixUserToken, ClientError>
[src]

pub fn idm_account_get_ssh_pubkeys(
    &self,
    id: &str
) -> Result<Vec<String>, ClientError>
[src]

pub fn idm_account_post_ssh_pubkey(
    &self,
    id: &str,
    tag: &str,
    pubkey: &str
) -> Result<(), ClientError>
[src]

pub fn idm_account_get_ssh_pubkey(
    &self,
    id: &str,
    tag: &str
) -> Result<Option<String>, ClientError>
[src]

pub fn idm_account_delete_ssh_pubkey(
    &self,
    id: &str,
    tag: &str
) -> Result<(), ClientError>
[src]

pub fn idm_domain_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_domain_get(&self, id: &str) -> Result<Entry, ClientError>[src]

pub fn idm_domain_get_ssid(&self, id: &str) -> Result<String, ClientError>[src]

pub fn idm_domain_set_ssid(
    &self,
    id: &str,
    ssid: &str
) -> Result<(), ClientError>
[src]

pub fn idm_schema_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_schema_attributetype_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_schema_attributetype_get(
    &self,
    id: &str
) -> Result<Option<Entry>, ClientError>
[src]

pub fn idm_schema_classtype_list(&self) -> Result<Vec<Entry>, ClientError>[src]

pub fn idm_schema_classtype_get(
    &self,
    id: &str
) -> Result<Option<Entry>, ClientError>
[src]

Trait Implementations

impl Debug for KanidmClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.