1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3-smbd Be consistent with %U subs on guest logins

The NTLMSSP code always specified "" as the username, and this makes
guest logins via the old-style session setup do the same.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2011-07-27 16:06:31 +10:00
parent 41ee4e8bcc
commit b0dd2cde86

View File

@ -1550,7 +1550,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
}
fstrcpy(sub_user, user);
} else {
fstrcpy(sub_user, lp_guestaccount());
fstrcpy(sub_user, "");
}
sub_set_smb_name(sub_user);