Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions changelog.d/4846-kerberos-realm-bound-to-entry.security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- **Windows SSO now resolves a ticket only to the account it proves.** The ticket's realm was
checked against `[auth].kerberos_realm` and dropped, and the directory was then asked the
password sign-in's wider question. So in the shipped code, under a forest-wide base or the global
catalog, `alice@CORP.EXAMPLE` would have signed in as a child domain's `alice`; one entry holding
only the UPN `alice@<ad_domain>` would have answered a ticket for `alice`; and a machine's ticket
(`WS01$`) was looked up like a person's. The Kerberos lookup now asks for a person account whose
own `sAMAccountName` is the ticket's name and whose DN's whole trailing run of `DC=` RDNs equals
the realm's domain, and looks up no name ending in `$`. A realm whose users are not under its own
`DC=` RDNs, as on a directory other than Active Directory, now finds no account, and neither does
a ticket naming the account by an implicit UPN, which a client that does not ask for name
canonicalization may present. The password sign-in is unchanged. See
[SECURITY.md](../docs/SECURITY.md#local-vs-active-directory). (`BACKLOG #4846`)
14 changes: 14 additions & 0 deletions docs/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5431,6 +5431,20 @@ Both kinds of user share one identity model (`users.auth_provider` is `local` or
this acceptor against a real domain. If it does, every Windows SSO sign-in on a Windows host fails
closed until a lab run decides how to read it. That is no looser than before, when its directory
lookup missed.
**The realm is bound to the directory entry too (BACKLOG #4846).** The Kerberos lookup asks only
what a ticket proves: a person account, `objectCategory=person` and `objectClass=user`, whose own
`sAMAccountName` is the ticket's account name, and whose DN's whole trailing run of `DC=` RDNs
equals the realm's domain, compared up to ASCII case as the ticket's realm is. So under a forest-wide base or the
global catalog, `alice@CORP.EXAMPLE` never resolves to a child domain's `alice`; an entry holding
the name only as its UPN answers no ticket; and a machine's ticket (`WS01$`) finds nothing. A
name ending in `$` is never looked up, which also covers an interdomain trust account, a
person-category `user`. The binding assumes Active Directory's rule that a domain's realm is its
DNS name and its naming context that name's `DC=` RDNs. An entry whose trailing `DC=` run is
not exactly the realm's labels, one per RDN, matches nothing, and neither does one whose DN the
engine's parser refuses; the sign-in is then refused as `not_in_directory`. So does a ticket naming the account by an implicit UPN rather than its
`sAMAccountName`, which a client that does not ask the KDC to canonicalize the name may present;
that is unverified against a real KDC. The password sign-in and the other name-keyed lookups,
`create_directory_account`'s among them, are unchanged.

### AD-group → role mapping

Expand Down
Loading
Loading