pub struct Gpo { /* private fields */ }Expand description
Gpo structure
Implementations§
Source§impl Gpo
impl Gpo
pub fn new() -> Self
Sourcepub fn computer_configuration_enabled(&self) -> bool
pub fn computer_configuration_enabled(&self) -> bool
Whether the GPO’s computer configuration is applicable.
Sourcepub fn parse(
&mut self,
result: SearchEntry,
domain: &str,
dn_sid: &mut HashMap<String, String>,
sid_type: &mut HashMap<String, String>,
domain_sid: &str,
schema_guid_map: &HashMap<String, String>,
) -> Result<(), Box<dyn Error>>
pub fn parse( &mut self, result: SearchEntry, domain: &str, dn_sid: &mut HashMap<String, String>, sid_type: &mut HashMap<String, String>, domain_sid: &str, schema_guid_map: &HashMap<String, String>, ) -> Result<(), Box<dyn Error>>
Function to parse and replace value for GPO object. https://bloodhound.readthedocs.io/en/latest/further-reading/json.html#gpos
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gpo
impl<'de> Deserialize<'de> for Gpo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl LdapObject for Gpo
impl LdapObject for Gpo
fn to_json(&self) -> Value
fn get_object_identifier(&self) -> &String
fn get_is_acl_protected(&self) -> &bool
fn get_aces(&self) -> &Vec<AceTemplate>
fn get_spntargets(&self) -> &Vec<SPNTarget>
fn get_allowed_to_delegate(&self) -> &Vec<Member>
fn get_links(&self) -> &Vec<Link>
fn get_contained_by(&self) -> &Option<Member>
fn get_child_objects(&self) -> &Vec<Member>
fn get_haslaps(&self) -> &bool
fn get_aces_mut(&mut self) -> &mut Vec<AceTemplate>
fn get_spntargets_mut(&mut self) -> &mut Vec<SPNTarget>
fn get_allowed_to_delegate_mut(&mut self) -> &mut Vec<Member>
fn set_is_acl_protected(&mut self, is_acl_protected: bool)
fn set_aces(&mut self, aces: Vec<AceTemplate>)
fn set_spntargets(&mut self, _spn_targets: Vec<SPNTarget>)
fn set_allowed_to_delegate(&mut self, _allowed_to_delegate: Vec<Member>)
fn set_links(&mut self, links: Vec<Link>)
fn set_contained_by(&mut self, contained_by: Option<Member>)
fn set_child_objects(&mut self, _child_objects: Vec<Member>)
Auto Trait Implementations§
impl Freeze for Gpo
impl RefUnwindSafe for Gpo
impl Send for Gpo
impl Sync for Gpo
impl Unpin for Gpo
impl UnsafeUnpin for Gpo
impl UnwindSafe for Gpo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more