Yea, unfortunately I think you'll find that this is the
catch-all when you dig into the Heimdal library. (All the
gssd does is take the upcalled arguments and do the call
against the library. This is the reply the gss_acquire_cred()
library call made. Why isn't it working? I have no idea.
It is strange that "kinit -k ..." works, but this does not.
One thing to check is to see if the keytab entry has multiple
encryption types in it. If it does, you might want to re-create
the keytab entry with only the default encryption type (as set
in the NFS server's /etc/krb.conf). I have seen problems when
the keytab entry has multiple encryption types, but I'm not sure
what was broken.
Another simple thing to check is "# hostname" and make sure it has
"
leonard.fs.cit-ec.net" and not "leonard", since it will use
nfs@<hostname> as the host-based name and the <hostname> must
be the fully qualified domain name.
> Maybe you could truss or similar to find out what name it's trying to
> acquire credentials for?
>
It should be
n...@leonard.fs.cit-ec.net (or nfs/leonard.fs.cit-ec.net@<default-realm>
if written in the Kerberos mechanism's way).
However, it can't hurt to check and if it isn't the above, that
would explain why it isn't working.
> -Ben
>
> > No log output when trying to mount NFS share on the Linux machine.
> >
> >
> > I tried to mount it on the server itself. I'm able
> > to mount, but I can't access any files...
> >
> > [root@leonard ~]# mount -o sec=krb5
> > leonard.fs.cit-ec.net:/export/homes/sfrey /mnt
> > [root@leonard ~]# su - sfrey
> > [sfrey@leonard ~]$ kinit
> >
sf...@TECHFAK.UNI-BIELEFELD.DE's Password:
> > [sfrey@leonard ~]$ ls -lad /mnt
> > ls: /mnt: Permission denied
Yea, the FreeBSD client (I didn't choose to code it this way) falls
back to AUTH_SYS when Kerberos doesn't work. I suspect if you looked
at a packet trace in wireshark, you'd see it trying AUTH_SYS for this.
rick