Enterprise Hybrid Identity & IAM Homelab

Implementing Okta, Active Directory, and Salesforce SAML in a Hybrid Environment

Joshua Bardari
Joshua Bardari Project Lead
Rusty the Cat
Rusty (Cat) Assistant / Moral Support

Project Overview

In this project I deployed a full Hybrid Identity solution integrating an on-premise Windows Server Active Directory with Okta Cloud. I configured Delegated Authentication to centralize credential management and established SAML federation with Salesforce, reducing login friction while enforcing Zero Trust MFA policies. Thank you to @sweeeezyit on TikTok for the project idea! :)

Architecture Components

Windows Server 2022 Okta Developer Salesforce Active Directory
Architecture Diagram Hybrid IAM Architecture Diagram

Phase 1: Infrastructure (Active Directory)

Windows Server 2022 VirtualBox AD DS

To simulate a realistic enterprise environment, I deployed a local Domain Controller rather than relying solely on cloud directories.

AD Infrastructure Setup Active Directory Users and Computers Screenshot

Phase 2 & 3: Hybrid Directory Integration

Okta AD Agent Delegated Auth JIT Provisioning

The core of this project was bridging the gap between legacy on-premise directory infrastructure and modern cloud identity using free trial developer resources!.

AD users Rusty AD & Joshua AD successfully synced to Okta! Okta User List showing AD Sync

Phase 4: SAML Single Sign-On (SSO)

Salesforce SAML 2.0 Federation

I eliminated password fatigue by configuring login Federation between Okta and Salesforce.

As seen in the logs, AD Users Rusty AD & Joshua AD logged into salesforce using SSO successfully! System Log SSO Success
Admin & AD user Dashboards with Salesforce Application provisioned User Dashboard showing Salesforce App

Phase 5: Security Policies (MFA)

Okta Verify Zero Trust Context-Based Access

Finally, I hardened the environment by implementing context-based access policies.

Logs showing admin and AD users logged in using Okta Verify for MFA! MFA Verification Log
Authenticator Configuration showing that Okta Verify is configured. Okta Authenticators Configuration

Phase 6: Mobile login Experience (Okta Verify)

iOS / Android Multi-User Support

To validate the user lifecycle across the entire organization, I enrolled the test users into the Okta Verify mobile app.

AD user Okta Verify Enrollment Phone screenshot of Okta Verify
Mobile Login Flow Mobile Login Screen
Mobile Okta Dashboard Mobile Dashboard View