Struct kanidm_client::KanidmClient [−][src]
pub struct KanidmClient { /* fields omitted */ }
Implementations
impl KanidmClient
[src]
impl KanidmClient
[src]pub fn get_origin(&self) -> &str
[src]
pub fn get_url(&self) -> &str
[src]
pub fn new_session(&self) -> Result<Self, Error>
[src]
pub fn set_token(&self, new_token: String)
[src]
pub fn get_token(&self) -> Option<String>
[src]
pub fn logout(&self)
[src]
pub fn whoami(&self) -> Result<Option<(Entry, UserAuthToken)>, ClientError>
[src]
pub fn auth_step_init(&self, ident: &str) -> Result<Set<AuthMech>, ClientError>
[src]
pub fn auth_step_begin(
&self,
mech: AuthMech
) -> Result<Vec<AuthAllowed>, ClientError>
[src]
&self,
mech: AuthMech
) -> Result<Vec<AuthAllowed>, ClientError>
pub fn auth_step_anonymous(&self) -> Result<AuthResponse, ClientError>
[src]
pub fn auth_step_password(
&self,
password: &str
) -> Result<AuthResponse, ClientError>
[src]
&self,
password: &str
) -> Result<AuthResponse, ClientError>
pub fn auth_step_backup_code(
&self,
backup_code: &str
) -> Result<AuthResponse, ClientError>
[src]
&self,
backup_code: &str
) -> Result<AuthResponse, ClientError>
pub fn auth_step_totp(&self, totp: u32) -> Result<AuthResponse, ClientError>
[src]
pub fn auth_step_webauthn_complete(
&self,
pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
[src]
&self,
pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
pub fn auth_anonymous(&self) -> Result<(), ClientError>
[src]
pub fn auth_simple_password(
&self,
ident: &str,
password: &str
) -> Result<(), ClientError>
[src]
&self,
ident: &str,
password: &str
) -> Result<(), ClientError>
pub fn auth_password_totp(
&self,
ident: &str,
password: &str,
totp: u32
) -> Result<(), ClientError>
[src]
&self,
ident: &str,
password: &str,
totp: u32
) -> Result<(), ClientError>
pub fn auth_password_backup_code(
&self,
ident: &str,
password: &str,
backup_code: &str
) -> Result<(), ClientError>
[src]
&self,
ident: &str,
password: &str,
backup_code: &str
) -> Result<(), ClientError>
pub fn auth_webauthn_begin(
&self,
ident: &str
) -> Result<RequestChallengeResponse, ClientError>
[src]
&self,
ident: &str
) -> Result<RequestChallengeResponse, ClientError>
pub fn auth_valid(&self) -> Result<(), ClientError>
[src]
pub fn auth_webauthn_complete(
&self,
pkc: PublicKeyCredential
) -> Result<(), ClientError>
[src]
&self,
pkc: PublicKeyCredential
) -> Result<(), 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_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: &[&str]
) -> Result<(), ClientError>
[src]
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
pub fn idm_group_add_members(
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
[src]
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
pub fn idm_group_remove_members(
&self,
group: &str,
members: &[&str]
) -> Result<(), ClientError>
[src]
&self,
group: &str,
members: &[&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_password(
&self,
cleartext: String
) -> Result<(), ClientError>
[src]
&self,
cleartext: String
) -> 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_get_attr(
&self,
id: &str,
attr: &str
) -> Result<Option<Vec<String>>, ClientError>
[src]
&self,
id: &str,
attr: &str
) -> Result<Option<Vec<String>>, ClientError>
pub fn idm_account_primary_credential_set_password(
&self,
id: &str,
pw: &str
) -> Result<SetCredentialResponse, ClientError>
[src]
&self,
id: &str,
pw: &str
) -> Result<SetCredentialResponse, ClientError>
pub fn idm_account_purge_attr(
&self,
id: &str,
attr: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str,
attr: &str
) -> Result<(), ClientError>
pub fn idm_account_add_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
[src]
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
pub fn idm_account_set_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
[src]
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_import_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_primary_credential_generate_totp(
&self,
id: &str
) -> Result<(Uuid, TotpSecret), ClientError>
[src]
&self,
id: &str
) -> Result<(Uuid, TotpSecret), ClientError>
pub fn idm_account_primary_credential_verify_totp(
&self,
id: &str,
otp: u32,
session: Uuid
) -> Result<(), ClientError>
[src]
&self,
id: &str,
otp: u32,
session: Uuid
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_accept_sha1_totp(
&self,
id: &str,
session: Uuid
) -> Result<(), ClientError>
[src]
&self,
id: &str,
session: Uuid
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_remove_totp(
&self,
id: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_register_webauthn(
&self,
id: &str,
label: &str
) -> Result<(Uuid, CreationChallengeResponse), ClientError>
[src]
&self,
id: &str,
label: &str
) -> Result<(Uuid, CreationChallengeResponse), ClientError>
pub fn idm_account_primary_credential_complete_webuthn_registration(
&self,
id: &str,
rego: RegisterPublicKeyCredential,
session: Uuid
) -> Result<(), ClientError>
[src]
&self,
id: &str,
rego: RegisterPublicKeyCredential,
session: Uuid
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_remove_webauthn(
&self,
id: &str,
label: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str,
label: &str
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_generate_backup_code(
&self,
id: &str
) -> Result<Vec<String>, ClientError>
[src]
&self,
id: &str
) -> Result<Vec<String>, ClientError>
pub fn idm_account_primary_credential_remove_backup_code(
&self,
id: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str
) -> Result<(), ClientError>
pub fn idm_account_get_credential_status(
&self,
id: &str
) -> Result<CredentialStatus, ClientError>
[src]
&self,
id: &str
) -> Result<CredentialStatus, 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_unix_cred_put(
&self,
id: &str,
cred: &str
) -> Result<(), ClientError>
[src]
&self,
id: &str,
cred: &str
) -> Result<(), ClientError>
pub fn idm_account_unix_cred_delete(&self, id: &str) -> Result<(), ClientError>
[src]
pub fn idm_account_unix_cred_verify(
&self,
id: &str,
cred: &str
) -> Result<Option<UnixUserToken>, ClientError>
[src]
&self,
id: &str,
cred: &str
) -> Result<Option<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_person_extend(&self, id: &str) -> Result<(), ClientError>
[src]
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>
pub fn idm_oauth2_rs_list(&self) -> Result<Vec<Entry>, ClientError>
[src]
pub fn idm_oauth2_rs_basic_create(
&self,
name: &str,
origin: &str
) -> Result<(), ClientError>
[src]
&self,
name: &str,
origin: &str
) -> Result<(), ClientError>
pub fn idm_oauth2_rs_get(&self, id: &str) -> Result<Option<Entry>, ClientError>
[src]
pub fn idm_oauth2_rs_update(
&self,
id: &str,
name: Option<&str>,
origin: Option<&str>,
reset_secret: bool,
reset_token_key: bool
) -> Result<(), ClientError>
[src]
&self,
id: &str,
name: Option<&str>,
origin: Option<&str>,
reset_secret: bool,
reset_token_key: bool
) -> Result<(), ClientError>
pub fn idm_oauth2_rs_delete(&self, id: &str) -> Result<(), ClientError>
[src]
pub fn recycle_bin_list(&self) -> Result<Vec<Entry>, ClientError>
[src]
pub fn recycle_bin_get(&self, id: &str) -> Result<Option<Entry>, ClientError>
[src]
pub fn recycle_bin_revive(&self, id: &str) -> Result<(), ClientError>
[src]
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> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,