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.
.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
Ifdc-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
periodandpoll_periodof5. Change them to3600and300. - Has a
cesblock and a"wcce": nullline, withCES_AGENT_PFX_PASSWORDandCES_PASSWORDin.env. For WCCE, set"ces": null(or delete it), replace the"wcce": nullline with awcceblock, and addWCCE_AGENT_PFX_PASSWORDto.env. Adding a block while that line remains fails withduplicate field wcce. - Uses Kerberos (
Gssapi) for LDAP, which only the Windows build supports. In Docker it fails withldap: GSSAPI authentication is only supported on Windows!until you switch toNtlmand addLDAP_PASSWORDto.env. - Has
id9999999. 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.
wcce.
wcce
Submits the same on-behalf-of request asces 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.
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
Inces 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.
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: seturl 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.
RUST_LOG=debug, the bridge prints the exact filter it uses at startup (LDAP filter: …).