Delegated Authentication in Okta

Delegated Authentication in Okta

How Okta can hand the job of checking a password to your own company directory, so people sign in once through Okta while the password never leaves home.

Imagine a large office building with a security desk at the front. Visitors arrive and say who they are. The guard at the desk does not keep a list of secret passwords in a drawer. Instead, the guard picks up a phone, calls the company’s own records office, and asks, “Is this person’s secret word correct?” The records office answers yes or no, and the guard opens the door or keeps it shut.

That is the heart of delegated authentication in Okta. Okta is the friendly front desk that every application talks to. Your company’s directory, usually Microsoft Active Directory, is the records office that really knows the passwords. Okta delegates, which simply means “hands over,” the job of checking the password to that directory. People type their familiar work password, and the answer comes from the system the company already trusts.

This guide assumes you know nothing about any of this. We will explain each word the first time it appears, use everyday comparisons, and walk through how the pieces fit, what can go wrong, how to keep it safe, and how companies move away from it when the time comes.

WWhat Is Delegated Authentication?

In one sentence: Okta asks your own directory to check the password, instead of keeping and checking the password itself.

Let us start with the word authentication. It means proving that you are who you claim to be. When you type a username and a password, you are authenticating. When a phone app asks you to approve a sign-in, that is also authentication. The system that checks the proof is called the authenticator, and the proof is called a credential.

In a simple Okta setup, Okta stores a protected form of each person’s password and checks it directly. In a delegated setup, Okta does not hold the password it checks. It passes what the person typed, safely and over an encrypted connection, to a small program running inside the company network. That program asks the company’s directory whether the password is right and tells Okta the result.

Analogy

Think of a bank branch that does not keep its own vault. When you ask for cash, the teller phones head office, which checks your account and says approved or declined. The branch looks like a normal bank to you, but the truth about your money lives somewhere else. Okta is the branch with the friendly counter. Your directory is head office.

Why anyone would want this

Many companies already have a directory with years of accounts, password rules, and security habits built around it. Employees already know their passwords. Auditors already know how to inspect the system. Rather than copy all of that into a new place, the company says, “Keep the passwords where they are. Let Okta consult them.”

1 password
Employees keep using the one they already know
0 copies
Okta does not keep the password in this mode
Outbound only
The agent calls out to Okta; Okta never calls in

Where the word shows up

In Okta’s own documentation, delegated authentication most often means the connection between Okta and an on-premises Active Directory (AD) or LDAP directory through a small helper called an agent. People also use the phrase loosely for related ideas, such as sending someone to another company’s sign-in page, or letting a network device check passwords through Okta. We will compare those neighbours in Chapter 3 so that you never mix them up.

i
Remember this

Delegated authentication is about who checks the password. Single sign-on is about how many times you must type it. They solve different problems and usually work side by side.

BBuilding Blocks You Need First

A handful of ideas from the world of company sign-in systems will make the rest of this guide easy.

Concept

Directory

A central address book of people and machines, with their names, groups, and passwords. Like the staff list kept by a receptionist.

Concept

Active Directory (AD)

Microsoft’s directory, used by a huge share of companies to manage Windows computers and employee accounts.

Concept

LDAP

A standard language for asking a directory questions, such as “does this person exist, and is this password correct?” Many non-Microsoft directories speak it.

Concept

Domain Controller

The server that actually holds an Active Directory domain and answers sign-in questions. Companies run several for safety.

Concept

Identity Provider (IdP)

A service that vouches for who you are to other applications. Okta plays this role for your cloud and web apps.

Concept

Agent

A small program installed inside your network. It is the messenger between the Okta cloud and your private directory.

Concept

Source of truth

The one system whose data wins when systems disagree. In delegated setups, the directory is usually the source of truth for passwords.

Concept

Single Sign-On (SSO)

Sign in once, then open many applications without typing the password again, like a wristband at a theme park.

On-premises and cloud

On-premises (often shortened to on-prem) means computers that your company owns and keeps in its own buildings or private data centers. The cloud means computers owned by someone else, such as Okta, that you reach over the internet. Delegated authentication is a bridge between these two worlds, which is why it is so common in companies that are halfway through a move to the cloud. We call that mixed situation a hybrid environment.

Analogy

A hybrid company is like a family that has moved to a new city but still keeps the old house for a while. Some things have moved, some have not, and you need a reliable road between the two homes. The agent is that road.

Two flavors of Okta

You may see references to the Okta Classic Engine and the newer Okta Identity Engine. They are two generations of the sign-in brain inside Okta. Delegated authentication to AD and LDAP is available in the world of agents on both, but menu names, policy screens, and some behaviors differ. Always confirm which engine your org uses, and read the matching page of Okta’s current documentation before you change anything.

DDelegated Authentication and Its Neighbours

Several ideas sound alike. Separating them now will save you hours of confusion later.

When a company wants people to sign in through Okta, it has to decide where the password is checked. There are a few common choices, and each one answers that question differently.

ApproachWho checks the password?Where does the password live?Plain-English summary
Okta-mastered passwordOktaStored securely by OktaOkta is the vault and the guard
Delegated authenticationYour AD or LDAP directory, through an agentOnly in your directoryOkta asks head office every time
Password synchronizationOkta, using a copy kept in step with the directoryIn both placesTwo vaults kept identical
Desktop single sign-onYour Windows domain, using the computer’s existing loginOnly in your directoryNo typing at all on a trusted office machine
Federation to another identity providerA different sign-in service entirelyAt that other serviceOkta sends the person elsewhere to prove who they are

Three lookalikes to keep apart

Neighbour

Delegated administration

Letting a regional manager manage only some users. It is about who may change settings, not about checking passwords.

Neighbour

RADIUS agent

A different helper that lets network devices such as VPN gateways ask Okta to check credentials. The direction is reversed: your equipment delegates to Okta.

Neighbour

Inbound federation

Okta trusts another company’s sign-in service and sends the person there. The other service performs the whole check, not just the password.

Neighbour

Desktop SSO

Uses the Windows login of an office computer so the person is signed in automatically. It often sits alongside delegated authentication.

!
Watch out

If a colleague says “we use delegated authentication,” ask one clarifying question: “Delegated from what to what?” The answer tells you whether they mean Okta to AD, devices to Okta, or an outside sign-in provider. The advice for each is quite different.

How to choose

Pick delegated authentication when your directory must remain the only place passwords exist, perhaps because of company policy or regulation, and when you can run and protect the agents. Pick an Okta-mastered password when you are ready to let Okta own the credential and you want the fewest moving parts. Add Desktop SSO when most people work on domain-joined office machines and you want sign-in to feel invisible.

AArchitecture and Core Components

There are only a few moving parts. Once you can name them, you can reason about almost any problem.

The picture below shows a simplified setup. On the left is the person with a browser. In the middle is Okta in the cloud. On the right, inside the company network, are the agents, the domain controllers, and the directory itself. The most important detail is the direction of the arrows between the cloud and the agents: the agents reach out to Okta. Okta never reaches in to your network.

flowchart LR
  U["Employee with Browser"] --> OK["Okta Cloud - Sign-in Page, Policies, MFA"]
  subgraph Cloud["Okta Cloud"]
    OK
    Q["Secure Agent Channel"]
  end
  OK --> Q
  subgraph Net["Company Network"]
    A1["AD Agent One"]
    A2["AD Agent Two"]
    DC1["Domain Controller One"]
    DC2["Domain Controller Two"]
    AD[("Active Directory")]
  end
  A1 -- "Outbound HTTPS" --> Q
  A2 -- "Outbound HTTPS" --> Q
  A1 --> DC1
  A2 --> DC2
  DC1 --> AD
  DC2 --> AD
    
Figure 1: Okta, the agent channel, and the company directory

The parts, one at a time

Cloud

The Okta sign-in service

Shows the sign-in page, applies your rules, asks for extra proofs such as a phone approval, and finally issues the signal that opens your apps.

Cloud

The agent channel

A secure waiting room in Okta where requests for your directory are left and where the agents pick them up.

Network

The Okta AD Agent

A program installed on a Windows server that is joined to your domain. It collects requests from Okta and asks the domain controller to check the password. There is a similar LDAP Agent for other directories.

Network

The service account

A special account the agent uses to read the directory. It should have only the permissions it needs, and no more.

Network

Domain controllers

The servers that know the truth about passwords and groups. The agent talks to one of them to complete each check.

Data

The Okta user record

For each person, Okta keeps a profile (name, email, department) imported from the directory, plus a note saying “check this person’s password with the directory.”

Why the arrows point outward

Security teams are very careful about opening holes in their firewall, which is the wall that decides what traffic may enter the company network. If Okta had to call into your network, you would have to open an inbound door and defend it from the whole internet. Instead, the agent makes ordinary outbound encrypted connections over the standard secure web port, which most firewalls already allow. The agent then waits for work. Think of a post office box: Okta drops a message in the box, and your agent, which keeps checking the box from inside, collects it.

i
Note

The agent also does a second job: it imports user profiles and group memberships from the directory into Okta, so Okta knows who exists. Checking passwords and copying profiles are two separate duties of the same agent, and both matter.

HHow a Sign-In Works, Step by Step

Follow one employee, Priya, as she signs in on a Monday morning.

Priya opens her browser and goes to a company application. The application sends her to the Okta sign-in page, because Okta is the identity provider for that app. She types her work username and her normal work password. Here is what happens next, in order.

sequenceDiagram
  participant P as Priya
  participant O as Okta Cloud
  participant G as AD Agent
  participant D as Domain Controller
  P->>O: Username and password over HTTPS
  O->>O: Find Priya and see that her password is checked by the directory
  O->>G: Verification request left in the secure channel
  G->>D: Does this password match this account
  D-->>G: Yes or no
  G-->>O: Result over the outbound connection
  O->>O: Apply policies and ask for a second proof if required
  O-->>P: Signed in and sent to the application
    
Figure 2: One sign-in, from the browser to the directory and back
1

Priya submits her credentials

Her browser sends the username and password to Okta over an encrypted connection. Nothing travels in plain text.

2

Okta finds her record

Okta locates her profile and sees that her password is not stored with Okta. It must be checked by the directory.

3

The request goes to an agent

Okta places a short-lived verification request in the secure channel. One of the agents, which is always listening from inside the network, picks it up.

4

The directory decides

The agent asks a domain controller whether the password matches. The directory applies its own rules, including whether the account is locked, disabled, or expired.

5

The answer returns

The agent sends back a yes or a no, plus a reason if the answer is no, such as an expired password or a locked account.

6

Okta finishes the job

If the answer is yes, Okta evaluates its own rules, asks for extra proof if the rules require it, and then signs Priya in to the application. If the answer is no, Okta shows a clear message.

What is different from a normal sign-in?

Only step three and step four. In a normal Okta-mastered setup, Okta would check the password itself and the trip to your network would never happen. The rest of Priya’s experience, including the sign-in page, the second proof, and the single sign-on to every other app, looks exactly the same. That is the whole point: the person sees no difference, while the company keeps passwords in the directory it trusts.

i
Tip

Because every sign-in makes a short round trip to your network, the health of your agents and domain controllers is now part of the health of your sign-in. Treat them with the same care as any system that people need every morning.

DData Flow: Profiles, Groups, and Who Is the Boss

Checking passwords is only half of the story. Okta also needs to know who exists, what their details are, and which teams they belong to.

Before anyone can sign in, Okta must have a record for them. In a delegated setup, those records usually come from the directory. The agent reads the list of people and groups and sends it to Okta in a process called an import. The first import copies everyone. After that, later imports copy only the changes, which is faster and lighter. Imports can run on a schedule, and an administrator can start one by hand.

flowchart TD
  AD[("Active Directory")] --> AG["AD Agent"]
  AG -- "Full import then incremental" --> IM["Okta Import Engine"]
  IM --> MAP["Attribute Mapping"]
  MAP --> UP["Okta Universal Directory"]
  UP --> GR["Group Rules and Assignments"]
  GR --> APPS["Applications"]
  UP -. "Password check at sign-in" .-> AG
    
Figure 3: Profiles flow from the directory into Okta, passwords are checked back at the directory

Attribute mapping

A directory describes a person with its own field names, such as a “given name” or a “department.” Okta has its own field names. Attribute mapping is the translation table between the two. For example, the directory’s mail field becomes Okta’s email field. You decide which fields to bring over and which direction they flow. Keep the list short: bring only what applications really need.

Profile mastering

When the same fact lives in two places, one of them must win. This is called mastering. If the directory masters a person’s department, then a change in the directory overwrites what is in Okta, and edits made in Okta do not stick. This keeps one version of the truth. Many companies choose to let the directory master the profile of everyone who signs in through delegated authentication, and allow only a few extra fields, such as a phone number for second-factor prompts, to be managed inside Okta.

Analogy

Mastering is like deciding which copy of a school’s student list is the official one. If the office list says a student is in Class 5B, the teacher’s notebook must be corrected to match, not the other way around. Otherwise, two lists drift apart and nobody knows which to trust.

Groups as the glue

The agent can also import groups, which are named collections of people, such as “Finance Team.” Okta can then give an application to a whole group instead of to individuals. When someone joins “Finance Team” in the directory, the next import adds them to the group in Okta, and the finance applications appear on their home page automatically. When they leave the group, access disappears. This is how a directory-driven company keeps access tidy without a person clicking through hundreds of assignments.

!
Watch out

Imports are not instant. If you add a new hire in the directory at nine in the morning, the person may not exist in Okta until the next import runs. Plan your onboarding steps around that delay, and use the manual import button when timing really matters.

TThe Password Lifecycle: Change, Reset, Expiry, and Lockout

Because the directory owns the password, the directory’s rules shape what happens when a password changes, expires, or fails too many times.

Whose rules apply?

In delegated authentication, the password rules that matter are the directory’s: how long a password must be, how often it must change, and how many wrong attempts lock the account. Okta’s own password policy settings, such as complexity and age, do not control a password that Okta does not keep. This surprises many administrators who spend hours tuning an Okta password policy and see no effect.

SituationWhat usually happensWhat to remember
Normal sign-inAgent asks the directory, which says yes or noThe directory is the judge
Wrong password repeatedThe directory counts failures and may lock the accountOkta may also count failures under its own rules, so align both
Locked accountSign-in fails even with the right passwordUnlock it according to your process; check where the lock is held
Expired passwordThe person is asked to choose a new one, if your setup allows itThe new password must satisfy the directory’s rules
Voluntary changeThe new password is passed through the agent into the directoryThe agent’s account needs permission to change passwords
Forgotten passwordA reset can be allowed, which again writes to the directoryNeeds careful identity checks first

Changing and resetting

When a person changes or resets a password through Okta, Okta cannot save it in its own vault, since the directory is the master. Instead, it passes the new password to the agent, and the agent asks the directory to apply it. For this to work, the service account used by the agent must be allowed to reset passwords for the accounts involved. Giving that permission is a serious decision, so limit it to only the groups of people who need it.

i
Tip

Before you let people reset their own passwords, require a strong second proof such as a phone approval or a security key. A reset flow that relies only on easy-to-guess personal questions becomes the weakest door in the building.

Lockouts: the hidden trap

Imagine that a stranger on the internet types random passwords into your Okta sign-in page for Priya’s account. Each wrong guess is sent to the directory. After enough guesses, the directory locks Priya’s account. Priya, who did nothing wrong, cannot sign in to anything. This is a quiet form of attack called a lockout attack, and it is a real risk for any setup where the sign-in page forwards guesses to a directory with a strict lockout rule.

You can reduce this risk by using Okta’s tools that recognize suspicious sign-in traffic, by limiting where sign-ins may come from, and by choosing lockout settings that slow attackers without punishing staff. We cover these protections again in the security chapter.

Everyday example

A retail company sets its directory to lock accounts after five wrong attempts. During a holiday sale, a bot tries common passwords against many employees through the Okta page, and dozens of staff are locked out before the store opens. The company then adds network location rules and Okta’s threat detection, and raises the lockout threshold slightly, so ordinary typing mistakes are forgiven while the bot is stopped.

MMFA and Policies on Top of Delegation

Delegation replaces only the password step. Everything else Okta does still works around it.

Multi-factor authentication, or MFA, means proving who you are in more than one way, such as a password plus an approval on your phone. In a delegated setup, the password is checked by the directory, but the second proof is handled entirely by Okta. The directory does not need to know anything about phone apps or security keys. This is a big advantage: you can add modern second proofs to an older directory without changing the directory at all.

Analogy

Picture an airport. The passport desk checks your passport (that is the directory checking the password). A second desk checks your boarding pass and sometimes scans your face (that is Okta’s second proof). The two desks do not need to share equipment. They each do one job and together make a stronger gate.

What Okta’s rules can still do

Rule

Require a second proof

Always, only from new devices, only from outside the office network, or only for sensitive applications.

Rule

Restrict by location

Allow or block sign-ins from certain countries or networks, using named network zones.

Rule

Control sessions

Decide how long a person stays signed in and how soon they must prove themselves again.

Rule

Protect individual apps

Ask for stronger proof when someone opens payroll than when they open the cafeteria menu.

Desktop single sign-on as a companion

Many companies pair delegated authentication with Desktop SSO. When a person is on an office computer that is already signed in to the Windows domain, Okta can recognize this and skip the password prompt entirely. That means the delegated password check is used mostly when people are working away from the office, on personal devices, or on the road. Together they give a smooth day for the person and a strong gate for the company.

i
Note

Menu names and exact options for these policies differ between the Classic Engine and the Identity Engine. Use the descriptions here as the idea, and check the current Okta documentation for the exact screens in your org.

HHigh Availability and Failure Scenarios

Delegation adds a trip to your network on every sign-in. Make that trip dependable.

High availability means designing a system so that no single broken part stops the whole service. For delegated authentication, the parts that can break are the agents, the servers they run on, the domain controllers, and the network path to Okta. If any one of these fails with no backup, people may be unable to sign in.

Analogy

A hospital has more than one power source. If the mains fail, a generator starts. If that fails, batteries take over. Nobody builds a hospital with one wire from one power station. Your sign-in path deserves the same thinking, because on a Monday morning, thousands of people depend on it at once.

Run more than one agent

Okta recommends running at least two agents for each directory domain, on different servers, and many large companies run more. Okta spreads requests across the agents that are online, and when one disappears, the others carry on. Place the servers in different racks or even different sites, so one power cut or network fault cannot remove them all together.

Make the directory side resilient

Each agent talks to a domain controller. A good setup has several domain controllers in every site, so if one is down for repair, the agent finds another. Keep agent servers close, in network terms, to their domain controllers. A slow link between them turns every sign-in into a slow sign-in.

flowchart TD
  S["Sign-in needs a password check"] --> A{"Any agent online?"}
  A -- No --> F1["Directory sign-in fails for everyone"]
  F1 --> F2["Use break-glass admin with an Okta-held password"]
  A -- Yes --> B{"Can the agent reach a domain controller?"}
  B -- No --> C["Agent tries another domain controller"]
  C --> D{"Another controller reachable?"}
  D -- No --> F1
  D -- Yes --> PC["Password checked"]
  B -- Yes --> PC
  PC --> R["Continue with policies and MFA"]
    
Figure 4: What happens when parts of the path fail

Failure scenarios and recovery

What failsWhat people seeRecovery idea
One agent serverUsually nothing, other agents take overRepair or rebuild; reinstall and re-register if needed
All agents for a domainDirectory-mastered users cannot sign inRestore an agent first; use emergency admin access to manage Okta meanwhile
One domain controllerSlight delay at mostAgent finds another controller
Network link to Okta from the officeAgents cannot receive requestsFix the firewall or internet path; check the proxy settings
Expired or changed service account passwordImports and some actions failUpdate the account and agent settings; keep a renewal calendar
Agent software out of dateOdd behavior or connection troubleKeep automatic updates on, and keep a test agent
!
Watch out

If every agent is offline, a person’s second proof cannot rescue them, because the password step comes first. Always keep at least one emergency administrator account whose password is held by Okta itself, protected by a strong second proof, stored safely, and tested regularly. Without it, you may be unable to log in to fix the very problem that has locked you out.

PPerformance and Scaling

A sign-in should feel quick. Here is what makes it slower or faster, and how to grow without pain.

Every delegated sign-in contains a round trip: Okta to the channel, the channel to the agent, the agent to a domain controller, and back. Most of this takes a fraction of a second when the network is healthy. The usual causes of slow sign-ins are a far-away agent, an overloaded agent server, a struggling domain controller, or a congested internet link from the office.

The Monday morning rush

Sign-ins are not spread evenly. Thousands of people arrive between eight and ten on Monday. Think of a coffee shop at the same hour: one barista is fine at three in the afternoon, and hopeless at 8:30 in the morning. Add agents so the busiest minute stays comfortable, and watch how requests are shared among them.

Speed

Place agents near controllers

Keep the agent and its domain controller in the same site. Short distance, short wait.

Capacity

Size for the peak, not the average

Plan for the busiest minute of the busiest day, plus room for one agent to be down.

Imports

Use incremental imports

After the first full import, copy only changes. Schedule heavy full imports for quiet hours.

Scope

Import only who you need

Choose the organizational units and groups that matter. A smaller import is faster and tidier.

Many domains and forests

Large companies, especially after mergers, may have several domains or even several separate directory forests. Each domain generally needs its own agents and its own connection in Okta. This multiplies the work: more agents, more service accounts, more imports, and more places for a rule to be inconsistent. A tidy naming scheme and a shared checklist for every domain are worth their weight in gold.

i
Tip

Test your setup with a realistic crowd before you roll it out. Ask a few hundred volunteers to sign in at the same time, and watch for slow responses. It is far better to find the weak point on a test morning than on launch day.

SSecurity: What Is Safe and What Needs Care

Delegation reduces some risks and creates others. A clear view of both helps you build it safely.

What delegation does well

First, the password stays in the directory. Okta does not keep a copy for people whose password check is delegated, so there is no second vault to protect and nothing in Okta’s storage that could be stolen. Second, the agents make only outbound connections, so you do not need to open a door in your firewall for the internet to knock on. Third, the connections are encrypted, so nobody listening on the network can read a password in transit.

What still needs care

Trust

The password passes through Okta

The person types it on Okta’s page, and Okta forwards it to your agent. Okta protects this path, but you are trusting Okta’s service for those moments. Many security teams accept this and add strong second proofs on top.

Servers

Agent servers are sensitive

They sit inside your network next to the directory. Treat them like important servers: patch them, limit who can log in to them, and monitor them.

Account

The service account

It can read, and sometimes reset, passwords. Give it the smallest permission set and the narrowest scope, and use a long random password kept in a vault.

Attack

Password spraying and lockouts

Attackers try common passwords against many accounts, and in doing so can lock real people out. Use threat detection, location rules, and sensible lockout settings.

Network

Limit outbound traffic

Allow agent servers to reach only Okta’s addresses and your own directory, rather than the open internet.

Recovery

Protect emergency accounts

Your break-glass admin needs the strongest second proof you have, plus an alert whenever it is used.

!
Watch out

Never install an agent on a laptop, a shared server, or a machine that many people can log in to. Agents belong on dedicated, hardened servers that only a small named team can reach.

The principle of least privilege

The idea of least privilege is simple: give every account only the access it needs for its job and nothing more. A lock repairer gets the key to the lock room, not the master key to the building. Apply this to the agent’s service account, to the Okta administrators who manage the integration, and to the people allowed to reset other people’s passwords.

IInside the Agent: What the Little Messenger Really Does

The agent is the most important piece of equipment in the whole design, so it is worth understanding how it behaves from the inside.

An agent is an ordinary program that runs as a background service on a server. You download it from your Okta admin area, install it on a Windows server that belongs to your domain (for the Active Directory version), and register it with your Okta org by signing in with an administrator account. Registration is like introducing a new employee to head office: from then on, Okta knows that this particular messenger is allowed to speak for your directory.

The life of an agent

1

Install and register

The installer asks for the domain, a service account, and a one-time approval from an Okta administrator. After approval, Okta hands the agent a secure identity of its own.

2

Open the outbound connection

The agent reaches out to Okta over the standard encrypted web port and keeps that connection ready. It also uses any web proxy your company requires, if you configure one.

3

Wait for work

The agent sits quietly until Okta leaves a task for it: check a password, run an import, or apply a password change.

4

Do the task against the directory

The agent finds a nearby domain controller, performs the check or the read, and gathers the result.

5

Report back and forget

The agent sends the result to Okta and does not keep the password it just handled. It also writes technical notes to its own local log for troubleshooting.

6

Stay current

Okta can update agents automatically so that security fixes arrive without a person remembering to install them. Many teams keep this on and watch agent versions in the admin area.

Analogy

The agent is like a reliable courier who works inside a secure building. The courier never receives visitors at the front gate. Instead, the courier walks out to the post office every few moments, collects the day’s requests, delivers them to the right internal office, waits for the answer, and carries it back. At no point does the post office need a key to the building.

What the agent needs from you

NeedWhy it needs itCommon trap
A dedicated Windows server joined to the domainSo it can talk to the directory as a trusted memberSharing it with other busy applications
Outbound access to Okta on the secure web portSo it can collect tasks and return resultsA proxy or firewall rule that quietly blocks it after a change
A service account with the right permissionsSo it can read profiles and, if allowed, change passwordsGiving far too much power or forgetting its expiry
Accurate server timeSecure connections and logs depend on the clockA clock that drifts after a virtual machine pause
Enough memory and processor for the busy hourSo requests do not queue upSizing for the quiet afternoon rather than the Monday morning
A local log folder with spaceSo you have evidence when something goes wrongLogs that fill a disk and stop the service

How it picks a domain controller

The agent does not usually hard-wire itself to one domain controller. It asks the domain’s own naming service which controllers are available, preferring those in the same site. A site, in directory language, is a group of well-connected servers, typically one office or data center. Preferring a nearby controller keeps sign-ins quick and keeps traffic off long, expensive network links. If the nearby controller does not answer, the agent moves on to another. For this reason, your directory team’s habit of keeping sites and subnets correctly defined has a direct effect on how healthy your Okta sign-ins feel.

Handling many requests at once

One agent can handle many people at the same time, because each check is short. But the work is not free. Each check uses a little processor time and a little network capacity, and each wait for the directory holds a request open. When a crowd arrives, requests line up. This is why the advice to run several agents is not just about surviving a failure. It is also how you share the load, so no one messenger is carrying all the mail on the busiest morning.

i
Tip

Keep a short “agent card” for each server: its name, the domain it serves, the service account it uses, its installed version, who owns it, and when it was last patched. When something breaks at seven in the morning, nobody wants to be hunting for this information.

PPlanning and Rolling Out Delegated Authentication

A calm rollout is mostly good preparation. Here is a path that avoids the surprises most teams meet.

Moving thousands of people onto a new sign-in path is as much about people as about technology. The goal is that on launch day, almost nobody notices anything except that their apps are easier to reach. That outcome comes from careful planning in four stages: understand, design, pilot, and launch.

Stage one: understand what you have

Begin with a simple inventory. List every directory domain, how many people are in each, which servers could host agents, and which applications people use daily. Ask the directory team how passwords are managed today: their strength rules, expiry time, and lockout settings. Ask the security team what second proofs they want. Ask the help desk what questions they hear most. These conversations take days, and they prevent months of rework.

Question

Who is in scope?

All employees, or only some groups first? Contractors and service accounts need their own decision.

Question

Which directories?

One domain or many? Active Directory only, or LDAP directories too?

Question

What is the uptime goal?

This sets how many agents and how much redundancy you need.

Question

What are the password rules?

Because the directory owns them, confirm they match your security policy before launch.

Question

How will people get help?

Decide who unlocks accounts, who resets passwords, and how those people prove their own identity.

Question

What is the rollback plan?

If the launch goes badly, how do you return to the old way quickly and safely?

Stage two: design the pieces

Decide the number and placement of agents, the shape of the service account and its permissions, the attribute mappings, the group imports, and the rules for second proofs and locations. Write all of this on a single page that both the Okta team and the directory team sign. A shared page prevents the common fight where each team assumes the other one handles lockout rules.

Stage three: pilot

Choose a friendly group of perhaps fifty people from different departments and locations. Include a few who travel and a few who work on unusual devices. Run the pilot long enough to include at least one password expiry and one lockout, since those are the moments when problems appear. Collect feedback, count the help desk calls, and fix what you find.

flowchart LR
  U1["Understand - Inventory and Policies"] --> D1["Design - Agents, Accounts, Mappings"]
  D1 --> P1["Pilot - Small Friendly Group"]
  P1 --> W1["Waves - Department by Department"]
  W1 --> L1["Launch - Everyone"]
  L1 --> R1["Review - Logs and Feedback"]
  P1 -- "Problems found" --> D1
    
Figure 6: A staged rollout, with a loop back when the pilot finds problems

Stage four: launch in waves

Roll out one department or location at a time. After each wave, look at the sign-in success rate, the slowest sign-ins, and the help desk tickets before you start the next. Announce changes in plain words, explain what will look different (usually very little), and tell people what to do if they get stuck. Schedule the largest waves for midweek mornings when the whole support team is present, not for a Friday afternoon.

!
Watch out

The most common rollout failure is a wave that is much larger than the agents were sized for. If you plan to move two thousand people in one morning, test with that many sign-ins first, or break the wave into smaller groups an hour apart.

A launch-day checklist

ItemOwnerDone when
At least two agents online per domainPlatform teamAdmin area shows all agents connected
Break-glass administrator testedSecurity teamSign-in works and alarm fires
Help desk briefed with scriptsSupport leadTeam has read the common questions
Monitoring and alerts liveOperationsA test alert reaches the on-call person
Rollback steps written and rehearsedPlatform teamA dry run has been completed
Communication sent to staffCommunicationsMessage delivered a few days before launch

SSpecial Situations You Will Meet in Real Life

Textbook diagrams are tidy. Real companies are not. These are the awkward cases that show up sooner or later.

Name changes and renamed accounts

When someone marries, changes their name, or moves departments, their sign-in name in the directory may change. Okta identifies the person by an internal number, not by the visible name, but the username they type must still match what the directory expects. After a rename, run an import so Okta learns the new details, and tell the person which username to use. Plan this process before it happens to the first executive.

Disabled and departing accounts

When a person leaves the company, the directory team disables the account. Because the directory answers every password check, the person is immediately unable to pass the password step. But their Okta record, with its apps and any existing sessions, may still exist until the next import and cleanup. Combine the directory action with an Okta action that ends the person’s current sessions and removes assignments. The two systems should agree within minutes, not days.

Analogy

Disabling an account in the directory is like cancelling a person’s building pass at the records office. The guard at the front desk will refuse them the next time. But if they are already inside the building with a visitor badge, you also need someone to walk the halls and collect that badge. Ending sessions in Okta is that walk through the halls.

Contractors, partners, and shared accounts

Not everyone belongs in your directory. A short-term contractor may have no directory account at all. For them, many companies create accounts directly in Okta with Okta-held passwords, while employees keep the delegated path. Shared accounts, where several people use the same login, are best avoided entirely, because neither the directory nor Okta can tell who did what.

Phones, tablets, and unmanaged devices

Mobile devices cannot use Windows-based convenience features such as Desktop SSO, so people on phones will typically type the delegated password or use a phone-based approval. Make sure the second-proof experience is pleasant on a small screen, and that password rules allow a reasonable way to type on a phone keyboard.

Applications that bring their own login

Some older applications cannot use Okta and still ask for a username and password of their own. If those applications check against the directory, they continue to work as before, and the delegated password remains the same one. If they use a separate password, you may want to bring them under Okta, or at least include them in your lockout and monitoring plans.

Network devices and VPNs

A virtual private network gateway often needs to check a person’s identity too. Here the arrow turns around: the device asks Okta, using a protocol called RADIUS, and Okta may in turn delegate the password to the directory. Treat this as a separate project with its own agents, since a failure in this path can stop people from working remotely.

People in several domains

In a company with multiple domains, one person might have accounts in two of them, for example after an acquisition. Decide which account is the primary identity for Okta, and avoid creating two separate Okta users for one human. Otherwise, people will see duplicate tiles and approvals will go to the wrong place.

Everyday example

A consulting firm absorbs a smaller company. Fifty employees from the smaller firm arrive with accounts in a second domain. The Okta team connects that domain with its own agents, maps matching email addresses so each person has one Okta identity, and chooses which directory is the master for each person’s password. Within a few weeks, all fifty sign in through the same page as everyone else.

i
Note

Many of these cases are rare individually, and common in total. In any company of meaningful size, a handful of them will happen every month. Keep a simple, searchable page of “how we handled it last time.”

TA Troubleshooting Playbook

When sign-in fails, panic helps nobody. A calm, step-by-step approach finds most problems quickly.

Troubleshooting a delegated sign-in is like tracing a leak in a pipe: you follow the water from the tap back toward its source. Start at the person, then move to Okta, then to the agent, then to the directory. At each stop, ask, “Did the request arrive here, and what did this stage say?”

1

Ask what the person sees

Is there an error message? Which application? From where and on what device? A screenshot saves ten minutes of questions.

2

Look in the Okta System Log

Search for the person’s name around the time of the failure. The reason code usually says whether it was a bad password, a locked account, an expired password, or a problem reaching the agent.

3

Check the agent status

Are agents connected and recently active? A recent disconnection often explains a sudden burst of failures.

4

Check the directory

Is the account disabled, locked, or expired? Did someone change the username? Is the domain controller healthy?

5

Read the agent’s local log

If Okta says the agent did not respond, the local log on the agent server will show whether the request even arrived.

6

Write down what you learned

Add the symptom and cure to your team’s notes so the next person finds the answer in minutes.

Common symptoms and likely causes

SymptomLikely causeFirst check
Everyone fails at onceAll agents offline, or a network problem to OktaAgent status and the firewall or proxy path
One person fails, others fineLocked, disabled, or expired account, or a typing problemThe account status in the directory
Sign-in works but is slowOverloaded agent or a distant domain controllerAgent load and the site of the controller used
New hire cannot sign inNot yet imported into OktaRun a manual import and check for errors
Password change failsService account lacks reset permission, or the new password breaks the directory’s rulesThe permission and the rule text shown to the person
Many accounts lock suddenlySpraying attack, or a stale saved password on many devicesThe source addresses in the System Log
Imports stop updatingService account expired, or an agent upgrade is stuckThe import status page and agent version
Profile values keep revertingTwo systems mastering the same fieldAttribute mapping and mastering settings
i
Tip

A frequent hidden culprit is a phone or laptop that still has an old saved password. The device keeps retrying in the background with the wrong password and locks the account over and over. If one person keeps getting locked out for no obvious reason, check their devices before you blame the system.

GGovernance, Compliance, and Audit

Auditors do not ask only whether the system works. They ask who is in charge, who can change it, and how you know.

Governance means the habits and rules by which an organization keeps important systems under control. For delegated authentication, it covers who may change the settings, who reviews those changes, and how you show that the system behaves as promised. A system without governance may work today and still fail an audit tomorrow.

Questions an auditor is likely to ask

Audit

Where are passwords stored?

Your answer is simple and strong: only in the company directory. You can show how Okta forwards the check to an agent.

Audit

Who can change the integration?

List the named administrators, show their roles, and show that changes are logged.

Audit

How is access removed?

Explain how a departure in the directory leads to a disabled sign-in and ended sessions in Okta.

Audit

How do you detect misuse?

Show alerts on repeated failures, unusual locations, and emergency account use.

Audit

What is your recovery plan?

Show the agent redundancy, the break-glass process, and the date of your last drill.

Audit

How long do you keep logs?

Show that you copy Okta logs and agent logs to a long-term store for the period your rules require.

Separation of duties

The principle of separation of duties says that no single person should be able to carry out and approve a sensitive change alone. A common arrangement is that the directory team controls password rules, the Okta team controls the integration settings, and the security team reviews changes to both. If one person holds all three powers, a mistake or a bad decision has no second pair of eyes to catch it.

Change management

Every change to agents, the service account, attribute mappings, and policies should follow a simple routine: write what you intend to change and why, have someone else review it, make the change at a quiet time, and check the result in the logs. Keep the record. When a surprise appears three weeks later, this record is how you find the cause.

Analogy

Change management is like the logbook that airplane mechanics keep. Every part replaced, every adjustment made, with a name and a date. Nobody enjoys writing in it, and everybody is grateful for it on the day something rattles that did not rattle yesterday.

Privacy and data minimization

Directories often hold more personal information than Okta needs. Bring over only the fields that applications truly require. A phone number may be needed for a second proof, but a home address probably is not. Smaller imports reduce risk, simplify privacy reviews, and make the system easier to explain.

!
Watch out

Regulations and company rules differ by country and industry. This guide explains concepts, not legal requirements. Ask your compliance and legal teams which standards apply to your organization before you finalize design choices such as where logs are stored and for how long.

OThe Operating Model: Who Runs This Every Day?

Technology does not run itself. A clear owner for every part keeps small issues from becoming big ones.

Delegated authentication sits between two teams who often do not talk much: the people who run the directory and the people who run Okta. Without a clear plan, each team can assume the other is watching a problem, and nobody is. A good operating model puts a name next to every responsibility.

ResponsibilityTypical ownerRhythm
Agent servers: patching, capacity, healthInfrastructure or platform teamMonthly patching, constant health checks
Directory rules: password strength and lockoutDirectory teamReview twice a year
Okta policies: second proofs, locations, sessionsIdentity or security teamReview quarterly
Service account renewalDirectory team with identity teamCalendar reminders well before expiry
Help desk unlock and reset stepsSupport teamTraining for each new member
Monitoring and on-callOperations teamAlways on, with a weekly review of alerts
Drills and recovery testsIdentity and operations togetherOnce or twice a year

Keeping up with change

Okta, Windows, and the directory itself all change over time. New versions of agents arrive, Windows servers reach the end of their supported life, and Okta adds and renames features. Subscribe to Okta’s release notes, plan a regular review of what has changed, and test updates in a non-production environment first. A small test org with a test agent and a handful of test accounts is a cheap way to catch problems before they reach everyone.

Thinking about cost honestly

Delegated authentication is not free to run. The cost lies not in the Okta feature itself but in the servers, the licenses for them, the time of the people who maintain them, and the hours spent on incidents. When you compare delegation with an Okta-held password, count these hidden costs. In some companies delegation is cheaper because the directory already exists and must be run anyway. In others it is more expensive because it adds servers and work that Okta would otherwise absorb.

Everyday example

A logistics company counted its true cost and found that four agent servers, their patching, and on-call time added up to roughly a day of staff work each week. After a review, they decided to keep delegation for office staff, where the directory remains central, and to give warehouse workers Okta-held passwords with phone approval, which removed a large block of sign-in traffic from the agents.

GA Plain-English Glossary

Keep this page handy. Every term used in this guide is explained here in one or two lines.

TermMeaning in everyday words
AuthenticationProving you are who you say you are
AuthorizationDeciding what you are allowed to do once you are proven
CredentialThe thing you present as proof, such as a password
Delegated authenticationHanding the password check to another system, here your own directory
DirectoryA central address book of people and their details
Active DirectoryMicrosoft’s widely used company directory
LDAPA common language for talking to directories
Domain controllerA server that holds a directory domain and answers questions about it
AgentA small program inside your network that carries messages for Okta
Service accountA non-human account used by a program
ImportCopying people and groups from the directory into Okta
MasteringDeciding which system’s value wins when two disagree
Attribute mappingThe translation table between directory fields and Okta fields
Multi-factor authenticationUsing more than one kind of proof, such as password plus phone approval
Single sign-onSigning in once to reach many applications
Desktop SSOAutomatic sign-in on a trusted office computer
Network zoneA named set of locations or addresses used in rules
LockoutBlocking an account after too many wrong passwords
Password sprayingTrying a few common passwords against many accounts
High availabilityDesigning so that one broken part does not stop the service
Break-glass accountA sealed emergency administrator account for when normal access fails
Least privilegeGiving only the access needed for the job
System LogOkta’s diary of sign-ins and changes

AA Day in the Life: Three Walkthroughs

Concepts stick best when you watch them move. Here are three ordinary days at a company that uses delegated authentication.

Walkthrough one: a new hire arrives

On Thursday afternoon, the people team finishes the paperwork for a new analyst named Meera, who starts on Monday. The directory team creates her account in the company directory, places her in the groups for the analytics team, and sets a temporary password that must be changed at first sign-in. Nothing has happened in Okta yet.

1

The import picks her up

At the next scheduled import, the agent reads her new account and her group memberships and sends them to Okta. Okta creates her record, translating field names through the attribute mapping.

2

Groups grant her applications

Because she belongs to the analytics group, Okta assigns the applications that group receives. Her home page will show the right tiles on day one.

3

Monday morning sign-in

Meera types her username and temporary password. Okta sends the check to an agent, and the directory says the password is correct but must be changed.

4

She chooses a new password

The new password must satisfy the directory’s rules. Okta passes it through the agent, the directory applies it, and Meera is asked to enroll a phone for approvals.

5

She is in

From now on, one password and one phone approval open all her applications through single sign-on.

Walkthrough two: a forgotten password

On a rainy Tuesday, Arjun returns from a long holiday and cannot remember his password. He clicks the “need help signing in” link on the Okta page. Because the company has allowed self-service reset, Okta first asks for a strong second proof: an approval on his enrolled phone. Once he passes that check, Okta lets him choose a new password.

Okta cannot save the new password itself, since the directory is the master. It sends the new password through the agent. The agent uses the service account, which has been given permission to reset passwords for staff accounts only. The directory checks that the new password meets its rules and applies it. The whole thing takes about a minute, and the help desk never hears about it. If the directory rejects the password for being too similar to an old one, Arjun sees a clear message and tries again.

i
Tip

Show the directory’s password rules on the screen where people choose a new password. People who see the rules in advance make fewer failed attempts and call the help desk less.

Walkthrough three: the agent outage

One Monday at 8:40, a power fault at one office takes down a server rack. One of the three agents was on that rack. The other two carry on, and the monitoring tool raises an alert: “Agent count is below target.” The on-call engineer sees that sign-ins are still succeeding and that the slowest sign-ins are a little slower than usual, because two agents now share the load.

flowchart TD
  A1["Alert - Agent count below target"] --> A2["Engineer checks sign-in success and speed"]
  A2 --> A3{"Sign-ins still healthy?"}
  A3 -- Yes --> A4["Restore the failed agent at a calm pace"]
  A3 -- No --> A5["Start an emergency agent on a spare server"]
  A5 --> A4
  A4 --> A6["Confirm all agents are connected"]
  A6 --> A7["Write a short note on cause and fix"]
    
Figure 7: A calm response to losing one agent

Because the company followed the advice in this guide, the problem became a quiet repair job rather than a company-wide emergency. The engineer starts a spare agent on another server, confirms that all agents are connected again by mid-morning, and writes a short note describing the cause and the fix. By afternoon, the power fault is repaired and the original rack is restored.

What these stories teach

Lesson

Imports set the pace for new people

A person appears in Okta only after the import, so plan start dates with that delay in mind.

Lesson

Self-service needs a strong second proof

Resets that write to the directory are powerful, and deserve a careful identity check first.

Lesson

Redundancy turns disasters into chores

With several agents and good alerts, losing a server is an ordinary repair rather than a crisis.

Lesson

Write it down

Each incident teaches something. A short note today saves a long search next year.

MMonitoring, Logging, and Metrics

You cannot fix what you cannot see. Good monitoring tells you about trouble before your employees do.

Okta keeps a diary called the System Log, which records sign-ins, failures, password changes, lockouts, and administrative actions. Sign-ins checked through an AD or LDAP agent leave their own kind of entry, so you can tell them apart from sign-ins checked inside Okta. Each entry says who, what, when, from where, and with what result. When someone calls the help desk saying “I cannot sign in,” the log is the first place to look.

Three layers of visibility

Logs

Okta’s System Log

Shows what happened for each sign-in and each change. Copy it into your own monitoring platform if you need to keep it longer than Okta does.

Health

Agent status in the Admin Console

Shows whether each agent is connected and when it last checked in. A disconnected agent should trigger a response quickly.

Servers

Your own server monitoring

Watch agent servers for processor load, memory, disk space, and that the agent service is running, just as you would for any important server.

Numbers worth tracking

MeasureWhy it mattersWarning sign
Sign-in success rateThe single best picture of healthA sudden drop at a busy hour
Sign-in timeShows slowness that people feelSlowest sign-ins getting slower
Number of agents onlineTells you how much safety margin you haveFewer than two for any domain
Failed attempts per accountReveals spraying and lockout attacksMany accounts failing from one source
Locked-out accountsMeasures harm to real peopleA spike with no clear cause
Import duration and errorsShows if profile data is staying freshImports that take longer each day or fail
Service account expiry datePrevents a silent breakLess than a month left

Alerts that help

Raise alerts on symptoms people care about. Notify the on-call team if an agent is offline for more than a few minutes, if the sign-in success rate falls sharply, if many accounts lock in a short time, or if the emergency administrator account is used. Write a short guide for each alert that says what it means and what to check first.

i
Tip

Run a fire drill once or twice a year. Switch off one agent on purpose during a quiet hour and confirm that sign-ins continue and that your alert fires. A plan you have never tested is only a hope.

DDesign Patterns and Anti-Patterns

Teams that have done this many times tend to follow the same few habits, and avoid the same few traps.

Pattern

Agent pool per domain

Two or more agents for each directory domain, on separate servers and, where possible, separate sites.

Pattern

Directory as the master

One system is the official record of profile and password. Everything else follows it.

Pattern

Layered defense

Directory password plus Okta second proof, location rules, and threat detection.

Pattern

Break-glass account

A sealed emergency administrator whose password lives in Okta and whose use triggers an alarm.

Pattern

Staged rollout

Pilot with a small group, then a department, then everyone. Each stage teaches something.

Pattern

Documented runbooks

Written steps for rebuilding an agent, rotating the service account, and handling a mass lockout.

Analogy

The break-glass account is like the fire axe behind glass in a hallway. You hope never to use it. When something goes badly wrong, you will be very glad it is there, and very glad that someone checked last month that the glass was intact and the axe was sharp.

Anti-patterns to avoid

ANTI-PATTERN 01Avoid
What it looks like

A single agent for the whole company, installed on an old server that also runs three other things.

Why it hurts

One reboot, one crash, or one forgotten patch window and nobody can sign in. The server is also a bigger target because so much runs on it.

Do this instead

Use at least two dedicated agent servers per domain, in different failure zones, with a rolling maintenance plan so that only one is touched at a time.

ANTI-PATTERN 02Avoid
What it looks like

The agent’s service account is a domain administrator, “just to make it work.”

Why it hurts

If the account or the agent server is ever compromised, the attacker holds the keys to the whole directory.

Do this instead

Create a dedicated account with read access to the needed organizational units, and add password-reset permission only where self-service reset is truly required.

ANTI-PATTERN 03Avoid
What it looks like

Administrators tune Okta password policies for delegated users and assume those rules protect them.

Why it hurts

The directory’s rules are the ones in force, so the real strength of passwords is unchanged and nobody notices until an audit.

Do this instead

Set password strength and lockout rules in the directory, and use Okta’s policies for the second proof, location, and session rules.

ANTI-PATTERN 04Avoid
What it looks like

No emergency administrator exists, because “everyone is delegated.”

Why it hurts

When the agents go offline, nobody can log in to Okta to repair or reconfigure anything.

Do this instead

Keep a small number of tightly guarded Okta-password administrators, test them on a schedule, and alert on their use.

BBest Practices and Common Mistakes

A quick checklist for a smooth project, followed by the errors that appear again and again.

Do

  • Install at least two agents per domain on separate servers.
  • Use a dedicated, least-privilege service account.
  • Keep agent software and servers patched.
  • Add a strong second proof on top of the directory password.
  • Align lockout rules between the directory and Okta.
  • Keep and test a break-glass administrator.
  • Pilot with a small group before the full rollout.
  • Write down your runbooks and practice them.

Do not

  • Run one agent on a shared, neglected server.
  • Make the service account a domain administrator.
  • Assume Okta password policies govern delegated users.
  • Open inbound firewall holes for the agent.
  • Import everything in the directory “just in case.”
  • Forget the service account’s expiry date.
  • Skip testing during the busiest sign-in hour.
  • Leave the directory and Okta fighting over the same profile field.

Mistakes that appear again and again

MistakeWhat happensFix
Only one agentAny outage stops sign-inAdd a second and third agent
Mismatched lockout settingsPeople are locked in one place but not the other, and unlock steps confuse the help deskAgree on one policy and document the unlock process
Strict lockout and no threat detectionBots lock real employees outAdd detection and location rules, review the threshold
Expired service account passwordImports and resets silently failUse a long-lived managed secret and a renewal reminder
Profile field mastered in two placesValues flip back and forth after each importDecide which system wins for each field
Forgetting proxy and firewall detailsAgent cannot reach Okta after a network changeRecord required destinations and test after any change

RReal-World Usage Patterns

Here are typical situations where delegated authentication earns its place, described as everyday scenarios.

1. The hybrid enterprise on its way to the cloud

A manufacturing company has twenty thousand employees, a long-established Active Directory, and a growing list of cloud applications such as Microsoft 365, Salesforce, and Workday. Delegated authentication lets everyone keep their existing password while they gain single sign-on to the cloud apps, and the directory team keeps full control of password rules.

2. A regulated bank with strict rules

A bank’s policy says passwords may exist only in its own hardened directory. Delegation satisfies that rule: Okta asks the directory each time, never keeps the password, and adds a hardware-key second proof for high-risk systems. Auditors can follow the story easily.

3. A merger with two directories

Two companies join and each has its own directory. Rather than merging them overnight, the new company connects both to one Okta org. Employees from either side sign in with the password they already have, while applications see one unified list of people. Over months the two directories are consolidated at a calmer pace.

4. A university with student and staff directories

A university keeps staff in Active Directory and runs a separate LDAP directory for student accounts. Two kinds of agents connect each to Okta. Students and staff reach their portals through the same sign-in page, and the right directory answers for each person.

5. Offices with Windows desktops

A professional-services firm pairs delegated authentication with Desktop SSO. In the office, people open their laptop and the apps simply work. At home, they type their password once, the directory checks it, and a phone approval completes the sign-in.

MMoving Away From Delegation Later

Many companies use delegation as a stepping stone. Here is how the journey often goes.

Delegated authentication is a very good bridge, but it is a bridge, not always a destination. As more systems move to the cloud, some companies decide to retire their on-premises directory or to let Okta own the credential. Others go further and reduce passwords altogether with phone-based or hardware-key sign-in. The path below is typical, and each step can be paused for as long as needed.

flowchart LR
  P1["Phase 1 - Delegated sign-in with MFA on top"] --> P2["Phase 2 - Add Desktop SSO and stronger policies"]
  P2 --> P3["Phase 3 - Enroll people in passwordless methods"]
  P3 --> P4["Phase 4 - Move password ownership to Okta where wanted"]
  P4 --> P5["Phase 5 - Retire agents and legacy directory when ready"]
    
Figure 5: A typical journey from delegation toward a cloud-first sign-in
1

Stabilize and measure

Make the current delegated setup reliable and record how people really sign in: which devices, which locations, and how often.

2

Strengthen the second proof

Move people from weaker proofs such as text messages to phone approvals or security keys.

3

Reduce reliance on passwords

Offer sign-in methods that do not require typing a password. Fewer password checks mean fewer trips to the directory.

4

Choose who owns the credential

For groups that no longer need the directory password, move the password to Okta using one of Okta’s supported migration techniques. Review the current documentation for the options that fit your engine.

5

Retire what is no longer needed

Switch off agents and old connections only after logs show that nobody relies on them, and keep a rollback plan for a while.

!
Watch out

Never switch off agents because a dashboard looks quiet on a Tuesday. Look at several weeks of logs, including month-end and holiday periods, to catch the rarely used applications and the staff who sign in only occasionally.

AAdvantages, Disadvantages, and Trade-offs

Every design choice trades one thing for another. Here is the honest picture.

Advantages

  • People keep using the password they already know.
  • Okta does not hold the password for delegated users.
  • The directory team keeps control of password rules.
  • No inbound firewall openings are needed.
  • Modern second proofs can be added without touching the directory.
  • A smooth path from on-premises to cloud.
  • Works with both Active Directory and LDAP directories.

Disadvantages

  • Sign-in now depends on your agents and network.
  • More servers to build, patch, and watch.
  • Lockout attacks can reach the directory through Okta.
  • Okta password policies do not govern delegated users.
  • Imports add a delay between directory changes and Okta.
  • Several domains multiply the effort.
  • Moving off it later takes planning.

Choosing well

If your priority isLean towardBecause
Passwords must stay in our directoryDelegated authenticationIt is built for exactly this
Fewest servers to runOkta-mastered passwordsNo agents on the sign-in path
Seamless sign-in on office computersDesktop SSO, with delegation as the fallbackNo typing needed in the office
Moving toward no passwords at allPasswordless methods, with delegation during the transitionReduces dependence on the directory step by step
Letting another company’s staff sign inFederation to their identity providerThey check their own people
Delegation lets you modernize how people sign in without having to move where the truth about passwords lives.

FFrequently Asked Questions

Q1Does Okta store the password in delegated authentication?
For people whose password check is delegated, Okta does not keep the password it checks. The person types it on the Okta page, Okta forwards it securely to your agent, and the directory gives the answer.
Q2What is the difference between delegated authentication and single sign-on?
Delegated authentication decides who checks the password. Single sign-on decides how many times you must sign in. A company can use both together, and most do.
Q3Do I need to open a hole in my firewall?
No inbound hole is needed. The agent makes outbound encrypted connections to Okta over the standard secure web port, so your firewall only needs to allow that outbound traffic to Okta’s addresses.
Q4How many agents should I run?
At least two for each directory domain, on separate servers, and more if you have a large workforce or strict uptime goals. Size for the busiest sign-in hour while one agent is down.
Q5What happens if all agents are offline?
People whose passwords are checked by the directory cannot sign in. Keep an emergency administrator with an Okta-held password and a strong second proof so you can still manage Okta and repair the problem.
Q6Do Okta password policies apply to delegated users?
Mostly no. The directory’s rules for strength, age, and lockout are the ones that matter, because the directory owns the password. Use Okta’s policies for second proofs, locations, and sessions.
Q7Can I still use MFA?
Yes. The directory checks the password, and Okta handles the second proof. This lets you add modern methods without changing the directory.
Q8Why is a new employee missing from Okta right after I created them in the directory?
Profiles arrive through imports, which run on a schedule. Run a manual import for an immediate update, or plan onboarding steps around the delay.
Q9Can delegated authentication work with LDAP directories, not just Active Directory?
Yes. Okta provides an LDAP agent for directories that speak the LDAP language, so non-Microsoft directories can be used in a similar way.
Q10How can I protect people from lockout attacks?
Use Okta’s threat detection, limit sign-ins by network location, set lockout thresholds that forgive honest typing mistakes, and watch for many failures from one source.
Q11What does the service account need to do?
It must read the parts of the directory you import. If you allow password changes or resets through Okta, it also needs permission to do that for the relevant accounts. Keep its power as small as possible.
Q12Can I move away from delegation later?
Yes. Many companies use it as a bridge, then adopt passwordless sign-in or move password ownership to Okta in stages. Plan it carefully and study several weeks of logs before turning anything off.
Q13Where should I check exact screens and limits?
In Okta’s current documentation for your engine, Classic or Identity Engine, since menu names, agent versions, and options change over time.

SSummary and Key Takeaways

Key Takeaways

  • Delegation means Okta asks your directory. The password is checked by your Active Directory or LDAP directory through an agent, and Okta does not keep it for those users.
  • Agents call out, never in. They make outbound encrypted connections, so you avoid opening inbound firewall doors, and they also import profiles and groups.
  • The directory’s rules win. Password strength, expiry, and lockout come from the directory, while Okta supplies the second proof, location rules, and sessions.
  • Reliability is your job now. Run at least two agents per domain on separate servers, size for the Monday rush, and keep a tested break-glass administrator.
  • Mind the lockout trap. Wrong guesses reach the directory, so use threat detection, location limits, and sensible thresholds.
  • Least privilege everywhere. Give the service account, the agent servers, and the administrators the smallest power they need, and guard them closely.
  • It is often a bridge. Delegation lets you modernize sign-in today, and you can later move toward passwordless or Okta-held credentials in careful stages.