Skip to content

Directories (AD & LDAP)

Most installations do not create users by hand. They connect OkYouIn to the directory they already have, and OkYouIn synchronizes the users and groups it needs and checks passwords against the directory at sign-in. Users keep one password — the directory’s — and you write rules for the groups you already maintain.

Open Settings ▸ Integrations ▸ LDAP. Each card on the page is one configuration — one directory or domain. Several configurations can live side by side (two AD forests, AD plus FreeIPA…); each represents a separate domain, and in most environments a single one is enough.

Add Configuration first asks What kind of directory is this? The answer decides which settings the configuration has, the defaults it starts with, and which password methods it can offer. It is permanent: each type imports accounts by a different login attribute and tracks them by a different identifier. To move to another directory, create a second configuration.

TypeLogins byDefaults prefilledMS-CHAPv2
Active DirectorysAMAccountName, DOMAIN\user or user@domainusers (objectClass=user), groups (objectClass=group); disabled AD accounts excluded from syncyes — by joining the domain
OpenLDAPuidposixAccount users, groupOfNames groupsno
FreeIPAuid; accounts under cn=users,cn=accountsas OpenLDAPyes — by reading ipaNTHash
Google Workspace (Secure LDAP)uidas OpenLDAPno
Other LDAP directoryas you configureas OpenLDAP — nothing is assumed, set filters and attributes yourselfno
Microsoft Entra IDUPN—no — see Microsoft Entra ID, it is not an LDAP directory

Without MS-CHAPv2, password sign-ins of that directory’s users work with RADIUS PAP (and on the console, the SSO page and the Verify API); RADIUS MS-CHAPv2 does not.

FieldNotes
Config IDA short slug (lowercase, digits, -, _). Cannot be changed later.
Display NameHow the configuration is shown in the console.
Domain SuffixThe DNS domain of the directory, for example corp.example.com. Accepts user@corp.example.com sign-ins. Required for Active Directory, optional for the others.
Short domain nameThe NetBIOS-style name, for example CORP. Accepts CORP\user sign-ins. Uppercase, at most 15 characters. Required for Active Directory.
PriorityWhich configuration is tried first when a user types a name without a domain. Lower = first. Default 100.
Server URIsOne or more, space-separated: ldaps://dc1.corp.example.com ldaps://dc2.corp.example.com. Use ldaps:// for TLS on port 636.
Bind DN, Bind PasswordThe service account used for searches and the sync. Read access is enough. The password is stored encrypted.
Validate TLS, Directory server CA certificatePaste the PEM of the CA that issued the directory’s LDAPS certificate; empty uses the system trust store.
STARTTLSNegotiates TLS on plain ldap:// before the bind. Not for ldaps://.
Timeout (sec)Connection timeout for the sync and tests (default 10).
Directory response timeout at login (s)How long a sign-in waits for the directory’s answer (1–60, default 3). Keep it below the RADIUS timeout set on your devices.
Connection PoolStrategy (Round Robin, First Available, Random) across the server URIs.
EnabledA disabled configuration’s users cannot sign in, and their open console sessions end when you save.

Search sets where accounts and groups live: Search Bases (used for both), or under Advanced separate User Search Bases and Group Search Bases, plus the User Search Filter — the filter that finds one account at sign-in, with {username} replaced by the login name. Use Browse to pick bases from the live directory.

Attribute Mapping maps the directory’s attributes to OkYouIn’s user fields (username, email, first and last name, display name, phone) and group fields. The defaults of the directory type apply where empty.

Test Connection checks each server step by step — connect, bind, user and group search — and explains a failure in plain words (unreachable, name not resolved, certificate not trusted or not matching, STARTTLS not offered…).

When a directory user signs in, OkYouIn checks the password by binding to the directory as that user. Users can type:

They typeSigns in as
alicealice of the configuration with the lowest Priority that has her
alice@corp.example.comalice of the configuration whose Domain Suffix is corp.example.com
CORP\alicealice of the configuration whose Short domain name is CORP

A name qualified with another directory’s domain, or with a domain no configuration has, is refused before any password is checked — a user of a trusted domain cannot sign in as yours by typing your domain. The user only sees “Invalid username or password”; the real reason is in the log.

The account must already exist in OkYouIn — synchronized, or created by a sync — and be active.

Protected Users. Active Directory refuses simple LDAP binds for members of Protected Users (and under some NTLM restrictions) without checking the password. OkYouIn then checks the password over Kerberos with the same domain controllers, so those accounts still sign in on the console, the SSO page and over RADIUS PAP. MS-CHAPv2 cannot work for them.

The sync imports users and groups into OkYouIn and keeps them current. Sync settings are in the Synchronization section of the configuration.

SettingDefaultMeaning
Enable Auto SyncoffRun the sync on a schedule.
Interval (min)60Minutes between scheduled runs (5–10080).
ModeGroups → UsersWhat is imported; see below.
Sync User Filterper typeWhich accounts a sync imports. The AD default excludes disabled accounts.
Sync Group Filterper typeWhich groups a sync imports.
Selective Group SyncnonePick specific groups with Browse Groups; overrides the Sync Group Filter.
ModeWhat it does
Groups → UsersSyncs the selected groups and only their members. Users outside synced groups are ignored. The usual choice: sync VPN users, Network admins, Developers, and nobody else.
Groups + All UsersSyncs the groups with their members, then also imports every user matching the user filter, even those in no group.
Users OnlyImports users by filter. Groups and memberships are not touched.
OptionDefaultMeaning
Create usersonCreate OkYouIn accounts for directory users found by the sync. No MFA setup link is sent — use the Users list’s bulk Send MFA setup link.
Deactivate missing usersoffDeactivate users no longer found. They are reactivated if they reappear — unless an operator deactivated them.
Follow nested groupsonMembers of a group nested inside a selected group are imported into the selected group. The nested group itself is not created.
Import primary group membersoffAlso import accounts whose primary group is a selected group (AD primaryGroupID, RFC 2307 gidNumber).
Remove stale groupsoffDelete groups no longer found in the directory.
Remove stale usersoffDelete users no longer found. Irreversible — their MFA enrollment is lost.
Email a report after each successful syncoffSent to the active members of the chosen Report recipients group (default: the administrators). A failed sync is recorded in the audit log instead.
  • Sync Preview shows what the next sync would do — users and groups to create, update, disable and delete, and conflicts — without changing anything. It also works before you save.
  • Trigger Sync runs it now.
  • Sync History lists past runs with their results.

Synchronized groups appear under User Groups marked with their source. They can be used straight away in the Who condition of rules. For the console, the configuration assigns RBAC models to the groups it creates:

  • Default RBAC — the model given to every new group from this directory.
  • Per-Group Overrides — a different model for specific groups, by DN (CN=Helpdesk,OU=Groups,DC=corp,DC=example,DC=com) or just the CN (Helpdesk).

After the sync, a directory group’s RBAC model, administrators flag, MFA requirement and web sign-in can also be set on the group itself. See Local users & groups and Console roles & RBAC.

Users Only creates no groups, so these settings do not apply in that mode.

The username, profile and password come from the directory; the next sync writes them back. In OkYouIn you can still set a directory user’s account validity, add them to local groups, and manage their MFA. Directory accounts cannot be deleted by hand; the sync’s removal options or the configuration’s deletion do that.

  • MS-CHAPv2 (Active Directory, FreeIPA) — verify MS-CHAPv2 for this directory’s users. See AD domain join.
  • Kerberos SSO (Active Directory) — let domain PCs sign in to the console and the single sign-on page with their Windows ticket instead of a password. Policy and MFA still apply.
  • Sync History — past runs.

Deleting asks what happens to the users and groups it synchronized; their console sessions end in every case:

ChoiceEffect
Keep them (clear domain link)Users and groups remain but lose their directory link; they can no longer sign in with domain credentials.
Disable all domain usersAll users of this domain are deactivated. Groups remain.
Delete all users and groupsPermanently removes everything synchronized from this domain (after a confirmation). Refused while one of its groups is still used by a rule.

The LDAP RBAC section has separate actions to view, manage configurations, run a sync, test the connection and browse the directory. The built-in operator model may only view directory settings. See Console roles & RBAC.