๐ง What is Active Directory?
Active Directory is Microsoftโs system to manage:
All users, passwords, computers, and permissions inside a company network
Think of it as:
The master database of employees in a company.
It stores:
- Username
- Password
- Department
- Groups
- Which systems they can access
๐ข Real company example
In an office:
When you log into your office laptop with:
username: sajid
password: ****
You are logging into Active Directory.
Not Google. Not Okta.
Your Windows login = AD authentication.
๐ฆ What AD manages
| Thing | Managed by AD |
|---|---|
| Employee login | โ |
| Laptop login | โ |
| File server access | โ |
| Shared drives | โ |
| Internal apps | โ |
| User groups (HR, IT, Finance) | โ |
AD is the identity brain of the company.
๐ Where Okta comes in
Old companies already have AD with thousands of employees.
They donโt want users to remember new passwords for Okta/apps.
So they configure:
Okta trusts Active Directory as Identity Provider
Flow becomes:
User โ Okta โ Redirect to AD โ Login โ Okta issues JWT
User never knows Okta exists.
๐ง AD vs Okta difference
| Active Directory | Okta |
|---|---|
| Stores employees | Stores application users |
| Windows / network login | API / app login |
| On-premise server | Cloud service |
| LDAP / Kerberos | OAuth2 / OIDC / SAML |
| Identity source | Token issuer |
๐ What is Azure AD (Entra ID)?
Microsoft moved AD to cloud โ Azure AD (now Entra ID)
Same concept, cloud version.
Thatโs why you see:
Login with Microsoft
That is Azure AD acting as IdP.
๐ One-line clarity
Active Directory = Companyโs user database Okta = Uses that database to give tokens to apps
Mental picture
AD โ knows employees
Okta โ trusts AD
Your API โ trusts Okta
Chain of trust.