Active Directory Architecture and Management: A Practical Beginner's Guide
Active Directory (AD) is the directory and identity platform behind many Windows networks. It gives an organization a shared place to manage users, computers, groups, policies, and service identities instead of maintaining separate accounts on every server. This guide explains the architecture that makes AD work, how authentication and replication flow through it, and how to operate a small lab or production domain without treating a domain controller like an ordinary application server.
What Is Active Directory?
In most Windows infrastructure discussions, “Active Directory” means Active Directory Domain Services (AD DS). AD DS is a distributed directory service running on Windows Server. It stores objects such as users, computers, groups, organizational units (OUs), and service accounts, then makes those objects available to administrators and network services through LDAP and related protocols.
AD DS combines several capabilities:
- Identity storage: The directory records object attributes such as a user’s name, group memberships, computer properties, and account state.
- Authentication: Kerberos is the default protocol for domain authentication. NTLM remains available for compatibility, but should not be the design target for new systems.
- Authorization: Applications and file servers evaluate security identifiers (SIDs), group memberships, and access control lists (ACLs) to decide what an authenticated identity can use.
- Configuration management: Group Policy distributes settings to domain-joined users and computers.
- Service discovery: DNS records allow clients to locate domain controllers, Kerberos services, global catalog servers, and other directory-aware services.
AD DS is not the same product as Microsoft Entra ID, formerly called Azure Active Directory. AD DS provides a traditional domain, LDAP, Kerberos, domain join, and Group Policy. Entra ID is a cloud identity platform for modern application authentication, device identity, and cloud access. Hybrid identity can connect the two, but one does not replace the other in every workload.
The Problem Active Directory Solves
Without a directory, each server or application needs its own identity database. An employee joining the organization might require accounts on file servers, laptops, internal applications, and remote-access systems. Removing access during a departure is equally difficult, and inconsistent permissions accumulate over time.
AD DS centralizes identity while keeping the directory distributed for availability. A user can authenticate to a nearby domain controller and use authorized resources without manually creating a local account on each server. Administrators can delegate narrowly scoped tasks, place devices into OUs, and apply policies consistently.
Centralization does not make the directory automatically secure. A compromised domain administrator account can affect a large part of the environment, and a poorly designed OU or group structure can grant excessive access. The useful mental model is therefore centralized identity with distributed replicas and carefully bounded administration, not “one server that controls everything.”
How Active Directory Works: Architecture and Request Flow
AD DS has a logical structure for organizing objects and a physical structure for deciding where directory services run and how they communicate.
Logical structure
- A forest is the top-level AD DS instance. It has one schema and configuration partition, and it is the primary security boundary for the directory.
- A tree is a set of domains that share a contiguous DNS namespace.
- A domain is a directory partition and administrative unit with its own domain controllers, objects, and policies.
- An OU is a container inside a domain. OUs organize objects, support delegation, and provide targets for Group Policy links; they are not independent security boundaries.
- The schema defines object classes and attributes. The configuration partition stores forest-wide topology and service configuration. The domain partition stores users, groups, computers, and other domain objects.
Physical structure
- Domain controllers (DCs) host the AD database, authenticate clients, answer directory queries, and replicate changes.
- Sites represent network locations connected by fast, reliable links. Their associated IP subnets help clients select nearby DCs and help replication use appropriate site links.
- Global Catalog (GC) servers hold a partial attribute set for objects across the forest, making forest-wide searches and some logon operations possible without querying every domain.
- SYSVOL stores Group Policy templates and logon scripts. Its contents are replicated separately from the directory database, using DFS Replication in supported modern deployments.
- DNS publishes service-location records. A domain controller can be healthy while client logons still fail if DNS cannot locate LDAP or Kerberos services.
Authentication and resource access flow
The common domain logon path looks like this:
Client finds a site-aware DC through DNS → DC validates the account with Kerberos → DC issues a ticket-granting ticket (TGT) → client requests a service ticket → target service validates the ticket and evaluates the user’s token and ACLs.
The client does not send the user’s password to every file server. The Key Distribution Center (KDC), which runs on a domain controller, issues time-limited Kerberos tickets. The client presents a service ticket to a resource such as a file server, web application, or database. The resource then checks the identity’s SIDs and group memberships against its local authorization rules.
LDAP is used for directory queries and updates, while DNS is used to locate the correct services. Active Directory-integrated DNS zones commonly replicate through AD application partitions and support secure dynamic updates. For the DNS records, site selection, and replication scopes that make this work, see Windows DNS Server architecture.
Replication and special roles
AD DS uses multi-master replication for most directory changes: writable DCs accept updates and replicate them to their partners. Replication metadata tracks object versions and originating servers so changes can converge. Intra-site replication favors rapid notification over bandwidth conservation; inter-site replication uses site-link topology, schedules, and compression to reduce WAN traffic.
Five Flexible Single Master Operations (FSMO) roles handle operations that should not be performed concurrently by every DC:
| Role | Scope | Main responsibility |
|---|---|---|
| Schema Master | Forest | Coordinates schema changes |
| Domain Naming Master | Forest | Controls adding and removing domains |
| RID Master | Domain | Allocates relative identifier pools for new security principals |
| PDC Emulator | Domain | Helps with password-change convergence, time hierarchy, and compatibility operations |
| Infrastructure Master | Domain | Maintains references to objects in other domains |
FSMO roles are not a substitute for multiple domain controllers. A domain can continue many operations when a role holder is unavailable, but role-specific failures and recovery procedures must be documented.
Components and Deployment Variants
The right AD design depends more on administrative boundaries, network topology, and recovery requirements than on the number of OUs someone wants to draw.
| Pattern | Strength | Cost or risk | Good fit |
|---|---|---|---|
| Single domain in one forest | Simple policy, trust, and administration model | A shared forest-wide security boundary | Most small and medium environments |
| Multiple domains in one forest | Separate domain administration and naming boundaries | More trusts, policies, DNS, and troubleshooting | Genuine administrative or organizational separation |
| Multiple trees in one forest | Different DNS namespaces while sharing forest services | Still shares the forest security boundary and schema | Business units needing distinct namespaces |
| Separate forests with a trust | Strongest separation between directory administrations | Separate schemas, global catalogs, and lifecycle processes | Mergers, regulated boundaries, or partner access |
| Read-only domain controller (RODC) | Local authentication with reduced write and credential exposure | Requires WAN access for writes and uncached credentials | Physically insecure or bandwidth-constrained branch sites |
| Managed AD DS in cloud infrastructure | Provider-operated availability and maintenance | Provider feature limits and dependency on cloud networking | Applications requiring traditional domain protocols without owning DC hardware |
Do not create a new domain merely to organize departments. OUs, delegated permissions, security groups, and Group Policy security filtering usually provide that organization with less operational overhead. A new domain or forest is justified when it creates a boundary that the simpler design cannot provide.
For hybrid environments, domain controllers can run on-premises and in connected cloud networks, but replication still requires dependable routing, DNS, time synchronization, and the required firewall ports. Cloud application identity may be better served by Entra ID rather than extending AD DS to every workload.
Real-World Use Cases
Windows workstation and server management
Domain join lets an organization apply computer policies, deploy software, configure security settings, and control local administrator membership from a central management plane. Group Policy is especially useful for baseline configuration, but it should be kept modular and documented. See Group Policy Object management systems for policy design and troubleshooting.
File, print, and application authorization
Security groups provide an identity-based layer over file shares, printers, databases, and internal applications. A role group such as Finance-Read can be granted access to a resource, while user accounts are added to the group through an auditable process. This is easier to review and remove than assigning permissions directly to individual accounts.
Branch-office authentication
Sites, subnets, local DCs, and RODCs can keep authentication traffic local. An RODC is useful when the branch server room is not trusted enough for a writable DC, but credential caching must be restricted to the accounts that need local sign-in.
Hybrid identity
AD DS can remain the source for domain-joined Windows systems while selected identities and attributes synchronize to a cloud identity provider. The boundary between on-premises authentication, cloud authentication, device management, and application authorization should be explicit. For endpoint management patterns, see Intune MDM configuration for Windows devices.
Privileged administration
Domain administrators should not sign in to ordinary browsing and email workstations. Dedicated administrative devices, tiered accounts, and restricted management paths reduce credential exposure. See Privileged Access Workstation architecture for a fuller treatment of this model.
Practical Considerations and Management Guide
Plan before promoting a domain controller
Before installing AD DS, decide the forest and domain names, DNS ownership, site and subnet map, OU and delegation model, time source, backup target, and recovery contacts. A lab should use a namespace that cannot collide with production. In production, deploy at least two writable DCs in independent failure domains rather than relying on a single “primary” controller.
Domain controllers should have stable addressing, reliable DNS resolution, synchronized time, current patches, and tightly limited software. Avoid installing unrelated applications or using a DC as a general file or web server. Install Windows Server Core when the team can operate it confidently; the Windows Server Core administration guide covers the management model.
Create a new forest with PowerShell
The following example is a lab-oriented starting point. Replace the example namespace, verify the prerequisites, and never put a real password directly in a script or source repository.
# Run in an elevated PowerShell session on a prepared Windows Server.
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
$dsrmPassword = Read-Host "DSRM password" -AsSecureString
Install-ADDSForest `
-DomainName "corp.example.com" `
-DomainNetbiosName "CORP" `
-InstallDns `
-SafeModeAdministratorPassword $dsrmPassword `
-Force
In an existing forest, use the AD DS deployment cmdlets for adding a domain controller rather than creating a second forest. Promotion changes the server’s role and normally reboots it, so schedule the operation and confirm that a recovery path exists.
Use groups and OUs for delegation
OUs should reflect management boundaries, not every reporting relationship. A common starting point separates workstations, servers, users, service accounts, and privileged accounts. Use security groups for resource access and delegate only the permissions required for a team’s task.
Import-Module ActiveDirectory
$domain = "DC=corp,DC=example,DC=com"
New-ADOrganizationalUnit -Name "Workstations" -Path $domain
New-ADOrganizationalUnit -Name "Servers" -Path $domain
New-ADOrganizationalUnit -Name "Users" -Path $domain
New-ADGroup -Name "Finance-Read" -GroupScope Global -GroupCategory Security `
-Path "OU=Groups,$domain"
$password = Read-Host "Temporary user password" -AsSecureString
New-ADUser -Name "Example User" `
-SamAccountName "example.user" `
-UserPrincipalName "[email protected]" `
-Path "OU=Users,$domain" `
-AccountPassword $password `
-Enabled $true
In a production automation pipeline, obtain secrets from an approved secret-management system and add change control, logging, and review around account creation. Do not use Domain Admin for routine user or group management.
Check health, replication, and DNS
A successful promotion is not proof that the directory is healthy. Test from more than one DC and from representative client sites:
# Directory and DNS diagnostics
dcdiag /e /test:DNS
# Replication summary and per-partner metadata
repadmin /replsummary
Get-ADReplicationPartnerMetadata -Target * -Scope Forest |
Select-Object Server, Partner, LastReplicationSuccess, LastReplicationResult
# Confirm DC discovery from the client or management host
nltest /dsgetdc:corp.example.com
Investigate stale DNS records, replication errors, time skew, failed SYSVOL replication, and clients mapped to the wrong site. Monitor directory-service, DNS-server, DFS Replication, and security event logs. For broader Windows event collection and analysis, see Windows Event Log analysis and monitoring.
Protect and recover the directory
Back up system state for domain controllers with a supported backup product and test both authoritative and non-authoritative recovery procedures. Keep backups isolated from ordinary domain credentials and production administrative paths. AD Recycle Bin helps recover deleted objects when enabled, but it is not a replacement for system-state backups or forest-recovery planning.
Use separate standard and privileged accounts, phishing-resistant MFA where supported, restricted administration hosts, and time-limited elevation. Review membership in Domain Admins, Enterprise Admins, Administrators, and other delegated groups. Keep domain controllers patched and protect their physical, hypervisor, and backup layers. If virtualized DCs are part of a disaster-recovery plan, Hyper-V Replica disaster recovery should be evaluated alongside—not instead of—directory-aware backup and recovery.
Common Misconceptions
An OU is a security boundary. An OU is an administrative container and a Group Policy target. The forest is the meaningful AD DS security boundary; permissions and delegation must be designed accordingly.
A second DC is just a backup copy. A second DC improves availability, but replication can also copy accidental changes, malicious changes, and configuration mistakes. Backups, monitoring, and recovery exercises remain necessary.
Sites control user permissions. Sites influence DC discovery and replication routing. They do not grant resource access. Authorization comes from security principals, group membership, ACLs, and application rules.
DNS is an optional add-on. AD DS depends on DNS service-location records. Clients can resolve public websites while still being unable to locate a domain controller, so general Internet resolution is not a sufficient DNS health check.
Every department needs its own domain. Departments usually need OUs, groups, delegated administration, and policy boundaries—not separate domains. Additional domains and forests add replication, trust, DNS, and recovery complexity.
FSMO roles make one domain controller the primary server. AD DS is multi-master for most operations. FSMO roles coordinate a small set of single-writer tasks; they do not make ordinary authentication dependent on one DC.
Active Directory and cloud identity are interchangeable. AD DS and Entra ID overlap in identity scenarios but expose different protocols, management models, and application capabilities. Choose based on the workload instead of treating a product rename as an architecture migration.
Related Articles
- Active Directory Domain Services system design — compare forest, domain, site, replication, and hybrid design choices.
- Windows DNS Server architecture — understand the DNS records and site-aware discovery that AD DS requires.
- Group Policy Object management systems — design, scope, troubleshoot, and automate policy deployment.
- Privileged Access Workstation architecture — protect administrative credentials and management paths.
- Windows Server Core administration — manage a minimal Windows Server installation suitable for infrastructure roles.
- LDAP integration with Linux systems — connect non-Windows clients to directory services with appropriate security boundaries.
For authoritative reference material, consult Microsoft’s Active Directory Domain Services overview, AD DS replication concepts, AD DS design and planning guidance, and FSMO role documentation.

