+nfs-utils (1:1.0.8-9) unstable; urgency=high
+
+ * svcgssd_proc.c: Temporary patch to do default mapping if we get an
+ error while trying to map a gss principal to the appropriate uid/gid.
+ This currently returns hardcoded values. Closes: #376258.
+
+ -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 01 Jul 2006 22:30:11 +1000
+
nfs-utils (1:1.0.8-8) unstable; urgency=low
* Include yet more ucf md5sums for /etc/default/nfs-common and
if (res < 0) {
printerr(0, "WARNING: get_ids: unable to map "
"name '%s' to a uid\n", sname);
+ /*
+ * -ENOENT means there was no mapping, any other error
+ * value means there was an error trying to do the
+ * mapping.
+ */
+ if (res == -ENOENT) {
+ cred->cr_uid = -2; /* XXX */
+ cred->cr_gid = -2; /* XXX */
+ cred->cr_groups[0] = -2;/* XXX */
+ cred->cr_ngroups = 1;
+ res = 0;
+ goto out_free;
+ }
+ printerr(0, "WARNING: get_ids: failed to map name '%s' "
+ "to uid/gid: %s\n", sname, strerror(-res));
goto out_free;
}
cred->cr_uid = uid;