pub struct Resolver { /* private fields */ }
Implementations§
source§impl Resolver
impl Resolver
pub async fn new( db: Db, system_provider: Arc<SystemProvider>, clients: Vec<Arc<dyn IdProvider + Sync + Send>>, hsm: BoxedDynTpm, timeout_seconds: u64, default_shell: String, home_prefix: PathBuf, home_attr: HomeAttr, home_alias: Option<HomeAttr>, uid_attr_map: UidAttr, gid_attr_map: UidAttr, ) -> Result<Self, ()>
pub async fn mark_next_check_now(&self, now: SystemTime)
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_system_identities( &self, users: Vec<EtcUser>, shadow: Option<Vec<EtcShadow>>, groups: Vec<EtcGroup>, )
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, pam_info: &PamServiceInfo, current_time: OffsetDateTime, shutdown_rx: Receiver<()>, ) -> 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, current_time: OffsetDateTime, password: &str, ) -> Result<Option<bool>, ()>
pub async fn pam_account_beginsession( &self, account_id: &str, ) -> Result<Option<HomeDirectoryInfo>, ()>
pub async fn provider_status(&self) -> Vec<ProviderStatus>
pub async fn test_connection(&self) -> bool
Auto Trait Implementations§
impl !Freeze for Resolver
impl !RefUnwindSafe for Resolver
impl Send for Resolver
impl Sync for Resolver
impl Unpin for Resolver
impl !UnwindSafe for Resolver
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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