]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/gssd/svcgssd.c
Imported Upstream version 1.2.4
[nfs-utils.git] / utils / gssd / svcgssd.c
index 9b463f3723ab066a228e62a24cd45313798c6440..1afff9e5a4935c3a9be76b4ccaf2d02f3463e74c 100644 (file)
@@ -262,11 +262,19 @@ main(int argc, char *argv[])
                                "/etc/krb5.keytab?\n");
                        exit(1);
                }
+       } else {
+               status = gssd_acquire_cred(NULL,
+                       (const gss_OID)GSS_C_NT_HOSTBASED_SERVICE);
+               if (status == FALSE) {
+                       printerr(0, "unable to obtain nameless credentials\n");
+                       exit(1);
+               }
        }
 
        if (!fg)
                release_parent();
 
+       nfs4_init_name_mapping(NULL); /* XXX: should only do this once */
        gssd_run();
        printerr(0, "gssd_run returned!\n");
        abort();