Active Directory, Kerberos, and Group Policy
Understand how Active Directory is structured, how Kerberos proves identity, and how Group Policy and tiered administration shape a secure domain.
By the end, you’ll be able to…
- Describe the roles of forests, domains, organisational units, sites, and domain controllers.
- Explain why DNS and LDAP are critical dependencies for Active Directory authentication.
- Trace a Kerberos logon from the AS exchange through the TGT and service ticket.
- Distinguish user, group, computer, and service account risks.
- Review Group Policy and apply a tiered administration model.
01Forests, Domains, OUs, Sites, and Domain Controllers
Active Directory Domain Services (AD DS) is a directory that stores identities, configuration, and policy for a Windows environment. A forest is the top-level security and replication boundary. A domain is a namespace and administrative container inside the forest, and a tree is a set of domains that share a contiguous DNS name. Organisational units (OUs) are containers used to delegate administration and link Group Policy. A site represents a physical network location, usually defined by IP subnets, so clients can find a nearby domain controller and replication can follow the network topology.
A domain controller (DC) holds a writable copy of the directory database, the SYSVOL share that distributes Group Policy, and the Kerberos key distribution centre. Most changes replicate between DCs using a multi-master model, while a small number of flexible single master operations (FSMO) roles handle special tasks. Time synchronisation matters because Kerberos rejects tickets that are too far outside the allowed clock skew. Virtualising DCs requires care: restoring an old snapshot can cause replication problems, so use supported backup and restore procedures rather than casual rollbacks.
Directory design is a security decision. An OU structure should follow delegation and policy needs, not only the organisation chart. Keep Tier 0 assets such as DCs, certificate authorities, and privileged administration systems in a clearly separated administrative model. Protect built-in containers and the AdminSDHolder object, because permissions there can silently grant control over every privileged account. Document who can create accounts, link GPOs, and modify directory permissions before an incident forces you to discover it.
02DNS and LDAP: The Directory's Two Lifelines
Active Directory depends on DNS. Domain members locate domain controllers through service (SRV) records such as _ldap._tcp.dc._msdcs, and the DC locator process uses those records during logon. If a workstation points at the wrong DNS server, or if the AD-integrated zone is missing or stale, users experience logon failures that look like password problems. DNS administrators can redirect authentication traffic, which is why DNS infrastructure belongs in the Tier 0 security boundary.
LDAP is the protocol used to read and modify directory objects. Clients connect to port 389 for LDAP or 636 for LDAPS, bind with an identity, and search using a distinguished name and a filter. LDAP signing and channel binding protect the integrity of authentication and help prevent relay attacks. Anonymous or unauthenticated LDAP access should be tightly limited. Monitor unusual LDAP queries, especially large enumerations from workstations that have no business reading the whole directory.
Sites and replication connect the logical directory to the physical network. A poorly defined site or subnet can send authentication and replication traffic across slow links. Replication failures create stale passwords, inconsistent group membership, and helpdesk tickets that appear random. Review replication health, DNS scavenging, and zone permissions as part of routine operations. These are not glamorous controls, but they determine whether the identity system is trustworthy.
03Users, Groups, Computers, and Service Accounts
A user object has a samAccountName, a user principal name, group memberships, logon hours, workstation restrictions, and account options. Some options weaken security: password never expires, Kerberos pre-authentication disabled, unconstrained delegation, and a password stored with reversible encryption. Stale accounts are also a risk because they may retain group membership and receive no attention from the owner. Review last logon dates, disabled status, and the reason an account still exists.
Groups are how AD expresses authorisation. Global groups typically contain users, domain local groups receive permissions on resources, and universal groups can span domains. The AGDLP pattern (accounts into global groups, global groups into domain local groups, permissions assigned to domain local groups) keeps access understandable. Privileged groups such as Domain Admins, Enterprise Admins, Schema Admins, Administrators, Account Operators, Backup Operators, and DnsAdmins deserve recursive review because nesting can hide effective control.
Computer accounts are identities too. Each domain-joined machine has a machine account with a rotating password, and it can be delegated rights or used in authentication. Service accounts are user or managed accounts that run applications, often with a service principal name (SPN). Prefer group managed service accounts (gMSAs) where the platform supports them, restrict interactive logon, grant only the required permissions, and document where each account is used. A service account with a weak, never-changing password is a standing invitation to credential theft.
04Kerberos Tickets, SPNs, and Delegation
Kerberos is the default authentication protocol in an AD domain. The client sends an authentication service request to the KDC on a domain controller, proves knowledge of its secret through pre-authentication, and receives a ticket-granting ticket (TGT) encrypted with the krbtgt account's key. When the user needs a service, the client presents the TGT in a ticket-granting service request, names the target through a service principal name (SPN), and receives a service ticket encrypted with the service account's key. The ticket includes a privilege attribute certificate (PAC) that describes group membership.
An SPN maps a service instance to an account. Duplicate SPNs cause authentication failures and can be abused during service ticket requests. Service tickets are cached on the client, which is why klist is useful during troubleshooting and incident response. Kerberos supports different encryption types; AES is preferred, while RC4 is weak and often abused in offline cracking. The msDS-SupportedEncryptionTypes attribute controls which types an account supports, and domain policy should not allow obsolete algorithms.
Delegation lets a service act as a user to reach another service. Unconstrained delegation is dangerous because a compromised service can capture and reuse user tickets. Constrained delegation limits the target services, and resource-based constrained delegation lets the resource decide which services may delegate to it. Protocol transition adds another layer of complexity. Mark privileged accounts as sensitive and not delegable, avoid unconstrained delegation on Tier 0 systems, and audit delegation settings regularly. Trust relationships between domains and forests extend identity across boundaries; understand trust direction, transitivity, and SID filtering before assuming a trust is safe.
05Group Policy, Tiered Administration, and RSAT
Group Policy is a powerful configuration engine. A GPO can set security options, password and lockout policy, firewall rules, service configuration, scripts, scheduled tasks, and application settings. It can be linked at the site, domain, or OU level, and link order, inheritance, enforcement, security filtering, WMI filters, and loopback processing determine which settings apply. Because a single GPO can change every domain controller, GPO administration is a Tier 0 capability and must be treated like domain admin access.
Review GPOs for both intent and control. Who can edit the GPO? Who can link it? What does it configure, and does a local administrator on a workstation have a path to modify a GPO that applies to servers? Back up GPOs before changes, use change control, and compare reports. gpresult /r shows what applied to the current user and computer, while Get-GPOReport produces a fuller configuration record. Unexpected changes to GPO links or permissions are security events, not just configuration drift.
Tiered administration separates credentials and systems by sensitivity. Tier 0 covers the directory, domain controllers, certificate authorities, and identity infrastructure. Tier 1 covers servers and applications. Tier 2 covers workstations and user devices. Administrators use separate accounts for each tier and perform privileged work from a privileged access workstation or jump host. A Domain Admin should never sign in to a user's laptop to fix an application, because that exposes Tier 0 credentials to Tier 2 malware. RSAT provides the management tools, but the tier model decides where and how they are used.
# Install RSAT on a Windows 10/11 management workstation in the lab.Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0Add-WindowsCapability -Online -Name Rsat.Dns.Tools~~~~0.0.1.0Import-Module ActiveDirectoryGet-ADDomain | Select-Object Name, DNSRoot, DomainMode, PDCEmulatorGet-ADUser -Filter * -Properties LastLogonDate | Select-Object SamAccountName, Enabled, LastLogonDateGet-ADGroupMember -Identity "Domain Admins" -Recursive | Select-Object Name, SamAccountName, objectClassGet-ADComputer -Filter * | Select-Object Name, OperatingSystemgpresult /rklistklist tgtDomain: lab.local Mode: Windows2016Domain PDCEmulator: dc01.lab.local Domain Admins members: 4 (2 users, 2 groups) Group Policy applied: 3 computer settings, 2 user settings Cached tickets: krbtgt/LAB.LOCAL @ LAB.LOCAL
The ideas worth keeping.
- AD structure is both logical and physical: forests, domains, OUs, sites, and domain controllers each solve a different problem.
- DNS and LDAP are critical dependencies; failures there look like authentication and permission problems.
- Kerberos issues TGTs and service tickets, and SPNs and delegation settings determine what a service can reach.
- Group Policy and directory permissions are Tier 0 capabilities that need change control and tiered administration.
Make it yours.
Type and test your code right here in the interactive workspace. Run your solution, check the output, and compare with the worked guide when ready.
Exercise 1: Trace group-based access
A user named aria is a member of Helpdesk, and Helpdesk is nested inside a domain local group called Server Support. Server Support has Modify permission on a file share. Explain how you would verify the chain with PowerShell and why the AGDLP pattern makes this easier to review.
Explore a worked solution
Run Get-ADUser aria -Properties MemberOf to see direct groups, then use Get-ADGroupMember -Identity Helpdesk -Recursive and Get-ADGroupMember -Identity 'Server Support' -Recursive to follow nesting. Confirm the share and NTFS permissions with Get-Acl and icacls. The chain is account -> global group -> domain local group -> permission. AGDLP keeps permissions attached to domain local groups, so removing a user from Helpdesk removes their effective access without editing resource ACLs. Document each link and check for circular or unnecessary nesting.Effective access is the sum of direct and nested membership. Following the chain in the directory and then checking the resource ACL proves whether the intended design matches reality.
Exercise 2: Read Kerberos and policy evidence
A lab user can log on but cannot open a file share. klist shows a TGT but no service ticket for the file server, and gpresult shows that a drive-mapping GPO did not apply. List the checks you would perform and the commands you would use.
Explore a worked solution
First confirm the user's group membership and the SPN for the file server with setspn -L and Get-ADUser. Run klist to see whether a service ticket is requested after accessing the share; use klist purge to clear cached tickets, then retry. Check DNS resolution for the server and the domain controller with Resolve-DnsName. Run gpresult /r and gpresult /h report.html to see which GPOs applied and which were denied by security filtering or WMI filters. Check the user's OU, group membership, and whether the GPO link is enabled. Review the System and Security logs on the client and the DC for Kerberos errors such as 4771.Kerberos failures often look like permission problems. Separating ticket acquisition, SPN resolution, DNS, and policy application prevents random changes.
What stayed with you?
Check the ideas while they’re fresh. Your answers stay in this page and feedback appears as you go.
Keep exploring.
The official references behind this lesson, when you want a second angle or the full details.
One lesson closer.
Reading is a start. Trying it yourself makes the connection.