From v2026.11, an Active Directory or LDAP source can list several servers and fail over between them, shows each server's state on a Hosts tab, and reads incremental changes by each domain controller's own change counter (USN), so no change is lost between controllers. Editing a source needs the monosync.sources.full permission. Open it from the side menu: Sources > the source.
Several servers in Host
Type one or more servers in Host, separated by commas. They are tried in order:
dc1.corp.local, dc2.corp.local:636, [fd00::10]:636
- Each server is a name or an address, with an optional port (1–65535). Write an IPv6 address with a port in brackets.
- Without a port, the Port setting is used, else 389, or 636 with Use SSL. LDAPS comes from Use SSL; do not write
ldaps://in Host. - A server that cannot be reached or stops answering is blocked for 15 minutes: the operation that was waiting on it fails, and the next connection, also later in the same run, uses the next server. A server whose certificate is rejected is skipped, not blocked. Wrong credentials never block a server.
- When all the others fail, blocked servers are tried last.
- Any single wait on a server is limited to 150 seconds. A server that does not answer in time fails that operation with
The LDAP server <host:port> did not answer within 150 s, so the operation was stopped and the connection closed.
The Hosts tab
The source page has a Hosts tab for Active Directory and LDAP sources. It lists the servers of the Host setting with their status: OK or Blocked, and Certificate problem, Certificate not validated or Trusted certificate. Show certificate shows the certificate's subject, names, issuer, validity and thumbprint.
- Unblock lets the next run use a blocked server again.
- Trust certificate trusts exactly the certificate you see: its thumbprint is added to the source's SSL Certificate Thumbprint setting. If the server's certificate has changed since you opened the tab, Monosync refuses and asks you to refresh first. Only trust a certificate of a server that is yours.
- History shows when servers were blocked, unblocked or skipped, by which run or person. A server that keeps failing is listed at most once an hour.
Change tracking by USN
Incremental runs ask each domain controller for what changed after the last change read from that same controller (its uSNChanged counter), instead of comparing change times with Monosync's clock. The setting Track Changes by USN (Active Directory) is on by default.
- A domain controller is read in full once when a run reaches it for the first time, after its restore with a new identity, after a change of Base DN or filter, and when its counter is lower than the saved one. That run costs as much as a full sync of the source.
- The first incremental run after the upgrade uses the old time window once; from the next run on, USN is used.
- Positions are saved only when a run succeeds, never by a calculation run.
- An LDAP server that is not Active Directory keeps the time window (Updated Date Property and Fetch Time Buffer); so does a source with the setting off.
- When Host is a domain name that points at several domain controllers, list the controllers by name instead: each run must reach the same controller twice.
The run's fetch information shows Change Tracking (<domain controller>), for example USN 104211..104260, or why the controller was read in full.
The bind account must be able to read uSNChanged on the search base and invocationId on each domain controller's NTDS Settings object. Authenticated users normally can. When it cannot, the run fails with a message that starts with Change tracking by USN: and says which right is missing. Grant that right, or turn off Track Changes by USN (Active Directory) for the source.
Referral Following
Referral Following (off by default) follows LDAP referrals to other servers and partitions. Turn it on when entries of the Base DN sit on another server. Hop Limit (default 10; 0 or less means 10) limits how far referrals are followed.
- A referral that cannot be read, or one beyond the Hop Limit, stops the run instead of returning part of the entries:
The result would be incomplete, so the fetch is stopped. - With Use SSL, referred servers are read over LDAPS too: their certificates must be trusted and carry the referred host name.
- With Referral Following off, a Base DN on another server fails the run with a message that says to point Host at a server of that domain or turn Referral Following on.
Testing a source
On the Troubleshooting tab, Start Testing runs: Check Access (name and port reachability), Test Connection (connects like a sync and checks the Base DN, paging and the clock difference), Read Test (paged, like a sync), Certificate Information, and Connectivity / TLS Check (every configured server, every Last Logon domain controller and every referred server, hop by hop). Each configured server is reported on its own.