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.
Directory types
Section titled “Directory types”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.
| Type | Logins by | Defaults prefilled | MS-CHAPv2 |
|---|---|---|---|
| Active Directory | sAMAccountName, DOMAIN\user or user@domain | users (objectClass=user), groups (objectClass=group); disabled AD accounts excluded from sync | yes — by joining the domain |
| OpenLDAP | uid | posixAccount users, groupOfNames groups | no |
| FreeIPA | uid; accounts under cn=users,cn=accounts | as OpenLDAP | yes — by reading ipaNTHash |
| Google Workspace (Secure LDAP) | uid | as OpenLDAP | no |
| Other LDAP directory | as you configure | as OpenLDAP — nothing is assumed, set filters and attributes yourself | no |
| Microsoft Entra ID | UPN | — | 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.
Connection
Section titled “Connection”| Field | Notes |
|---|---|
| Config ID | A short slug (lowercase, digits, -, _). Cannot be changed later. |
| Display Name | How the configuration is shown in the console. |
| Domain Suffix | The 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 name | The NetBIOS-style name, for example CORP. Accepts CORP\user sign-ins. Uppercase, at most 15 characters. Required for Active Directory. |
| Priority | Which configuration is tried first when a user types a name without a domain. Lower = first. Default 100. |
| Server URIs | One or more, space-separated: ldaps://dc1.corp.example.com ldaps://dc2.corp.example.com. Use ldaps:// for TLS on port 636. |
| Bind DN, Bind Password | The service account used for searches and the sync. Read access is enough. The password is stored encrypted. |
| Validate TLS, Directory server CA certificate | Paste the PEM of the CA that issued the directory’s LDAPS certificate; empty uses the system trust store. |
| STARTTLS | Negotiates 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 Pool | Strategy (Round Robin, First Available, Random) across the server URIs. |
| Enabled | A 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…).
How directory users sign in
Section titled “How directory users sign in”When a directory user signs in, OkYouIn checks the password by binding to the directory as that user. Users can type:
| They type | Signs in as |
|---|---|
alice | alice of the configuration with the lowest Priority that has her |
alice@corp.example.com | alice of the configuration whose Domain Suffix is corp.example.com |
CORP\alice | alice 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.
Synchronization
Section titled “Synchronization”The sync imports users and groups into OkYouIn and keeps them current. Sync settings are in the Synchronization section of the configuration.
| Setting | Default | Meaning |
|---|---|---|
| Enable Auto Sync | off | Run the sync on a schedule. |
| Interval (min) | 60 | Minutes between scheduled runs (5–10080). |
| Mode | Groups → Users | What is imported; see below. |
| Sync User Filter | per type | Which accounts a sync imports. The AD default excludes disabled accounts. |
| Sync Group Filter | per type | Which groups a sync imports. |
| Selective Group Sync | none | Pick specific groups with Browse Groups; overrides the Sync Group Filter. |
| Mode | What it does |
|---|---|
| Groups → Users | Syncs 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 Users | Syncs the groups with their members, then also imports every user matching the user filter, even those in no group. |
| Users Only | Imports users by filter. Groups and memberships are not touched. |
Options
Section titled “Options”| Option | Default | Meaning |
|---|---|---|
| Create users | on | Create 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 users | off | Deactivate users no longer found. They are reactivated if they reappear — unless an operator deactivated them. |
| Follow nested groups | on | Members of a group nested inside a selected group are imported into the selected group. The nested group itself is not created. |
| Import primary group members | off | Also import accounts whose primary group is a selected group (AD primaryGroupID, RFC 2307 gidNumber). |
| Remove stale groups | off | Delete groups no longer found in the directory. |
| Remove stale users | off | Delete users no longer found. Irreversible — their MFA enrollment is lost. |
| Email a report after each successful sync | off | Sent to the active members of the chosen Report recipients group (default: the administrators). A failed sync is recorded in the audit log instead. |
Preview, run, history
Section titled “Preview, run, history”- 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.
Group mapping
Section titled “Group mapping”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.
What stays editable for directory users
Section titled “What stays editable for directory users”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.
Other tabs
Section titled “Other tabs”- 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 a configuration
Section titled “Deleting a configuration”Deleting asks what happens to the users and groups it synchronized; their console sessions end in every case:
| Choice | Effect |
|---|---|
| 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 users | All users of this domain are deactivated. Groups remain. |
| Delete all users and groups | Permanently removes everything synchronized from this domain (after a confirmation). Refused while one of its groups is still used by a rule. |
Permissions
Section titled “Permissions”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.