Score:0

nfs4 idmapping with sss

cn flag

We have a Dell enterprise file server that implements NFS4 ACLs. I can mount a NFS4 directory and nfs4_setfacl and nfs4_getfacl work correctly. Unfortunately, I am unable to get an ls listing to work correctly. I've enabled id mapping:

echo 0 > /sys/module/nfs/parameters/nfs4_disable_idmapping

and configured /etc/idmapd

[General]
Verbosity = 10
Pipefs-Directory = /run/rpc_pipefs
# set your own domain here, if it differs from FQDN minus hostname
Domain = example.com
[Translation]
Method = sss
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup

/etc/request-key.d/id_resolver.conf is configured

When I do a ls -l on a mounted file, the request-key is using "localhost" instead of "example.com"

nfsidmap -l

3 .id_resolver keys found:
uid:root@localhost
uid:gweatherby@localhost
gid:wheel@localhost

Has anyone figured out how to make this work?


Figured it out:

I was using the domain name in the nfs4_setfacl command. e.g.

nfs4_setfacl -a A::[email protected] :r filename

just using the account name works as desired

nfs4_setfacl -a A::gweatherby :r filename

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.