nfsv4 fails with kerberos

Martin Laabs mailinglists at martinlaabs.de
Sat Sep 7 10:19:21 UTC 2013


Hi,

I set up a nfsv4 server with kerberos but when starting the nfs server on
the arm (RBI-B) board I get the following error message and the first
(managing part) of the nfs exits:

"nfsd: can't register svc name"

This error message is produced by the following code in
/usr/src/sys/fs/nfsserver/nfs_nfsdkrpc.c:


==================:<=======================
/* An empty string implies AUTH_SYS only. */
if (principal[0] != '\0') {
 ret2 = rpc_gss_set_svc_name_call(principal,
   "kerberosv5", GSS_C_INDEFINITE, NFS_PROG, NFS_VER2);
 ret3 = rpc_gss_set_svc_name_call(principal,
    "kerberosv5", GSS_C_INDEFINITE, NFS_PROG, NFS_VER3);
 ret4 = rpc_gss_set_svc_name_call(principal,
    "kerberosv5", GSS_C_INDEFINITE, NFS_PROG, NFS_VER4);

if (!ret2 || !ret3 || !ret4)
  printf("nfsd: can't register svc name\n");
==================:<=======================

So something went wrong with the principals. Is there a way to get more
information or more verbose debugging output from the nfs-server part of
the kernel?

Thank you,
 Martin Laabs



More information about the freebsd-net mailing list