Issue with mixed short and fully qualified names with NFS4+KRB5 and libnfsidmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a proposal to improve libnfsidmap to support kerberized NFS4 server and client environments with a mixed setup using short and fully qualified names.

My situation is the following: I want to use a file server that is set up to use fully qualified names (sssd.conf: use_fully_qualified_names = true). I have no say in the configuration of said server. On the clients I want to use short names since there is only one realm anyway and the lengthy johndoe@xxxxxxxxxxx user and group names are too cumbersome.

On all Linux distros I have tried this works with the exception of the chgrp (and chown) command. Changing the group always results in an 'Operation not permitted' error.

I have tracked down the source of the problem to nsswitch.so in libnfsidmap. In nss.c the write_name() function creates the user@domain string that is sent over the wire. For short names it should actually send user@realm@domain, at least if the server is configured to use fully qualified names. I have patched the function to do this and verified that this actually fixes my problem with chgrp.

Has this been noticed or discussed before? Would a patch be welcome and have a chance to be integrated in the upstream libnfsidmap that would then trickle down to the various distros?

Stefan




--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux