Aller au contenu

Kerberos desktop SSO

People signed in to a domain-joined Windows PC can sign in to OkYouIn with their Windows (Kerberos) ticket instead of typing a password. A Sign in with Windows button appears on the OkYouIn console’s sign-in page and on the single sign-on page that OpenID Connect and SAML applications use. The password form stays available.

  • Where it works: the OkYouIn console and the SSO sign-in page (OIDC and SAML applications). For the SSO page, the Kerberos address must be the server’s public URL (Settings ▸ General).
  • Where it does not apply: RADIUS, the Verify API and the Windows logon agent — those never show a browser sign-in page.
  • Directory: on-premises Active Directory only. The user must be synchronized to OkYouIn from that directory.

The settings are part of the Active Directory configuration: Settings ▸ LDAP, open the Active Directory configuration, tab Kerberos SSO. (Adding the directory itself is covered under Directories.)

  1. Address. Enter the Address of OkYouIn for this domain — an https:// address with a fully qualified host name, e.g. https://mfa.corp.example.com. Leave it at the public URL if the SSO page should offer the button. Check tests from the OkYouIn server whether the name resolves. Save.

  2. Service account and keytab. OkYouIn never writes to Active Directory: a domain administrator creates a service user account, maps the service principal HTTP/<host> to it and writes a keytab with ktpass. The tab shows both commands with your values; they look like this (PowerShell on a domain controller or a PC with the AD tools):

    Terminal window
    New-ADUser -Name 'svc-mfa' -SamAccountName 'svc-mfa' -PasswordNeverExpires $true -Enabled $true -AccountPassword (Read-Host -AsSecureString 'Password')
    ktpass /princ HTTP/mfa.corp.example.com@CORP.EXAMPLE.COM /mapuser CORP\svc-mfa /crypto All /ptype KRB5_NT_PRINCIPAL /pass * /out okyouin.keytab

    Use a user account, not a computer account, and keep Password never expires: once the account’s password changes, the keytab no longer matches and people fall back to the password form.

  3. Upload keytab. OkYouIn keeps only the entries of its own principal (the two newest key versions) and stores the keytab encrypted. Replace keytab after a password change.

  4. Outside OkYouIn. The tab lists what to set with your exact values:

    WhereWhat
    DNSAn A record for the host pointing to OkYouIn — not a CNAME.
    Windows (GPO “Site to Zone Assignment List”)The address in the Local intranet zone (value 1).
    Chrome and Edge (GPO)AuthServerAllowlist = the host.
    Firefoxnetwork.negotiate-auth.trusted-uris = the address.

    Without a policy, a short name such as https://mfa/ is in the Local intranet zone by itself — it needs an A record and the name in OkYouIn’s TLS certificate; the ticket is still for the full host name.

  5. Check. Check walks through the address, the directory, the clock, the domain controllers, the object holding the service principal, the keytab and a real ticket, and reports “Everything works”, “Works, with warnings”, or what does not work yet. Check from the browser — open it on a domain PC signed in to Windows — shows what that browser actually sends (a Kerberos ticket, NTLM or nothing) and why. Copy the link for a user gives the same check to someone else.

  6. Turn on Sign-in with a Windows ticket. Enabling needs the https address with a full host name and a keytab; turning it off is always possible.

A failed Windows sign-in falls back to the password form; Logging ▸ SSO sign-in log records why, with the sign-in method shown as “Windows ticket”:

ReasonUsual fix
The browser sent no ticketThe address is not in the Local intranet zone / allowlist, or Firefox is not configured.
The browser sent NTLM, not a Kerberos ticketThe host name has no service principal, DNS points elsewhere (or is a CNAME), or the PC is not in the domain.
A ticket of another domainThe user signed in to Windows in a domain this configuration does not serve.
The keytab does not match the ticketThe service account’s password changed — write and upload a new keytab.
This server’s clock is offFix time synchronization on the OkYouIn server.
The account is not synchronized to OkYouInThe user exists in AD but not (yet) in OkYouIn — check the directory sync.

When a ticket is refused for a reason on OkYouIn’s side — the keytab does not match, or the server’s clock is off — OkYouIn raises an alert for that configuration, so a stale keytab does not go unnoticed. It resolves itself with the next accepted ticket.