[][src]Struct ldap3::exop::PasswordModify

pub struct PasswordModify<'a> {
    pub user_id: Option<&'a str>,
    pub old_pass: Option<&'a str>,
    pub new_pass: Option<&'a str>,
}

Password Modify extended operation (RFC 3062).

The structure contains elements of a Password Modify request. The precise semantics of having a particular field present or absent will depend on the server receiving the request; consult the server documentation. Some rules are prescribed by the RFC and should generally apply:

  • The user_id field contains the identity of the user whose password is being changed. This may or may not be a DN. If the field is absent, the identity associated with the current connection will be used.

  • If old_pass is present, it must match the existing password.

  • If new_pass is not present, the server may autogenerate the new password.

Although the specification doesn't constrain the values of old and new passwords, this implementation limits them to UTF-8 strings.

Fields

user_id: Option<&'a str>old_pass: Option<&'a str>new_pass: Option<&'a str>

Trait Implementations

impl<'a> Clone for PasswordModify<'a>[src]

impl<'a> Debug for PasswordModify<'a>[src]

impl<'a> From<PasswordModify<'a>> for Exop[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for PasswordModify<'a>[src]

impl<'a> Send for PasswordModify<'a>[src]

impl<'a> Sync for PasswordModify<'a>[src]

impl<'a> Unpin for PasswordModify<'a>[src]

impl<'a> UnwindSafe for PasswordModify<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.