ntdsextract2 1.4.10

Display contents of Active Directory database files (ntds.dit)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Serialize;

use crate::{cli::OutputOptions, win32_types::SecurityDescriptor, FormattedValue};

use super::{DataTable, DataTableRecord, LinkTable};

pub trait FromDataTable: Sized + Serialize {
    fn new(
        dbrecord: DataTableRecord,
        options: &OutputOptions,
        data_table: &DataTable,
        link_table: &LinkTable,
        distinguished_name: FormattedValue<String>,
        sd: Option<&SecurityDescriptor>
    ) -> Result<Self, anyhow::Error>;
}