Struct kanidm_unix_common::cache::CacheLayer
source · [−]pub struct CacheLayer { /* private fields */ }
Implementations
sourceimpl CacheLayer
impl CacheLayer
pub async fn new(
path: &str,
timeout_seconds: u64,
client: KanidmClient,
pam_allow_groups: Vec<String>,
default_shell: String,
home_prefix: String,
home_attr: HomeAttr,
home_alias: Option<HomeAttr>,
uid_attr_map: UidAttr,
gid_attr_map: UidAttr
) -> Result<Self, ()>
pub async fn attempt_online(&self)
pub async fn mark_offline(&self)
pub async fn clear_cache(&self) -> Result<(), ()>
pub async fn invalidate(&self) -> Result<(), ()>
pub async fn check_nxcache(&self, id: &Id) -> bool
pub async fn get_sshkeys(&self, account_id: &str) -> Result<Vec<String>, ()>
pub async fn get_nssaccounts(&self) -> Result<Vec<NssUser>, ()>
pub async fn get_nssaccount_name(
&self,
account_id: &str
) -> Result<Option<NssUser>, ()>
pub async fn get_nssaccount_gid(&self, gid: u32) -> Result<Option<NssUser>, ()>
pub async fn get_nssgroups(&self) -> Result<Vec<NssGroup>, ()>
pub async fn get_nssgroup_name(
&self,
grp_id: &str
) -> Result<Option<NssGroup>, ()>
pub async fn get_nssgroup_gid(&self, gid: u32) -> Result<Option<NssGroup>, ()>
pub async fn pam_account_allowed(
&self,
account_id: &str
) -> Result<Option<bool>, ()>
pub async fn pam_account_authenticate(
&self,
account_id: &str,
cred: &str
) -> Result<Option<bool>, ()>
pub async fn pam_account_beginsession(
&self,
account_id: &str
) -> Result<Option<HomeDirectoryInfo>, ()>
pub async fn test_connection(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CacheLayer
impl Send for CacheLayer
impl Sync for CacheLayer
impl Unpin for CacheLayer
impl !UnwindSafe for CacheLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> From<T> for T
impl<T> From<T> for T
const: unstable · sourcefn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
+Struct kanidm_unix_common::cache::CacheLayer
source · [−]pub struct CacheLayer { /* private fields */ }
Implementations
sourceimpl CacheLayer
impl CacheLayer
pub async fn new(
path: &str,
timeout_seconds: u64,
client: KanidmClient,
pam_allow_groups: Vec<String>,
default_shell: String,
home_prefix: String,
home_attr: HomeAttr,
home_alias: Option<HomeAttr>,
uid_attr_map: UidAttr,
gid_attr_map: UidAttr
) -> Result<Self, ()>
pub async fn attempt_online(&self)
pub async fn mark_offline(&self)
pub async fn clear_cache(&self) -> Result<(), ()>
pub async fn invalidate(&self) -> Result<(), ()>
pub async fn check_nxcache(&self, id: &Id) -> bool
pub async fn get_sshkeys(&self, account_id: &str) -> Result<Vec<String>, ()>
pub async fn get_nssaccounts(&self) -> Result<Vec<NssUser>, ()>
pub async fn get_nssaccount_name(
&self,
account_id: &str
) -> Result<Option<NssUser>, ()>
pub async fn get_nssaccount_gid(&self, gid: u32) -> Result<Option<NssUser>, ()>
pub async fn get_nssgroups(&self) -> Result<Vec<NssGroup>, ()>
pub async fn get_nssgroup_name(
&self,
grp_id: &str
) -> Result<Option<NssGroup>, ()>
pub async fn get_nssgroup_gid(&self, gid: u32) -> Result<Option<NssGroup>, ()>
pub async fn pam_account_allowed(
&self,
account_id: &str
) -> Result<Option<bool>, ()>
pub async fn pam_account_authenticate(
&self,
account_id: &str,
cred: &str
) -> Result<Option<bool>, ()>
pub async fn pam_account_beginsession(
&self,
account_id: &str
) -> Result<Option<HomeDirectoryInfo>, ()>
pub async fn test_connection(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CacheLayer
impl Send for CacheLayer
impl Sync for CacheLayer
impl Unpin for CacheLayer
impl !UnwindSafe for CacheLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
const: unstable · sourcefn into(self) -> U
fn into(self) -> U
Calls U::from(self)
.
Function kanidmd_testkit::setup_async_test
source · [−]pub async fn setup_async_test() -> (KanidmClient, CoreHandle)
Function kanidmd_testkit::setup_async_test
source · [−]pub async fn setup_async_test() -> (KanidmClient, CoreHandle)