Also sending the patches here.
Easy way to test:
1. Edit /etc/nfs.conf:
[svcgssd] <email address hidden>
2. Try to run /usr/sbin/rpc.svcgssd -f (.deb version) This will fail even if you set a correct principal name that's present in /etc/krb5.keytab
3. Unpack nfs-utils sources and apply patch 02-nfs-utils-log-principal.patch. (This only adds an output of the principal set in the config)
Then run: LD_LIBRARY_PATH=./support/nfsidmap/.libs ./utils/gssd/.libs/svcgssd -f
The output shows some random principal string
4. Apply patch 01-nfs-utils-fix-conf.patch (patch will be in next comment, only one patch per comment) and compile again
Run above test again: LD_LIBRARY_PATH=./support/nfsidmap/.libs ./utils/gssd/.libs/svcgssd -f
This time the principal set by you should be shown.
As a side note: Patch #3 is only about adding some undocumented options.
Also sending the patches here.
Easy way to test:
1. Edit /etc/nfs.conf:
[svcgssd]
<email address hidden>
2. Try to run sbin/rpc. svcgssd -f (.deb version)
/usr/
This will fail even if you set a correct principal name
that's present in /etc/krb5.keytab
3. Unpack nfs-utils sources and apply patch 02-nfs- utils-log- principal. patch.
(This only adds an output of the principal set in the config)
Then run: PATH=./ support/ nfsidmap/ .libs ./utils/ gssd/.libs/ svcgssd -f
LD_LIBRARY_
The output shows some random principal string
4. Apply patch 01-nfs- utils-fix- conf.patch (patch will be in next comment, only one patch per comment) and compile again
Run above test again: PATH=./ support/ nfsidmap/ .libs ./utils/ gssd/.libs/ svcgssd -f
LD_LIBRARY_
This time the principal set by you should be shown.
As a side note: Patch #3 is only about adding some undocumented options.