TechBuzzPro

How to Enable Kerberos Authentication in Browser

· 7 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To enable Kerberos authentication in a browser, you must configure the browser to trust your Kerberos realm and allow it to send Windows Integrated Authentication (WIA) credentials to the intranet sites that require them. On Windows, this is done through Group Policy or the registry for Internet Explorer and Edge, and through about:config for Firefox. Chrome on Windows uses the same Windows settings as Edge and IE, so no separate configuration is needed. On macOS and Linux, you must also obtain a Kerberos ticket with kinit before the browser can authenticate. This guide covers the practical steps for the major browsers, the prerequisites, and the common pitfalls that cause Kerberos SSO to fail silently.

What You'll Need

  • A working Kerberos environment: a Key Distribution Center (KDC) such as Active Directory, and a service principal name (SPN) registered for the web server (for example, HTTP/intranet.example.com).
  • The client computer joined to the same Kerberos realm (domain-joined on Windows) or configured with a krb5.conf file on macOS and Linux.
  • A valid Kerberos ticket for the user. On Windows this is obtained automatically at logon; on macOS and Linux you run kinit.
  • Administrative rights on the client to change browser policy or registry settings.
  • The exact hostnames of the sites that should use Kerberos. Wildcards are supported in some settings but not all, so list them explicitly when in doubt.
  • For Firefox: the network.negotiate-auth.trusted-uris preference, set through about:config or a policies.json file.

Menu labels and preference names can differ slightly between browser versions and operating systems. The steps below note where Windows, macOS, and Linux diverge.

Step-by-Step

  1. Confirm the service is Kerberos-enabled. Before touching the browser, verify that the web server is configured for SPNEGO/Kerberos and that the SPN exists. On Windows, run setspn -L <webserver-account> from an elevated command prompt and look for an entry like HTTP/intranet.example.com. If the SPN is missing, the browser cannot negotiate Kerberos no matter what you set.
  2. Check that you have a ticket. On Windows, run klist in Command Prompt and confirm a ticket-granting ticket (TGT) for your domain is listed. On macOS or Linux, run klist after kinit. If no ticket is present, Kerberos will not work; on Windows, log off and on again or run klist purge and then access a domain resource to renew.
  3. Configure Internet Explorer or Edge on Windows. Open Internet Options (search for it from the Start menu), go to the Security tab, select Local intranet, and click Sites. Add your intranet hostnames. Then click Custom level, scroll to User Authentication > Logon, and select Automatic logon with current user name and password. Click OK. For Edge, the same Internet Options dialog controls integrated authentication because Edge uses the Windows settings. If you manage many machines, set this through Group Policy instead: Computer Configuration > Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Security Page > Site to Zone Assignment List, then set the Logon option under the same path.
  4. Configure Chrome on Windows. Chrome reads the same Windows zone settings as Edge and IE, so the steps above are usually sufficient. To be explicit, you can also set the policy AuthServerAllowlist (formerly AuthServerWhitelist) to your hostnames. This is done through the Chrome enterprise policy templates or the registry under HKLM\SOFTWARE\Policies\Google\Chrome. Set AuthServerAllowlist to a comma-separated list such as *.example.com and AuthNegotiateDelegateAllowlist only if delegation is required. Restart Chrome after changing policy.
  5. Configure Firefox. In the address bar, type about:config and accept the warning. Search for network.negotiate-auth.trusted-uris. Set its value to your intranet hostnames separated by commas, for example intranet.example.com,*.example.com. If your environment requires delegation, also set network.negotiate-auth.delegation-uris to the same list. On macOS and Linux, Firefox also needs a valid ticket from kinit; the browser does not obtain one automatically.
  6. Configure Safari on macOS. Safari uses the system Kerberos configuration. Ensure /etc/krb5.conf points to your realm, run kinit to get a ticket, and then access the site. Safari does not have a per-site allowlist for SPNEGO in the same way as Firefox; it relies on the system settings and the site's own authentication challenge.
  7. Test the setup. Open a private or incognito window and navigate to the Kerberos-protected URL. You should be logged in without a password prompt. If you are prompted, the browser did not send the Negotiate header, which usually means the hostname is not in the allowlist or no ticket is available. Check the browser's developer tools Network tab for a 401 response with WWW-Authenticate: Negotiate followed by a successful retry.
  8. Apply settings at scale if needed. For managed fleets, use Group Policy for Edge and IE, the Chrome policy templates for Chrome, and a policies.json file for Firefox. This avoids per-user configuration and ensures new machines are configured before first use.

Common Mistakes

  • Using an IP address instead of a hostname. Kerberos requires a service principal name that matches the hostname. Browsers will not negotiate Kerberos for an IP address, and the SPN will not match.
  • Forgetting the allowlist. Chrome and Firefox will not send Kerberos credentials to arbitrary sites. If the hostname is not in the trusted list, the browser falls back to NTLM or prompts for a password.
  • Missing or expired tickets. On macOS and Linux, a reboot or long idle period can expire the ticket. Run kinit again. On Windows, a stale ticket can be cleared with klist purge.
  • Wrong realm or clock skew. Kerberos is time-sensitive. If the client clock is more than a few minutes off from the KDC, authentication fails. Ensure time sync is working.
  • SPN registered to the wrong account. If the SPN exists but is attached to a different service account than the one running the web server, authentication fails. Use setspn to check and correct.
  • Assuming Safari has a per-site allowlist. Safari relies on system configuration; there is no equivalent of Firefox's trusted-uris preference in the browser UI.

Tips

  • Use a private window when testing so cached credentials or cookies do not mask a configuration problem.
  • Keep the allowlist as narrow as possible. Adding * or a broad wildcard can send credentials to unintended hosts.
  • On Windows, the Local intranet zone is trusted by default for integrated authentication in many configurations, but explicit zone assignment is more reliable than relying on automatic detection.
  • Document the exact hostnames and SPNs in your environment. Mismatches between the browser allowlist and the SPN are the most common cause of failure.
  • If you use both Chrome and Edge on Windows, configure the Windows zone settings once and both browsers will follow them.

Troubleshooting

If the browser still prompts for a password, work through these checks in order. First, confirm the URL uses the exact hostname that matches the SPN, not an alias or IP. Second, verify a valid ticket with klist; if none, obtain one. Third, confirm the hostname is in the browser's allowlist: Internet Options for Edge/IE/Chrome on Windows, about:config for Firefox. Fourth, check the server's WWW-Authenticate header in developer tools; it should offer Negotiate. If it offers only NTLM, the server is not configured for Kerberos. Fifth, check clock skew and realm configuration. If you recently changed policy, restart the browser completely, not just the tab. On macOS and Linux, confirm /etc/krb5.conf has the correct realm and KDC entries. If all else fails, test with a known-good account and a minimal allowlist entry to isolate whether the issue is client-side or server-side.

Frequently Asked Questions

Does Chrome need separate Kerberos settings on Windows?

No. Chrome uses the Windows Internet Options zone settings for integrated authentication. You can also set the AuthServerAllowlist policy for explicit control, but the zone settings are usually sufficient.

Why does Firefox still ask for a password after I set trusted-uris?

The most common reasons are a hostname mismatch (the site is accessed by IP or an alias not in the list) or no valid Kerberos ticket. Run klist and confirm the exact hostname in about:config.

Can I use Kerberos authentication on a Mac with Safari?

Yes, provided the Mac is configured with the correct realm in /etc/krb5.conf and you have a ticket from kinit. Safari does not have a per-site allowlist like Firefox; it relies on the system configuration and the server's challenge.

What is the difference between Kerberos and NTLM in the browser?

Kerberos uses tickets from a KDC and is the preferred protocol in Active Directory environments. NTLM is a challenge-response protocol that does not require a KDC. Browsers prefer Kerberos when both are offered, but fall back to NTLM if Kerberos fails.

Do I need to reboot after changing browser policy?

Usually closing and reopening the browser is enough. For Group Policy changes, run gpupdate /force and then restart the browser. A full reboot is rarely necessary but can help if policy refresh is stubborn.

Why does Kerberos work in Edge but not in Firefox on the same machine?

Edge uses Windows zone settings, while Firefox uses its own network.negotiate-auth.trusted-uris preference. The Firefox list is probably missing the hostname or has a typo. Check both lists separately.