1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

"@" is valid in NetBIOS domain names.

Jeremy.
(This used to be commit 5c4857d8e00162fc43a0f2e3a335b441bad743bd)
This commit is contained in:
Jeremy Allison 2002-09-20 19:09:28 +00:00
parent 696fedc7ad
commit e633122fae

View File

@ -734,7 +734,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
/* don't allow for weird usernames or domains */
alpha_strcpy(user, user, ". _-$", sizeof(user));
alpha_strcpy(domain, domain, ". _-", sizeof(domain));
alpha_strcpy(domain, domain, ". _-@", sizeof(domain));
if (strstr(user, "..") || strstr(domain,"..")) {
return ERROR_NT(NT_STATUS_LOGON_FAILURE);
}