[−][src]Struct kanidm_client::KanidmClient
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]
&self,
ident: &str,
password: &str
) -> Result<UserAuthToken, ClientError>
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]
&self,
filter: Filter,
modlist: ModifyList
) -> Result<(), ClientError>
pub fn delete(&self, filter: Filter) -> Result<(), ClientError>
[src]
pub fn idm_account_set_password(
&self,
cleartext: String
) -> Result<(), ClientError>
[src]
&self,
cleartext: String
) -> Result<(), ClientError>
pub fn auth_step_init(
&self,
ident: &str,
appid: Option<&str>
) -> Result<AuthState, ClientError>
[src]
&self,
ident: &str,
appid: Option<&str>
) -> Result<AuthState, ClientError>
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]
&self,
id: &str
) -> Result<Option<Vec<String>>, ClientError>
pub fn idm_group_set_members(
&self,
id: &str,
members: Vec<&str>
) -> Result<(), ClientError>
[src]
&self,
id: &str,
members: Vec<&str>
) -> Result<(), ClientError>
pub fn idm_group_add_members(
&self,
id: &str,
members: Vec<&str>
) -> Result<(), ClientError>
[src]
&self,
id: &str,
members: Vec<&str>
) -> Result<(), ClientError>
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]
&self,
id: &str
) -> Result<UnixGroupToken, ClientError>
pub fn idm_group_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>
) -> Result<(), ClientError>
[src]
&self,
id: &str,
gidnumber: Option<u32>
) -> Result<(), ClientError>
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]
&self,
name: &str,
dn: &str
) -> Result<(), ClientError>
pub fn idm_account_set_displayname(
&self,
id: &str,
dn: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str,
dn: &str
) -> Result<(), ClientError>
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]
&self,
id: &str,
pw: &str
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_set_generated(
&self,
id: &str
) -> Result<String, ClientError>
[src]
&self,
id: &str
) -> Result<String, ClientError>
pub fn idm_account_radius_credential_get(
&self,
id: &str
) -> Result<Option<String>, ClientError>
[src]
&self,
id: &str
) -> Result<Option<String>, ClientError>
pub fn idm_account_radius_credential_regenerate(
&self,
id: &str
) -> Result<String, ClientError>
[src]
&self,
id: &str
) -> Result<String, ClientError>
pub fn idm_account_radius_credential_delete(
&self,
id: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str
) -> Result<(), ClientError>
pub fn idm_account_radius_token_get(
&self,
id: &str
) -> Result<RadiusAuthToken, ClientError>
[src]
&self,
id: &str
) -> Result<RadiusAuthToken, ClientError>
pub fn idm_account_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>,
shell: Option<&str>
) -> Result<(), ClientError>
[src]
&self,
id: &str,
gidnumber: Option<u32>,
shell: Option<&str>
) -> Result<(), ClientError>
pub fn idm_account_unix_token_get(
&self,
id: &str
) -> Result<UnixUserToken, ClientError>
[src]
&self,
id: &str
) -> Result<UnixUserToken, ClientError>
pub fn idm_account_get_ssh_pubkeys(
&self,
id: &str
) -> Result<Vec<String>, ClientError>
[src]
&self,
id: &str
) -> Result<Vec<String>, ClientError>
pub fn idm_account_post_ssh_pubkey(
&self,
id: &str,
tag: &str,
pubkey: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str,
tag: &str,
pubkey: &str
) -> Result<(), ClientError>
pub fn idm_account_get_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<Option<String>, ClientError>
[src]
&self,
id: &str,
tag: &str
) -> Result<Option<String>, ClientError>
pub fn idm_account_delete_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str,
tag: &str
) -> Result<(), ClientError>
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]
&self,
id: &str,
ssid: &str
) -> Result<(), ClientError>
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]
&self,
id: &str
) -> Result<Option<Entry>, ClientError>
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]
&self,
id: &str
) -> Result<Option<Entry>, ClientError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for KanidmClient
impl Send for KanidmClient
impl Sync for KanidmClient
impl Unpin for KanidmClient
impl !UnwindSafe for KanidmClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,