Skip to main content

PasswordWriter

pub(super) trait PasswordWriter: Send {
    // Required methods
    fn replace_password<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        account_dn: &'life1 str,
        encoded: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<LdapResult, LdapError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn bind_as_account<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        account_dn: &'life1 str,
        password: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), LdapError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

The directory operations the write needs, so apply_password_write can be tested without a domain controller.

Required Methods§

Source

fn replace_password<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, account_dn: &'life1 str, encoded: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<LdapResult, LdapError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

A directory rejection comes back in the [LdapResult]; Err means there was no answer.

Source

fn bind_as_account<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, account_dn: &'life1 str, password: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), LdapError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§