A spike proves .NET NegotiateAuthentication can accept a Kerberos context from a keytab and compute and verify GSS MICs, with a reusable KDC test container #79
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
lantea-one/ninlil#79
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
GSS-TSIG puts a GSS_GetMIC token where TSIG puts its HMAC (RFC 3645 §3.2 and §4). The server needs:
NegotiateAuthenticationin server mode with Kerberos.KRB5_KTNAME).ComputeIntegrityCheck/VerifyIntegrityCheckwere added in .NET 9; the spike confirms or refutes this.What changes
src/dotnet/tests/Ninlil.Dns.Data.EngineHosts/KerberosKdcHost.cs: a container built from a small Dockerfile kept in the test tree (Debian with MIT krb5-kdc). It creates realmNINLIL.TEST, aDNS/<host>service principal with its keytab, and a user principal.src/dotnet/src/Ninlil.Dns.Server.Tsig/Gss/:IGssSecurityContextwithStep(byte[] token, out byte[] outToken),IsComplete,RemotePrincipal,byte[] GetMic(ReadOnlySpan<byte>)andbool VerifyMic(ReadOnlySpan<byte>, ReadOnlySpan<byte>).NegotiateAuthentication.IGssSecurityContextFactory.Acceptance
gss_get_mic/gss_verify_mic), and #80 waits for an owner decision.Source
RFC 3645 §3.2 and §4; owner scope (".NET NegotiateAuthentication with a Kerberos keytab").