> For the complete documentation index, see [llms.txt](https://d3ndr1t30x.gitbook.io/breaking-things-a-junior-pentesters-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://d3ndr1t30x.gitbook.io/breaking-things-a-junior-pentesters-guide/active-directory-theory/logical-active-directory-components.md).

# Logical Active Directory Components

### Schema&#x20;

* Defines every type of object that can be stored in the directory
* Enforces rules regarding object creation and configuration
* Think of it like a rule book or a blueprint&#x20;

<figure><img src="https://2288465892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDIt8oNqqCdL9Vt3UR8bR%2Fuploads%2FGy4XpDFt9ZveKuFVwKJD%2Fimage.png?alt=media&amp;token=bfe0b12f-1919-484f-828b-8ef063478a2b" alt=""><figcaption></figcaption></figure>

### Domains

* Domains are used to group and manage objects in an organization
* An administrative boundary for replicating data between domain controllers
* An authentication and authorization boundary that provides a way to limit the scope of access to resources

### Trees

* A domain tree is a hierarchy of domains in AD DS
* Share a contiguous namespace within the parent domain
* Can have additional child domains
* By default create a two-way transitive trust with other domains

<figure><img src="https://2288465892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDIt8oNqqCdL9Vt3UR8bR%2Fuploads%2FykHL9CV1Z3PYy2vfA5wn%2Fimage.png?alt=media&amp;token=524f2eed-cdc1-4f22-81e5-bf7d100c9d12" alt=""><figcaption></figcaption></figure>

### Forests

* A collection of one or more trees
* Share a common name schema
* Share a common configuration partition
* Share a global catalog to enable searching
* Enable trusts between all domains in the forest
* Share the enterprise admins and schema admins groups

<figure><img src="https://2288465892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDIt8oNqqCdL9Vt3UR8bR%2Fuploads%2FiudCy7MRaT0PzE8mXI6j%2Fimage.png?alt=media&amp;token=59dd2406-a615-4db7-8750-63da9584f223" alt=""><figcaption></figcaption></figure>

### Organizational Units

* OUs are Active Directory containers that can contain users, groups, computers and other OUs
* Represent a given organization hierarchically and logically
* Manage a collection of objects in a consistent way
* Delegate permissions to administer groups of objects
