What the domain controller needs
- A Windows Server domain controller that already holds the users you want to sync.
- LDAPS enabled (TCP 636). It’s off on a fresh Active Directory Domain Services installation, and the bridge never uses plain LDAP on port 389. To turn it on, see Microsoft’s guide to enable LDAP over SSL.
- A DNS name for the domain controller that resolves from the bridge host and appears in the LDAPS certificate’s Subject or Subject Alternative Name. Don’t use an IP address: the Windows build then fails with
The certificate's CN name does not match the passed value. (os error -2146762481). - Time in sync. The domain controller, the CA, the bridge host and the computers share a time source and agree within one minute. Kerberos and certificate validation both fail when clocks drift.
- Strong certificate mapping. Since February 2025, Microsoft’s default for KB5014754 is Full Enforcement: a certificate without the SID extension fails to sign in unless your domain controllers are explicitly set to Compatibility mode. Your CA adds the extension automatically when it has the May 2022 update or later (see Configure AD CS).
Choose how the bridge binds to LDAP
The bridge authenticates to the domain controller as an LDAP bind account that can read the users’ organizational unit (OU). It needs no certificate rights. Which method you can use depends on where the bridge runs:- Kerberos. The bridge binds as its own Windows account, so no LDAP password is stored. That account needs read access to the OU. If the bridge runs as NetworkService or LocalSystem, the account is the bridge host’s computer account,
DOMAIN\HOST$. Note the domain controller’s fully qualified name (for exampledc01.internal.example.com): the bridge uses it to find the Kerberos service. - NTLM. Create a standard domain user, for example
svc-allth-ldap, with read access to the OU and a password that doesn’t expire. Use NTLM to keep the LDAP bind on an account without certificate rights, and on any Docker or Linux bridge.
Collect these values
1
Domain controller hostname
Only the hostname, without
ldaps://, for example dc01.internal.example.com. The bridge always connects on port 636; to use another port, append :port.2
Base DN
The distinguished name of the OU to sync, copied from ADSI Edit, for example
OU=Members,DC=internal,DC=example,DC=com. Pilot on an OU, not the domain root, and pick one whose parent can become the production scope (see Change the scope safely). The search is paged, so the domain controller’s MaxPageSize doesn’t limit how many users you can sync.3
Group DNs (optional)
To sync only members of certain Active Directory groups, collect each group’s full distinguished name. Nested membership counts. Don’t list The group that holds Enroll on your certificate template is a natural choice, so the synced users and the users who can get certificates are the same set.
Domain Users or any other group that is someone’s primary group: primary groups aren’t recorded in memberOf, so almost no one matches. To print a group’s DN, run:4
LDAPS CA certificate (if needed)
If an internal CA issued the LDAPS certificate, export that CA’s certificate (PEM or DER). A Docker bridge needs it, as the root CA certificate, and the domain controller must send the intermediate in its TLS handshake. The Windows build also trusts the Windows certificate store, which on a domain member normally holds your enterprise root already, so there the file is usually unnecessary.
Prepare the users
- Every user to sync has the E-mail attribute (
mail) filled in. Allthenticate creates and matches each user by that address. Use an all-lowercase address that is unique and on a domain that resolves on public DNS, not.local,.internalor.corp. - Only user objects are synced. Computers, groups, critical system objects and the
krbtgt*andMSOL*accounts are excluded automatically. - Disabled accounts are synced too. They can’t sign in, because the domain controller rejects them.
- Prepare a test OU with at least one test user whose E-mail is filled in.
How Active Directory changes affect users
The bridge rereads the whole search base everypoll_period (at most 10 minutes with the recommended setting) and mirrors it into the DC Sync Group in your Allthenticate organization. Users are matched only by email address, compared case-insensitively. If two Active Directory accounts share an address, they become one Allthenticate user, with the attributes of whichever comes last in the search.
When a user is removed, their whole Allthenticate account is deleted: group memberships, door and computer policies and computer user names go with it, along with any other Allthenticate access they had. Their certificate stays valid until it expires. If access must end at once, also disable or delete the Active Directory account so the domain controller refuses the sign-in, and revoke the certificate on your CA if your policy requires it. Allthenticate keeps a deleted user’s directory attributes and certificate records until the Certificate Generation Policy itself is deleted.
Change the scope safely
Changingbase_dn or group_dns deletes every synced user who falls outside the new scope on the next poll, with their groups and policies.
- Widening is safe. Moving the base DN to a parent of the current OU keeps every synced user inside it. That’s the intended way to go from pilot to production.
- Narrowing deletes users. So does moving the base DN to a sibling OU, setting
group_dns, or removing an entry from it. - Guards: Allthenticate ignores a poll that returns no users with an email address, and the bridge holds back a sync that matches no such users or where a
group_dnsentry isn’t a group, reportingsync withheld: …on the bridge card. Nothing guards against a scope that is valid but narrower than intended.
Validation checkpoints
Run these before the call. The end-to-end checks (bind and users returned) run once the bridge is up; see Install the bridge.
Next: Configure AD CS.