ntdsextract2 1.4.14

Display contents of Active Directory database files (ntds.dit)
use clap::Subcommand;
use strum::Display;

use crate::cli::OutputFormat;


#[derive(Subcommand, Clone, Copy, Display, Eq, PartialEq)]
pub enum AclCommand {
    /// find obects with Generic All ACEs
    GA {
        /// Output format
        #[clap(value_enum, short('F'), long("format"), default_value_t = OutputFormat::Csv)]
        format: OutputFormat,

        /// include the distinguished name (DN) in the output.
        ///
        /// Note that this
        /// property is not an attribute of the AD entry iself; instead it is
        /// constructed from the relative DN (RDN) of the entry and
        /// all of its parents. That's why this property is normally not shown.
        #[clap(short('D'), long("include-dn"))]
        include_dn: bool,
    },
}