# sanka1pp/active-directory-automation-scripts architecture

> Architecture diagram of the GitHub repository sanka1pp/active-directory-automation-scripts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sanka1pp/active-directory-automation-scripts
- Repository: https://github.com/sanka1pp/active-directory-automation-scripts

## Overview

SchemaFirst is a small command-line Active Directory identity profiler. The operator supplies domain-controller and account credentials; the script queries LDAP, parses schema and account attributes, classifies the identity, and prints an operator decision and suggested next enumeration axis. The README describes optional bloodyAD validation, but the shown script does not execute it; that relationship is documented rather than verified in code.

Main entry points: [`schemafirst.py`](https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py) (LDAP query)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_input["Credential prompts<br/>[schemafirst.py]"]
node_ldap["LDAP query<br/>[schemafirst.py]"]
node_ldapsearch["ldapsearch"]
node_parser["LDAP parser<br/>[schemafirst.py]"]
node_classifier["Identity classifier<br/>[schemafirst.py]"]
node_report["Operator report<br/>[schemafirst.py]"]
node_bloodyad["bloodyAD"]

node_operator -->|"provides credentials"| node_input
node_input -->|"returns inputs"| node_ldap
node_ldap -->|"executes query"| node_ldapsearch
node_ldap -->|"passes output"| node_parser
node_parser -->|"returns attributes"| node_classifier
node_classifier -->|"returns verdict"| node_report
node_report -->|"prints guidance"| node_operator
node_ldap -.->|"optional validation"| node_bloodyad

click node_input "https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py"
click node_ldap "https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py"
click node_parser "https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py"
click node_classifier "https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py"
click node_report "https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_operator,node_ldapsearch,node_bloodyad toneIndigo
class node_input,node_ldap,node_parser,node_classifier,node_report toneTeal
```

## Components

### Other components

- **Operator**
- [Credential prompts](https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py): `schemafirst.py`
- [LDAP query](https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py): `schemafirst.py`
- **ldapsearch**
- [LDAP parser](https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py): `schemafirst.py`
- [Identity classifier](https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py): `schemafirst.py`
- [Operator report](https://github.com/sanka1pp/active-directory-automation-scripts/blob/main/schemafirst.py): `schemafirst.py`
- **bloodyAD**

## Connections

- Operator → Credential prompts: provides credentials (evidence: `schemafirst.py`)
- Credential prompts → LDAP query: returns inputs (evidence: `schemafirst.py`)
- LDAP query → ldapsearch: executes query (evidence: `schemafirst.py`)
- LDAP query → LDAP parser: passes output (evidence: `schemafirst.py`)
- LDAP parser → Identity classifier: returns attributes (evidence: `schemafirst.py`)
- Identity classifier → Operator report: returns verdict (evidence: `schemafirst.py`)
- Operator report → Operator: prints guidance (evidence: `schemafirst.py`)
- LDAP query → bloodyAD: optional validation (evidence: `README.md`)
