Skip to main content

RodcObject

Struct RodcObject 

Source
pub struct RodcObject {
    pub dn: String,
    pub sam_account_name: String,
    pub krbtgt_link_dn: String,
    pub krbtgt_suffix: Option<u32>,
    pub revealed: Vec<String>,
    pub reveal_on_demand: Vec<String>,
    pub never_reveal: Vec<String>,
}
Expand description

A normalized RODC computer object as consumed from AD.

Fields§

§dn: String

DN of the RODC computer object.

§sam_account_name: String

sAMAccountName (usually ends with $).

§krbtgt_link_dn: String

DN of the per-RODC krbtgt account, from msDS-KrbTgtLink.

§krbtgt_suffix: Option<u32>

Optional numeric suffix parsed from the linked krbtgt sAMAccountName.

§revealed: Vec<String>

msDS-RevealedList — DNs of principals whose secrets are cached locally on this RODC (constructed attribute).

§reveal_on_demand: Vec<String>

msDS-RevealOnDemandGroup — allow-list (principals eligible to be cached).

§never_reveal: Vec<String>

msDS-NeverRevealGroup — deny-list (principals whose secrets must never be cached, regardless of the allow-list).

Implementations§

Source§

impl RodcObject

Source

pub fn from_attrs( dn: impl Into<String>, sam_account_name: impl Into<String>, krbtgt_link_dn: impl Into<String>, revealed: Vec<String>, reveal_on_demand: Vec<String>, never_reveal: Vec<String>, ) -> Self

Construct from raw attribute strings. krbtgt_link_dn is expected to be a DN whose leaf RDN is CN=krbtgt_NNNNN; the numeric suffix is parsed opportunistically and left as None if the shape doesn’t match (e.g. a legacy install with a non-standard rename).

Trait Implementations§

Source§

impl Clone for RodcObject

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RodcObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RodcObject

Source§

impl PartialEq for RodcObject

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RodcObject

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.