Skip to main content
Fields are listed for version 1.5.0, which reads both files at startup. For setup steps and complete examples, see Install the bridge.

Files and command-line options

Secrets

A field whose name ends in _env holds the name of an environment variable, never the secret itself. The value goes in .env, or in the bridge’s environment. At startup the bridge resolves every name and, if any is missing, exits listing all of them: Missing required environment variable(s): …. A variable that is present but empty passes that check and fails only when used. .env holds one NAME=value per line, with no spaces around =. Put a value containing $, #, a backslash, a double quote or spaces in single quotes, for example CES_PASSWORD='value'; write a single quote inside it as '\''. Windows line endings and a UTF-8 byte order mark are accepted in .env. Save dc-bridge-config.json as UTF-8 without a byte order mark.
If a .env line can’t be parsed, the bridge stops with failed to parse <path>: Error parsing line: '…', which repeats the line, including any password on it. If that output was shared or logged, change the password.
.env can also hold RUST_LOG (log level, default info), NO_COLOR=1 (no color codes in a redirected log) and HTTPS_PROXY. The proxy carries the bridge’s HTTPS connections to Allthenticate, to CES and to error reporting, but not LDAPS or WCCE’s DCOM connection to the CA.

First-run placeholder

If dc-bridge-config.json doesn’t exist, the bridge writes a placeholder, plus a .env listing its variables if no .env exists, and exits with code 0. An existing .env is left alone; add the variables yourself. The placeholder:
  • Uses period and poll_period of 5. Change them to 3600 and 300.
  • Has a ces block and a "wcce": null line, with CES_AGENT_PFX_PASSWORD and CES_PASSWORD in .env. For WCCE, set "ces": null (or delete it), replace the "wcce": null line with a wcce block, and add WCCE_AGENT_PFX_PASSWORD to .env. Adding a block while that line remains fails with duplicate field wcce.
  • Uses Kerberos (Gssapi) for LDAP, which only the Windows build supports. In Docker it fails with ldap: GSSAPI authentication is only supported on Windows! until you switch to Ntlm and add LDAP_PASSWORD to .env.
  • Has id 9999999. Set your bridge ID.

Top-level blocks

With neither ces nor wcce, the bridge only syncs users. With both, startup fails: enrollment: set only one of ces or wcce, not both. Startup errors found while preparing the blocks are listed together under dc-bridge failed to start due to the following configuration error(s):, each prefixed with its block, such as wcce:.

bridge

ces

The certificate template must issue automatically, with CA certificate manager approval cleared, on either enrollment path. User name and password (Microsoft: User Name and Password Authentication), sent as a WS-Security token inside the request. This isn’t NTLM.
Client certificate (mutual TLS). The PFX must hold exactly one private key.
Kerberos authentication to CES isn’t supported. To have the CA authenticate the bridge’s Windows account, use wcce.

wcce

Submits the same on-behalf-of request as ces straight to the CA’s MS-WCCE interface (ICertRequest2 over DCOM), with no CES, CEP or IIS. It needs the Windows build on a domain-joined host; the Docker image and Linux builds exit with wcce: native WCCE (ICertRequest2 over DCOM) enrollment is only supported on Windows; …. There’s no auth block: the CA authenticates the account the bridge runs as.
A single backslash, as certutil prints it, fails with failed to parse <path>: invalid escape at line N column M, or before b, f, n, r or t with wcce: ca_config contains a control character. Startup also rejects a URL, a value without a backslash, an empty host or CA name, two backslashes inside the value (four in JSON), and spaces around either part.

Enrollment agent certificate

In ces or wcce, give either agent_pfx_path with agent_pfx_password_env, or, on the Windows build, the certificate stores to search: The run-as account (or the service identity NT SERVICE\dc-bridge) needs Read on the key.

ldap

NTLM: a user name and password bind.
Use user@domain or DOMAIN\\user in JSON, never a DN. Kerberos (Gssapi): through Windows SSPI, as the account the bridge runs as, with no keytab or password. fqdn is the domain controller’s fully qualified name. Windows build only.

Multi-domain forests

Members from other domains are found only through a Global Catalog: set url to <gc host>:3269 and base_dn to the forest root domain’s DN, or to "" if the forest has more than one tree. Every group between a listed group and a user in another domain must be universal, and a Global Catalog returns only the partial attribute set (mail, userPrincipalName and sAMAccountName are in it). Without a Global Catalog, listing a group from another domain fails every sync with failed to look up group_dns: …. To preview what a group_dns list matches before a production bridge uses it, run the bridge’s filter on a domain-joined host, adjusting the search base and group DN. Starting the bridge is not a dry run: its first sync applies immediately.
With RUST_LOG=debug, the bridge prints the exact filter it uses at startup (LDAP filter: …).
Last modified on November 25, 2026