NFSIDMAP is on in the CentOS Storage SIG builds. E.g. the build log for the nfs-ganesha-2.8.2 package is at https://cbs.centos.org/kojifiles/work/tasks/1567/891567/build.log and the nfs-ganesha-2.7.6 package is at https://cbs.centos.org/kojifiles/work/tasks/4698/884698/build.log

(In general I try to build the packages with the same sets of options enabled across all the platforms, e.g. Fedora, CentOS Storage SIG, Ubuntu Launchpad, etc. And at least for the systems that use RPMs the .spec file is largely or entirely the same as the in-tree .spec file.)


On Fri, Aug 16, 2019 at 9:28 AM Daniel Gryniewicz <dang@redhat.com> wrote:
I'm not an expert on idmap, but a few quick notes that might help.

1. The log flag is IDMAPPER

2. You are running nfsv4, right?  (just checking...)

3. The domains on the client and server have to match exactly, even to
the case.

4. NFSIDMAP is on by default, so it's likely to be on for the CentOS
SIG, but Kaleb would know for sure

Daniel

On 8/15/19 8:21 PM, Alexander Bauer wrote:
> Hello all,
>
> I'm attempting to configure my NFS Ganesha installation with nfsidmap,
> using local usernames. This is a home environment using trusted hosts
> and no central authentication yet, so I'm finding a lot of documentation
> on NFS Ganesha in enterprise environments, or in environments which
> accommodate self-compiling it with different configure flags.
>
> Right now, I have nfsidmap configured on my Ganesha server and on my NFS
> client, with matching domains, and users with matching names, but
> different UIDs on each. I have set the option nfs4_disable_idmapping=N
> (which disables idmapping when sec=sys) for nfsd and nfs on the server
> and client respectively. But files created from the client maintain the
> client user's UID when inspected on CephFS, rather than being translated
> to the server user's UID.
>
> I can't seem to figure out what configure flags the version in the
> CentOS SIG repo has, nor what the requirements are to allow Ganesha to
> use nfsidmap, nor what logging to enable to debug the process. Is there
> current documentation or a guide on interactions between the two, so
> that I can narrow down my issue?
>
> Thanks in advance, and warm wishes,
> Sasha
>
> _______________________________________________
> Support mailing list -- support@lists.nfs-ganesha.org
> To unsubscribe send an email to support-leave@lists.nfs-ganesha.org
>
_______________________________________________
Support mailing list -- support@lists.nfs-ganesha.org
To unsubscribe send an email to support-leave@lists.nfs-ganesha.org