We have ganesha configured to not do any userid lookups for v4, by doing
the following:
1. Using "-USE_NFSIDMAP=OFF" compile argument.
2. UseGetpwnam set to false and allow_numeric_owners to true in the nfsv4
configuration
This eliminated the user lookups for the most part, but we occasionally
noticed that when doing a chown to a uid that the client didn't know, that
was getting passed to ganesha as a uid and ganesha was then
interpreting this as a user name and trying to do a name to id lookup
via name2id method in /idmapper/idmapper.c which does a getpwam call that
is not checked for the configuration options like other similar calls. Is
this a bug that it is doing a getpwnam_r even though UseGetpwnam is set to
false? Additionally, why does ganesha ever need to lookup users by name?
I'm surprised that it would ever get user names from a client and wouldn't
need to do a name to id lookup. The chown is passing an id in this case. We
are using ganesha 2.5.5.