Glossary>Directory

Directory

A hierarchical database (like LDAP) that stores and organizes information about users, groups, and network resources.

Active Directory manages 90%+ of enterprise directories (IDSA)LDAP is the standard protocol for directory access (RFC 4510)LoginRadius integrates with 50+ directory services (AD, LDAP, Azure AD)

What is Directory?

A directory is a hierarchical database that stores and organizes information about users, groups, devices, and network resources. Directories use a tree-like structure (DN - Distinguished Name) to organize entries. Common directory services include Active Directory (Microsoft), LDAP (open standard), and Azure AD (cloud). Directories are optimized for read-heavy workloads (authentication, lookups) rather than write-heavy (databases). They're the backbone of enterprise IAM, storing user credentials, group memberships, and access policies.

Analogy

Think of a directory like a corporate phone book - it lists all employees (users), their departments (groups), phone numbers (attributes), and who reports to whom (hierarchy). Anyone can look up who's in what department, but only IT can update the listings.

Types and Use Cases

Directory Components:

  • Entries: Users, groups, devices, organizational units (OUs)
  • Attributes: Email, phone, department, manager, group memberships
  • Hierarchy: Tree structure with parent/child relationships (DNs)
  • Schema: Defines what attributes an entry can have

Common Use Cases:

  • Active Directory: Enterprise user management (90%+ of Fortune 500)"
  • LDAP: Open-standard directory access (Linux, open-source)"
  • Azure AD: Cloud directory for Microsoft 365/enterprise apps"
  • CIAM Integration: Sync directory users to CIAM for customer access"

How it Works

1
Application (or IAM platform) receives authentication request with username/password
2
IAM platform queries directory (LDAP/AD) to retrieve user entry and verify password
3
Directory returns user attributes (groups, email, department) and validates credentials
4
IAM uses returned attributes for authorization decisions (RBAC based on group membership)
terminal
# LDAP Search Example
ldapsearch -x -H ldap://ad.corp.com \
  -D "cn=admin,dc=corp,dc=com" \
  -W \
  -b "dc=corp,dc=com" \
  "(sAMAccountName=jdoe)"

# Returns:
dn: CN=John Doe,CN=Users,DC=corp,DC=com
objectClass: user
sAMAccountName: jdoe
mail: john@corp.com
memberOf: CN=Engineering,CN=Groups,DC=corp,DC=com

Directory vs Database (RDBMS)

Directory
Database (RDBMS)
✓

Directory is hierarchical/tree-based,

✗

RDBMS is table-based (rows/columns)

✓

Directory is optimized for reads/lookups,

✗

RDBMS is for complex queries/transactions

✓

Directory uses LDAP protocol,

✗

RDBMS uses SQL

Best Practices for Directory

  • Use Read Replicas: Deploy read-only replicas for scale and availability"
  • Secure LDAP (LDAPS): Always use TLS/SSL for LDAP connections (port 636)"
  • Organize with OUs: Use Organizational Units to structure users by department/function"

How LoginRadius Powers Directory

LoginRadius CIAM platform integrates seamlessly with 50+ directory services including Active Directory, LDAP, Azure AD, Okta, and Ping Identity. Our platform supports LDAP sync, SCIM provisioning, SAML/OIDC federation with directory IdPs, and automated user lifecycle management. LoginRadius also provides migration tools, real-time sync options, and comprehensive audit logs for all directory integration activities.

FAQs

Directory is hierarchical/tree-based, optimized for reads/lookups (authentication, user info). RDBMS is table-based, optimized for complex queries and transactions. Directories use LDAP protocol; databases use SQL. Use directories for IAM (users, groups, attributes); use databases for application data (orders, products, transactions).

Active Directory is Microsoft's directory service (Windows-centric, integrated with Windows Server). LDAP is the open protocol that AD also supports. For Microsoft shops: use AD. For Linux/open-source: use OpenLDAP. Most organizations use both: AD for Windows environments, LDAP for cross-platform access.

LoginRadius integrates with 50+ directory services: (1) LDAP Sync - import users from OpenLDAP, AD, (2) Azure AD/Okta - federation via SAML/OIDC, (3) SCIM - automated provisioning/deprovisioning, (4) API Sync - poll directory for changes. LoginRadius also provides directory migration tools and real-time sync options.

Customer Identity, Simplified.

No Complexity. No Limits.
Thousands of businesses trust LoginRadius for reliable customer identity. Easy to integrate, effortless to scale.

See how simple identity management can be. Start today!