Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Active Directory Sync fault finding (v8.40 and below)

Diagnose legacy Active Directory Sync service, certificate, and connection failures.

Logs and trace

Two apps log on the client workstation. Enable trace by editing the app config's <rules> minlevel to "Trace":

  • Diagnostic client: AdSyncDiagnosticClient.exe.config in C:\Program Files (x86)\Gallagher\Gallagher Active Directory Sync Diagnostic Client\bin

  • Control app: AdsControlApp.exe.config in C:\Program Files (x86)\Gallagher\Active Directory Sync Control

  • Service log: AdSyncService.log in C:\ProgramData\Gallagher\Command Centre

The AdSyncDiagnosticClient.exe.config open in Notepad with the NLog rule minlevel set to "Trace"

Service not starting — common causes

  1. FT AD Sync Service account lacks access to the certificate store (fix via Sync User Accounts Requirement).

  2. Certificate:

    • Client certificate mismatch/missing: AD Sync cannot decrypt repconfig.bin in C:\ProgramData\Gallagher\AdSyncService\RepConfig; ADSyncService.log shows "Padding is invalid and cannot be removed". Create a fresh client certificate if unsure and delete the non-working one. Do not confuse the AD Sync server certificate with the client certificate.

    • Server certificate thumbprint does not match the one generated by the AD Deployment utility (often a certificate retained from a previous install).

  3. Corrupted repconfig.bin / unrecoverable client certificate:

    • Corrupted: delete repconfig.bin, rename repconfig.old.bin to repconfig.bin, restart the service.

    • Lost certificate: delete all repconfig.bin, restart the service.

    • The certificate must live in Certificate store > Current User > Personal > Certificates.

  4. FIPS mode enabled on the AD Sync machine: ADSyncService.log shows a FIPS validation error. Disable FIPS via the registry (set the Enabled string to 0).

AdSyncService log showing a System.InvalidOperationException — "This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms"

The Web Server URI must be FQDN+Port, not the IP: protocol://[Resource name]:Port/ActiveDirectorySync/.

Connection issues

Test with the Diagnostic client (checks client certificate, server address, credentials), or by opening the Web Service URI in a browser (a valid cert prompt = reachable; page-not-found = unreachable).

AD Sync Diagnostic Client showing a failed connection (red X) with an EndpointNotFoundException
  • Is connected to AD = No: check the DC computer name and credential in <dc name="ADDomainController" credential="DomainUserLogon" />.

  • Is connected to CC = No: possible TLS issue on the Gallagher Server (see the "Unexpected logon result 403 / 403 Forbidden" troubleshooting).

The Control App's Statistics and Errors tabs show replication counts and per-group errors while troubleshooting.

Retrieving logs (summary)

Stop replication on the client, then stop the FT AD Sync Service on the Web Service server. Set AdsService.exe.config minlevel to "Trace", archive existing AdSyncService*.log from C:\ProgramData\Gallagher\Command Centre, restart the service, reproduce with a single replication group enabled, then collect AdSyncService.log.


🔗 Related

Last updated

Was this helpful?