Name to ID mapping problem

Kevin Coffman kwc at umich.edu
Wed Jun 18 23:32:59 EDT 2008


I think this sounds like a known (and fixed) problem?  You probably
don't have the version of libnfsidmap with the fix.  Check the
archives and/or get libnfsidmap-20 from
http://www.citi.umich.edu/projects/nfsv4/linux/

On Wed, Jun 18, 2008 at 7:52 PM, Aleksandr Levchuk <alevchuk at gmail.com> wrote:
> Ok. I found the problem. :)
>
> Once again, I'm not using LDAP - just plain old /etc/passwd and /etc/group.
>
> rpc.idmapd is not reading the /etc/group file properly. If one of the
> lines in the group file is too long, then NFSv4 will show "nogroup" on
> the clients.
>
> Here is an example that triggers the malfunction:
> {{{
> testgroup3:x:1016:a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,r,s,t,v,w,x,y,z,aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn,oo,pp,rr,ss,tt,vv,ww,xx,yy,zz,aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,jjj,kkk,lll,mmm,nnn,ooo,ppp,rrr,sss,ttt,vvv,www,xxx,yyy,zzz,aaa,bbb,ccc,ddd,eee,fff,ggg,hhh,iii,jjj,kkk,lll,mmm,nnn,ooo,ppp,rrrrrr
> }}}
>
> testgroup3 and all other lines below this one will not be recognized by NFSv4.
> Removing just one character from the end of this line will fix the problem.
>
> One factor is defiantly the size to the line (~300 or ~500
> characters), but there must be other factors. I feel that there are
> several bugs in action.
> The number of the group members does not seem to be a factor problem.
>
>
> Here is a script that helped us test this issue:
> {{{
> #!/bin/sh
> umount /data/
> /etc/init.d/nfs-common stop
> /etc/init.d/nfs-kernel-server stop
> /etc/init.d/nfs-common start
> /etc/init.d/nfs-kernel-server start
> mount -t nfs4 localhost:/home /data/
> }}
>
> On my system (Debian 4.0) rpc.idmapd is part of the nfs-common
> 1:1.0.10-6+etch.1 package.
>
>
> Alex
>
> --
> --------------------------------------------
> Aleksandr Levchuk
> University of California, Riverside
> 1-951-368-0004
> --------------------------------------------
> _______________________________________________
> NFSv4 mailing list
> NFSv4 at linux-nfs.org
> http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
>
>


More information about the NFSv4 mailing list