Matt Benjamin [[email protected]] wrote:
> Hi,
> 
> While doing some FSAL testing, I noticed that I couldn't get Ganesha to 
> consistently/exclusively return numeric uid/gid values--I could get them if 
> (idmap and/or getpwnam) failed, and if Allow_Numeric_Owners was set (the 
> default).
> 
> So after a chat w/Frank, I had a plan to make the idmap style explicit.  What 
> Frank and I discussed has a config parameter that can be "idmapd" or 
> "getpwnam" or "numeric,"
> with "idmapd" the default, and Allow_Numeric_Owners behaving as before.
> 
> What I skipped past when Frank and I discussed this, was that the current 
> behavior is actually idmapd falling back to getpwnam, falling back to 
> numeric.  It doesn't seem like you would always want the fallback from idmapd 
> to getpwnam either.  I'm looking for feedback as to:
> 
> 1. is there agreement that either idmapd or getpwnam but not fallback between 
> them is useful?
> 2. is there actual desire for the fallback behavior (which I guess would be 
> the default if so, since it's the current behavior)?

I always wondered the usefulness of getpwnam. If idmap libraries are
present with proper config, local files (getpwnam) should be resolved by
the idmap calls, correct?

So use of getpwnam is really when there is no idmap library or
/etc/nsswitch.conf is messed up, correct?

If nfsidmap is enabled, I expect the library and config to be there and
I don't think there is any need to fallback to getpwnam at all.

If idmap is missing, admin can set your new config to getpwnam. In other
words, I don't see a reason for falling back to getpwnam when idmap
fails.

Regards, Malahal.


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to