sysrc nfsuserd_flags="-domain GLOBAL.LOC" problems

From: Cedric Blancher <cedric.blancher_at_gmail.com>
Date: Fri, 22 Aug 2025 14:23:49 UTC
Good afternoon!

We've found another issue;
sysrc nfsuserd_flags="-domain GLOBAL.LOC" sets the domain to
"GLOBAL.LOC" (cursed M$ default name in training docs)

But FreeBSD 14.3 nfsd sends "global.loc" (lowercase) for Owner,
OwnerGroup and ACLs.

But if the NFSv4 client sends a request (e.g, SETATTR, SETACL) with
something like None@GLOBAL.LOC the FreeBSD rejects it with
NFS4ERR_BADOWNER

IMO the FreeBSD idmapper on the server should never do the conversion
to lowercase, and accept that domain names can come in mixed-case or
all-upper case. or just in the exact case as specified by -domain

Ced
-- 
Cedric Blancher <cedric.blancher@gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur