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: StringDN of the RODC computer object.
sam_account_name: StringsAMAccountName (usually ends with $).
krbtgt_link_dn: StringDN 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
impl RodcObject
Sourcepub 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
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).