Skip to content

Troubleshooting

The order is always the same: log, then configuration, then server. Below is exactly what to look for.

1. Provider log

C:\ProgramData\AMITRONIC\logs\amfa-cp.log

Set log_level to debug and reload LogonUI (sign out or stop the LogonUI process). The log header is the first place where most configuration mistakes show up:

CP Version: 1.0.0.0
Hostname: brama.firma.local
Port: 443
Default realm: firma.local
Language: pl

Also check which mode the provider is in:

  • SetMode: New Mode=USERNAMEPASSWORD — first step: username and password.
  • SetMode: New Mode=AMFA — the one-time-password step.

2. Configuration

Check HKLM\SOFTWARE\AMITRONIC\AMFA:

  • Check amfa_auth (engine) and amfa_server (appliance), including ports.
  • whether amfa_realm is exactly the realm name that exists on the gateway (a typo in the name is a classic mistake),
  • whether log_level was left at normal when you are looking for details.

The log shows the values that were used, so there is no need to guess — compare them with what was supposed to be set.

3. Whether the server answers from this machine

Check amfa_auth (engine) and amfa_server (appliance), including ports.

curl.exe -o nul -w "HTTP %{http_code}\n" https://ADDRESS:PORT/

Use DNS names matching the certificate and a trusted CA chain. Do not disable TLS validation.

4. Proof after installation or upgrade

A "build with no errors" alone proves nothing. After installation on a machine two things must hold:

  1. Both COM classes can be instantiated — the provider and the filter. Check on the machine (PowerShell):
foreach ($g in @("{7BAF541E-F8E0-4EDF-B69A-BD2771139E8E}", "{34065473-D75F-4BC2-9782-E98E63ED0D41}")) {
    try { $o = [Activator]::CreateInstance([Type]::GetTypeFromCLSID($g)); Write-Output "$g OK" }
    catch { Write-Output "$g BLAD $($_.Exception.Message)" }
}
  1. The filter actually starts — the log must contain AmfaCreateInstance - FILTER START. When it is absent, Windows could not instantiate the filter class and all the filtering settings are dead.

5. Typical situations

Symptom Cause What to do
The tile is there, but Enter does nothing after the code is typed the field does not have focus check the provider version (from 1.0.0 the provider sets focus itself); look at SetMode in the log
Failed to load bitmap in the log the built-in tile resource could not be loaded check that the tile resource is installed; the bitmap path entry no longer exists — the tile always uses the built-in resource
Unable to check global groups no controller list and the locator could not be asked check excluded_group_controllers and access to a domain controller
An excluded group still requires a code a global group without a reachable controller check the controller list; local and built-in groups work without it
ERR904 from the server the server does not know the user in that realm check amfa_realm and the realm mapping
A message in English on a locked machine a missing text in the translation file the account-state texts (47–50 and 65) are in all languages; check ui_language and locales_path