Struct kanidm_unix_common::resolver::Resolver
source · pub struct Resolver<I>where
I: IdProvider + Sync,{ /* private fields */ }
Implementations§
source§impl<I> Resolver<I>where
I: IdProvider + Sync,
impl<I> Resolver<I>where
I: IdProvider + Sync,
pub async fn new( db: Db, client: I, hsm: BoxedDynTpm, machine_key: MachineKey, timeout_seconds: u64, 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, allow_id_overrides: Vec<String> ) -> 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) -> Option<SystemTime>
pub async fn reload_nxset(&self, iter: impl Iterator<Item = (String, u32)>)
pub async fn check_nxset(&self, name: &str, idnumber: u32) -> 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_init( &self, account_id: &str ) -> Result<(AuthSession, PamAuthResponse), ()>
pub async fn pam_account_authenticate_step( &self, auth_session: &mut AuthSession, pam_next_req: PamAuthRequest ) -> Result<PamAuthResponse, ()>
pub async fn pam_account_authenticate( &self, account_id: &str, password: &str ) -> Result<Option<bool>, ()>
pub async fn pam_account_beginsession( &self, account_id: &str ) -> Result<Option<HomeDirectoryInfo>, ()>
pub async fn test_connection(&self) -> bool
Auto Trait Implementations§
impl<I> !RefUnwindSafe for Resolver<I>
impl<I> Send for Resolver<I>where
I: Send,
impl<I> Sync for Resolver<I>
impl<I> Unpin for Resolver<I>where
I: Unpin,
impl<I> !UnwindSafe for Resolver<I>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more