Some servers are configured to only allow null user mounts for guest access. Allow nul user (anonymous) mounts e.g. mount -t cifs //server/share /mnt -o username=
···11Version 1.4622------------33Support deep tree mounts. Better support OS/2, Win9x (DOS) time stamps.44+Allow null user to be specified on mount ("username="). Do not return55+EINVAL on readdir when filldir fails due to overwritten blocksize66+(fixes FC problem)4758Version 1.4569------------
+6-1
fs/cifs/connect.c
···822822 } else if (strnicmp(data, "nouser_xattr",12) == 0) {823823 vol->no_xattr = 1;824824 } else if (strnicmp(data, "user", 4) == 0) {825825- if (!value || !*value) {825825+ if (!value) {826826 printk(KERN_WARNING827827 "CIFS: invalid or missing username\n");828828 return 1; /* needs_arg; */829829+ } else if(!*value) {830830+ /* null user, ie anonymous, authentication */831831+ vol->nullauth = 1;829832 }830833 if (strnlen(value, 200) < 200) {831834 vol->username = value;···16451642 /* BB fixme parse for domain name here */16461643 cFYI(1, ("Username: %s ", volume_info.username));1647164416451645+ } else if (volume_info.nullauth) {16461646+ cFYI(1,("null user"));16481647 } else {16491648 cifserror("No username specified");16501649 /* In userspace mount helper we can get user name from alternate