Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-6387: Will Direct Control work with NFS-Ganesha?

Centrify DirectControl ,  

30 September,16 at 12:29 AM

Applies to: Centrify Direct Control on All versions

Question:
Will Centrify Direct Control work with NFS-Ganesha?

Answer:
Yes, Centrify Direct control can interact with NFS-Ganesha.

Requirements:
Ganesha-NFS just works with Centrify DC as long as "
Method = nsswitch" (default) is left in the /etc/idmapd.conf file.
With this set it will call NSS for resolution. When CDC is installed and joined, CDC will modify nsswitch.conf so that it gets called first, 
and it knows how to translate a kerberos principal name to normal passwd entry.

Additional information:
The keypoint is in nfs-ganesha-2.1.0-0.1.1-Source/idmapper/idmapper.c, function principal2uid(), 
which calls nfs4_gss_princ_to_ids() first.
This goes to libnfsidmap, which talks to rpc.idmapd.
Here /etc/idmapd.conf controls the resolution order.
When we leave "
Method = nsswitch" (default), then it will call NSS to try to resolve this.
Here when CDC is installed and joined, CDC will modify nsswitch.conf so that it gets called first, 
and it knows how to translate a kerberos principal name to normal passwd entry.

Notes on using nfsv4 with sec=krb5.
(1) /etc/sysconfig/nfs must have '
SECURE_NFS="yes"' - so that rpc.svcgssd et al will start.
(2) the computer object (server and client) must have (to illustrate):
userPrincipalName: nfs/leo-cent67-64a.voyager.test@VOYAGER.TEST
servicePrincipalName: nfs/leo-cent67-64a.voyager.test
userPrincipalName is used for authentication, servicePrincipalName is used for service ticket.
(3) /etc/idmapd.conf must have domain specified.



 

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.