Skip to content
Tutorials Center
My learning

Topics

LDAP and Active Directory Tutorial

Learn LDAP and Active Directory step by step: 38 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is a Directory Service? Learn what a directory service is, how it differs from a database, and why organizations use LDAP and Active Directory to manage users and resources.
  2. 2 LDAP History, Standards and Versions Trace LDAP from X.500 and DAP to LDAPv3, learn which RFCs define it, and see how OpenLDAP, 389 DS and Active Directory implement the standard.
  3. 3 Active Directory Overview Understand what Active Directory Domain Services provides, its main components (domain controllers, DNS, Kerberos, Group Policy) and how they fit together.
  4. 4 Lab Setup and Tools for LDAP and AD Build a safe practice lab with OpenLDAP or a Windows Server domain controller, and learn the essential tools: ldapsearch, ADUC, PowerShell and LDAP browsers.

Directory Concepts

  1. 5 The Directory Information Tree (DIT) Learn how LDAP arranges entries in a hierarchy called the Directory Information Tree, what root, base DN, suffix, parents and children mean, and how to design one.
  2. 6 Entries, Attributes and Object Classes Learn how an LDAP entry is built from attributes, how object classes (structural, auxiliary, abstract) control what is allowed, and how to read common person entries.
  3. 7 The LDAP and Active Directory Schema Understand the directory schema: attribute types, syntaxes, OIDs, matching rules, how to read schema definitions and how Active Directory schema extension works.
  4. 8 Distinguished Names and RDNs Learn how LDAP names entries with distinguished names and relative distinguished names, the escaping rules of RFC 4514, and common DN mistakes.
  5. 9 LDIF: The LDAP Data Interchange Format Learn LDIF, the text format for LDAP entries and changes: record syntax, line folding, base64 values, add, modify, delete and modrdn change records.

LDAP Protocol and Queries

  1. 10 LDAP Operations and Result Codes Learn the LDAP protocol operations (bind, search, compare, add, modify, delete, modDN, unbind, extended), the message model and the result codes you will meet.
  2. 11 LDAP Search Filters Master LDAP filter syntax: equality, presence, substring, ordering, approximate, AND/OR/NOT in prefix notation, extensible match and escaping per RFC 4515.
  3. 12 Search Scope, Base DN and Search Parameters Learn the parameters of an LDAP search: base DN, scope (base, one, sub), alias dereferencing, size and time limits, attribute selection and ldapsearch examples.
  4. 13 Modifying Entries: Add, Modify, Delete and Rename Practise the LDAP write operations with ldapadd, ldapmodify, ldapdelete and ldappasswd: atomic modifications, replace versus add, renaming, moving and error handling.
  5. 14 LDAP Controls, Paging, Sorting and Referrals Learn LDAP controls: simple paged results, server-side sort, virtual list view, the ManageDsaIT and tree delete controls, referrals, and how to read a big directory safely.

Active Directory Structure

  1. 15 Domains, Trees and Forests Understand the logical structure of Active Directory: domains, domain trees, forests, naming contexts, trusts, functional levels and how to plan a single-domain design.
  2. 16 Organizational Units and Containers Learn how Active Directory organizes objects with OUs and built-in containers, how to design an OU structure, delegate control, link Group Policy and protect OUs from deletion.
  3. 17 Users, Computers and Groups in Active Directory Learn the key Active Directory objects: user and computer accounts, important attributes (sAMAccountName, UPN, SID, userAccountControl), and group types and scopes.
  4. 18 Sites, Subnets and Replication Learn how Active Directory sites and subnets model your network, how the KCC builds replication topology, how multi-master replication and USNs work, and how to check health.
  5. 19 Global Catalog and FSMO Roles Understand the Global Catalog and the five FSMO operations master roles in Active Directory: what each does, where it lives, how to find, transfer and seize them.

Group Policy and Management

  1. 20 Group Policy Objects and Processing Order Learn what a Group Policy Object is, how computer and user settings are applied, the LSDOU processing order and how often policy refreshes in an Active Directory domain.
  2. 21 GPO Links, Inheritance, Enforced and Block Inheritance Understand GPO link order, inheritance, the Enforced option and Block Inheritance, and learn how to work out which Group Policy wins when several levels conflict.
  3. 22 Security Filtering, WMI Filters, Preferences and Loopback Control exactly who gets a Group Policy: security filtering permissions, WMI filters, item-level targeting in Group Policy Preferences and user-group loopback processing.
  4. 23 Troubleshooting Group Policy with gpresult and Event Logs A practical method for finding why a GPO does not apply: gpupdate, gpresult, Resultant Set of Policy, event logs, SYSVOL and version checks, DNS and common causes.

Authentication: Kerberos

  1. 24 Kerberos Concepts: Realms, KDC, TGT and Service Tickets Learn the core ideas of Kerberos in Active Directory: the KDC on every domain controller, the krbtgt account, TGTs and service tickets, lifetimes, renewal and the clock-skew rule.
  2. 25 Kerberos Exchanges Step by Step: AS, TGS and AP Follow the three Kerberos exchanges in Active Directory: AS-REQ and AS-REP, TGS-REQ and TGS-REP, then AP-REQ and AP-REP, with pre-authentication, the PAC and who can read each message.
  3. 26 SPNs, Kerberos Delegation and Managed Service Accounts Learn Service Principal Names, why duplicate SPNs break Kerberos, how unconstrained, constrained and resource-based delegation differ, and why gMSAs are safer service accounts.
  4. 27 Kerberos Errors, NTLM Fallback and Troubleshooting Diagnose Active Directory authentication problems: common Kerberos error codes, NTLM versus Kerberos, encryption types, security events 4768, 4769 and 4771, and Kerberoasting detection.

Integration and Security

  1. 28 LDAPS, StartTLS, LDAP Signing and Channel Binding Secure LDAP traffic to Active Directory: simple versus SASL binds, LDAPS on port 636, StartTLS, LDAP signing requirements, channel binding tokens and how to roll out the hardening safely.
  2. 29 Application Authentication with LDAP: Search, Then Bind Integrate your application with Active Directory login: the search-then-bind pattern, service accounts, group checks, LDAP filter and DN escaping against injection, paging and caching.
  3. 30 Linux Integration: realm join, SSSD and Kerberos Configuration Join a Linux server to Active Directory with realmd and SSSD: DNS and time prerequisites, krb5.conf, sssd.conf, UID mapping from SIDs, sudo and SSH access control and troubleshooting.
  4. 31 Hardening Active Directory: Tiering, Privileged Groups and Auditing Protect your domain: the tiered administration model, privileged groups and AdminSDHolder, Protected Users, LAPS, krbtgt rotation, key audit events and common attack paths explained.

Administration

  1. 32 The Active Directory PowerShell Module Manage Active Directory with PowerShell: Get-ADUser, filters versus LDAP filters, creating users from a CSV, group and OU tasks, stale-account reports, the AD Recycle Bin and safe scripting habits.
  2. 33 Replication, Sites, Subnets and FSMO Roles Understand multi-master Active Directory replication: USNs and conflict resolution, sites, subnets and site links, the KCC, SYSVOL and DFSR, the five FSMO roles and repadmin checks.
  3. 34 Password Policies, Fine-Grained Policies and Account Lockout Configure Active Directory password policy: the domain-wide policy, fine-grained password settings objects and their precedence, lockout threshold and observation window, and modern guidance.
  4. 35 Backup, Recovery and Maintenance of Active Directory Back up and recover Active Directory: system state backups, tombstone lifetime, the Recycle Bin, authoritative and non-authoritative restore, DSRM, forest recovery and routine health checks.

Projects and Practice

  1. 36 Project: Design an OU Structure and Delegation Model Design a practical Active Directory OU structure for a mid-sized company, plan delegation and GPO placement, and validate the design with a runnable Python checker.
  2. 37 Project: Build an LDAP Filter Engine in Python Build a small LDAP search filter parser and evaluator in Python: tokenise RFC 4515 syntax, handle AND, OR, NOT, substrings, comparisons and the bitwise matching rule, and query an in-memory directory.
  3. 38 Practice: Active Directory Scenarios and an Audit Script Test your skills with realistic Active Directory scenarios on Group Policy, Kerberos, LDAP security and recovery, plus a runnable stale-account audit that turns sample data into a report.