Configuring the AMFA credential provider¶
This chapter describes only the settings a deployment can change. Everything about the appearance and the flow of the login screen is a product decision: it has no registry entry and cannot be reconfigured. A setting that changes nothing is worse than no setting — it suggests a possibility that does not exist.
The settings live in:
If a value is absent, the one from the code applies. A deployment sets them by hand, with a script or with a policy that writes the registry values.
Product settings¶
| Entry | Type | Default | Meaning |
|---|---|---|---|
amfa_auth |
REG_SZ | — | Authentication engine address (host, host:port or host:port/path). The first non-empty entry wins — amfa_auth before amfa_server. |
amfa_server |
REG_SZ | — | AMFA appliance base address (station channel, vault, licence report). It is also read as the engine address when amfa_auth is empty. |
amfa_realm |
REG_SZ | — | Default AMFA realm appended to requests without their own mapping. |
identity_format |
REG_SZ | domena\user |
upn — the provider sends the UPN; any other value (by default domena\user) — the name in the form domena\user. The installer writes the default value. |
auth_mode |
REG_SZ | password |
Only mode: Windows username and password, followed by MFA. The passkey mode is rejected. |
log_level |
REG_SZ | normal |
normal — status and errors; debug — troubleshooting detail. Secrets remain masked. |
ui_language |
REG_SZ | pl |
Two-letter language code, e.g. pl, en, de; it must have a translation file in the locales directory. The installer writes pl; when the entry is missing or the code is not two characters long, the provider takes the system language. |
windows_filter |
REG_SZ | 0e |
Filtering is enabled by default; 0/0d disables hiding. 1e remote only, 2e local only. Hiding also depends on the scenario settings. |
windows_filter_whitelist |
REG_MULTI_SZ | card provider list | MSI appends the known card providers to the existing list. |
windows_logon |
REG_SZ | 0e |
Sign-in (default 0e). |
windows_unlock |
REG_SZ | 0e |
Unlock (default 0e). |
windows_credui |
REG_SZ | 0d |
CredUI (default 0d: AMFA available; other tiles are not hidden). |
excluded_accounts |
REG_MULTI_SZ | empty | Accounts excluded from the second factor: account name, name with domain, or SID. |
excluded_groups |
REG_MULTI_SZ | empty | Groups whose members are excluded from the second factor: group name or SID. |
excluded_group_controllers |
REG_MULTI_SZ | empty | Domain controllers to check global groups against. An empty list does not mean "do not check": the provider asks the domain locator for the nearest controller itself. A populated list is an override and decides. |
locales_path |
REG_SZ | installation directory | Directory with translation files, if the deployment keeps them elsewhere. |
require_pinned_cert |
REG_SZ | 0 |
Pinning the MFA server certificate from the machine store (TrustedPeople): 0 — standard HTTPS validation, 1 — connect only when the server certificate or its issuer is in the machine store (connection refused otherwise). |
Standard HTTPS validation is mandatory (trusted issuer, matching name and valid certificate). Replacing the certificate on the gateway and distributing the material to the stations is described in Certificates and TLS.
FIDO2 UV policy and offline issuance are controlled by AUTH, not workstation settings.
Current code and MSI properties are authoritative; do not use obsolete registry names.
Realm mapping¶
The realm-mapping subkey maps Windows domains to AMFA realms: the entry name is the domain, the value
(REG_SZ) is the realm. When the mapping matches, realm=… goes into the request.
What is a setting and what is a product decision¶
The following things are fixed and have no registry entry:
- Screen appearance — the tile image, showing the username and domain, no domain hint, no password-reset link. The tile always shows the name and domain that were used to sign in.
- Timeouts — connection 60 s, send and receive 30 s each, name resolution 10 s. Previously a missing entry zeroed these values and the connection waited forever.
- Fallback server — out of scope for 1.0; there is no second address to enter.
- Autologon — there is none. Credentials must not sit in the registry.
- Step order — after a wrong code we return to the code step; the exception is when the server does not know the user, in which case we return to the start.
- Offline data — the current user's data is checked, and the store has a fixed path
under
C:\ProgramData\AMITRONIC\. - User-Agent header —
amfa-cp/<version> Windows/<machine name>. The machine name stays, because in the server log it lets you tell which station a request came from. - Windows Hello in CredUI scenarios — enabled permanently.
Provider filtering¶
The first scenario-value character selects 0 all sessions, 1 remote, 2 local, 3 disabled. Suffix e permits the filter to hide other tiles; d leaves them visible. The whitelist is respected. With CredUI 0d, another provider can remain available; installing AMFA alone does not guarantee MFA at every UAC elevation.
You can read the CLSIDs of the providers present on the machine from
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers.
Offline sign-in and the Windows logon cache¶
The provider's offline path (offline data on the key) needs Windows to keep its own cache of previous logons. When the domain controller is unreachable, Windows compares the credential with that cache — without it a domain sign-in is refused even if the credential is correct.
0— offline is impossible (the key path included); no value =10.- The matching policy is "Interactive logon: Number of previous logons to cache (in case domain controller is not available)"; if it is set by GPO, the registry value comes from it.
- The account must sign in online once for the cache to fill; a password change invalidates the entry until the next online sign-in.
- A cached sign-in is security event
4624of type 11 (type 10 = remote session, type 2 = sign-in with a reachable controller).
Log¶
File: C:\ProgramData\AMITRONIC\logs\amfa-cp.log.
Use debug only for troubleshooting; then return to normal.