📘 Visual Posts About Contact
Explore 📋 Cheat Sheets ✏️ Practice 🎮 Games 🎬 Simulations 🃏 Flashcards 🎯 Interactive Layers 📖 Storytelling
💜 Support my site

Active Directory & Unified Identity

Module 11 Zero to Hero 2026 Server Track

Imagine managing 5,000 employee laptops, 200 servers, and 300 printers without walking to a single desk. Active Directory is the central digital security desk that lets every employee log in anywhere with one badge—and lets you lock down or configure every machine in one click.

Start Module 11 ↓
UNIFIED IDENTITY — DOMAIN ARCHITECTURE Domain Controller (AD DS) Central Security Desk · corp.local LDAP Directory Phonebook (Port 389) Kerberos KDC SSO Tickets (Port 88) GPO Engine LSDOU Rules Alice's Laptop [email protected] File Server \\fs01\Finance 5,000+ PCs 1-Click Policies ONE IDENTITY · SINGLE SIGN-ON · CENTRAL CONTROL

01 Workgroup vs. Domain

Define: A Workgroup is a peer-to-peer network where every computer manages its own usernames and passwords locally. A Domain is a centralized network where a dedicated server—called a Domain Controller (DC)—stores all user accounts, computer accounts, and security rules in one shared database.

🏘️ Real-World Analogy: Standalone Houses vs. a Gated Corporate Campus

A Workgroup is like a neighborhood of standalone houses. Every house has its own front door lock and its own guest list. If Alice wants to visit 10 houses, she needs 10 separate keys. If Alice leaves the neighborhood, you have to walk to all 10 houses to change the locks.

A Domain is like a gated corporate campus with a central security desk. Every employee gets one ID badge from the security desk. That single badge opens their laptop, the printer, and the finance shared folder. If Alice leaves the company, IT disables her badge once at the central desk—and she is instantly locked out of every building and computer.

WORKGROUP (Standalone Houses) No Central Server · Local SAM Database PC-01 Local Users DB PC-02 Local Users DB PC-03 Local Users DB 10 PCs = Create & manage 10 separate accounts VS DOMAIN (Gated Campus) Central AD DS Database · Single Sign-On Domain Controller All Users, PCs & Rules PC-01 Joined FileSrv Joined PC-5000 Joined 5,000 PCs = 1 central account & 1-click policy

Understand & Know: Workgroup vs. Domain at a Glance

Feature Workgroup Active Directory Domain
User Accounts Stored locally on each PC (SAM database) Stored centrally on Domain Controllers (NTDS.dit)
Management Decentralized (walk to every PC) Centralized (manage thousands of PCs from one console)
Best Scale Home or tiny office (≤ 10 devices) Businesses, schools, hospitals, enterprises (10 to 100,000+ devices)
Security Rules Must configure password & firewall rules per PC Pushed automatically via Group Policy (GPO)

When to use which? Use a Workgroup only for home labs or tiny teams under 10 devices with no shared servers. The moment a company hires staff, shares files, or needs compliance (like enforcing screen locks and BitLocker encryption), you switch to a Domain.

02 Active Directory Hierarchy

Define: Active Directory organizes every user, computer, printer, and server inside a four-level hierarchy: Forest → Tree → Domain → Organizational Unit (OU).

Understand: Why not dump all 5,000 employees into one giant flat folder? Because Sales needs different rules than IT, and a company that acquires another company needs a way to connect two separate domain names safely. Active Directory uses nested containers so permissions and policies stay neat.

FOREST: company.com (Top Security & Schema Boundary) TREE 1: Contiguous DNS Namespace company.com Forest Root Domain us.company.com Child Domain eu.company.com Child Domain OU=Sales Folder OU=IT Folder OU=HR Folder OU=Servers Folder Objects Inside OUs: 👤 Users · 💻 Computers · 👥 Security Groups Trust TREE 2: New Brand acquired.org Separate Namespace Why Two Trees? Different DNS name, same Forest Schema & automatic trust! OU=Staff · OU=Apps

Know: What Each Level Does

01

Forest (The Entire Campus)

The outermost security boundary. Every domain inside a Forest shares the same Schema (blueprint of what a "User" or "Computer" looks like) and trusts other domains in the Forest.

02

Tree (Shared DNS Root)

A group of domains sharing a contiguous DNS name—like company.com, us.company.com, and eu.company.com.

03

Domain (Admin Boundary)

The core administrative unit. Holds its own database of users, computers, and password policies (e.g., corp.local or ad.company.com).

04

OU (Department Folders)

Organizational Units are folders inside a domain (e.g., OU=Finance, OU=Servers) used to organize objects and attach Group Policies.

🧠 Memory Trick: "F-T-D-O" — From Biggest to Smallest

Remember "Forests Tall, Domains Organized": Forest → Tree → Domain → Organizational Unit. Just like Country → State → City → Neighborhood!

03 Domain Controllers, LDAP & Kerberos

Define: A Domain Controller (DC) is a Windows Server running the Active Directory Domain Services (AD DS) role. It relies on three core helpers to run Unified Identity: DNS (to find the DC), LDAP (to look up accounts), and Kerberos (to issue login tickets).

🎡 Real-World Analogy: The Amusement Park Wristband

DNS is the street sign telling you where the park entrance is. LDAP is the park directory phonebook that checks if your name is on the guest list. Kerberos is the ticket booth (KDC): you show your ID once at the front gate and get a wristband (TGT). When you walk up to the roller coaster (the File Server), you don't show your ID or password again—you just flash your ticket and walk right on. That is Single Sign-On (SSO)!

User PC (Alice) Workstation DNS Server SRV Records Domain Controller KDC (Port 88) + LDAP File Server \\fs01\Finance 1. "Where is the DC?" 2. Alice logs in → Request TGT 3. KDC issues Wristband (TGT) 4. Show TGT → Ask for File Server Ticket 5. KDC issues File Server Ticket (TGS) 6. Present Ticket → Instant Access (SSO!)

Know the Three Identity Protocols

  • DNS (Port 53): Without working DNS, Active Directory breaks completely. PCs query DNS SRV records (like _ldap._tcp.dc._msdcs.corp.local) to find the nearest Domain Controller.
  • LDAP (Port 389 / LDAPS 636): Lightweight Directory Access Protocol. This is the query language apps and servers use to read/write the AD phonebook (e.g., "Look up Alice's email, department, and group memberships").
  • Kerberos (Port 88): The default authentication protocol in Active Directory. Your password is never sent across the network to file servers—only encrypted, time-stamped tickets. (Note: Kerberos requires clocks on all PCs and DCs to stay within 5 minutes of each other, which is why NTP time sync matters!)

⚠️ Classic Beginner Trap: Pointing a PC's DNS to 8.8.8.8

If you try to join a Windows PC to corp.local while its DNS is set to Google (8.8.8.8), it will fail with "An Active Directory Domain Controller could not be contacted." Google doesn't know where your internal DC lives! Always point domain-joined PCs to your internal AD DNS server first.

04 Group Policy Objects (GPOs)

Define: A Group Policy Object (GPO) is a collection of security, desktop, and software rules stored on the Domain Controller that automatically applies to users and computers across the network.

Understand: Want to disable USB flash drives for the Finance team, map a shared network drive for Sales, and enforce a 10-minute screen lock for all 5,000 employees? You create a GPO once, link it to the right container, and Windows applies it automatically—no touching individual PCs.

The LSDOU Processing Order (Who Wins?)

When a computer boots up or a user logs in, Windows applies GPOs in a strict four-step sequence called LSDOU. If two policies conflict (for example, one says "Allow USB" and another says "Block USB"), the last one applied wins.

GPO APPLICATION ORDER: LSDOU ("Last Writer Wins") L Local Policy Built into each PC gpedit.msc 1st · Weakest S Site GPO Physical office e.g., NYC-Subnet 2nd D Domain GPO Entire company e.g., corp.local 3rd OU OU GPO Specific dept e.g., OU=Finance 4th · WINS! If Domain GPO sets Wallpaper = Blue, and OU=Sales GPO sets Wallpaper = Gold: Sales users get Gold because OU is applied LAST (unless Domain GPO is marked "Enforced").

🧠 Memory Trick: LSDOU — "Let's Secure Data On Users"

Local → Site → Domain → OU. Because OU comes last, specific department rules naturally override general company rules!

Execute: Essential GPO Commands

Admins use two built-in commands on any domain-joined Windows PC to refresh or troubleshoot Group Policy:

# Force an immediate refresh of all Computer & User GPOs
gpupdate /force

# Check which GPOs actually applied to this PC and user
gpresult /r

✓ Checkpoint: Can you...

  • Explain why a Workgroup breaks down once a team grows past 10 computers?
  • Name the 4 levels of Active Directory hierarchy in order (F-T-D-O)?
  • Describe the difference between LDAP (phonebook) and Kerberos (SSO tickets)?
  • Predict which GPO wins in a conflict between a Domain GPO and an OU GPO?

05 Practical Lab: OU Design & Domain Join

Execute: Let's put everything together. In a real Windows Server environment, you design a clean OU structure first, verify DNS points to your Domain Controller, and join a member server or workstation to the domain with PowerShell.

Step 1: Create a Clean OU Structure with PowerShell

Instead of clicking through 20 menus, SysAdmins create OUs cleanly using the ActiveDirectory PowerShell module on the Domain Controller:

# Create top-level OUs for Corp departments and Servers
New-ADOrganizationalUnit -Name "Corp-Users" -Path "DC=corp,DC=local"
New-ADOrganizationalUnit -Name "Corp-Workstations" -Path "DC=corp,DC=local"
New-ADOrganizationalUnit -Name "Corp-Servers" -Path "DC=corp,DC=local"

# Create department sub-OUs inside Corp-Users for targeted GPOs
New-ADOrganizationalUnit -Name "Finance" -Path "OU=Corp-Users,DC=corp,DC=local"
New-ADOrganizationalUnit -Name "IT" -Path "OU=Corp-Users,DC=corp,DC=local"

Step 2: Point DNS to the DC & Join a Server to the Domain

On a new Windows Server (FS01) that you want to join to corp.local:

# 1. Verify DNS points to the Domain Controller (e.g., 10.0.10.10)
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses "10.0.10.10"

# 2. Test that the PC can locate the Domain Controller
nltest /dsgetdc:corp.local

# 3. Join the server to the domain and reboot
Add-Computer -DomainName "corp.local" -Restart

✏️ Practice Problem: Troubleshooting a Failed Domain Join

You just built a new Windows Server APP-01. Its IP is 10.0.20.50, and its DNS server is set to 1.1.1.1 (Cloudflare). When you run Add-Computer -DomainName "corp.local", it fails saying the domain could not be contacted. What are the two steps to fix it?

Show Solution

1. Fix DNS: Change APP-01's primary DNS server from 1.1.1.1 to your internal Domain Controller's IP address (so it can resolve corp.local SRV records).

2. Verify connectivity & rejoin: Run nltest /dsgetdc:corp.local (or Test-NetConnection on port 389 and 88), then re-run Add-Computer -DomainName "corp.local" -Restart.

🎯 Knowledge Check

Test your Active Directory knowledge — click an option for instant feedback. Score: 0 / 4

1. What is the main difference between a Windows Workgroup and an Active Directory Domain?

A Domain centralizes all accounts and rules on a Domain Controller, while a Workgroup stores accounts locally on each PC✅
A Workgroup is faster for 5,000+ enterprise computers❌
A Domain does not use IP addresses or DNS❌

2. In Active Directory, which protocol acts like the encrypted ticket booth for Single Sign-On (SSO)?

LDAP (Port 389)❌
Kerberos (Port 88)✅
DHCP (Port 67/68)❌

3. A Domain GPO sets the desktop wallpaper to Blue, while an OU GPO linked to OU=Finance sets it to Green. Assuming no "Enforced" flag is set, what do Finance users see?

Blue, because Domain policies always override OU policies❌
Green, because OU policies are applied last in LSDOU order✅
A random mix of Blue and Green❌

4. Which command forces an immediate Group Policy refresh on a domain-joined Windows computer?

gpupdate /force✅
ipconfig /flushdns❌
gpresult /r❌