summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-09-20 19:09:28 +0000
committerJeremy Allison <jra@samba.org>2002-09-20 19:09:28 +0000
commite633122fae47867f803422e75265864181839a96 (patch)
treeeb96fe46cedfb6056c4c04af74a880cd86e3675d
parent696fedc7ad26222c94d0ecfda4aa3fa5be2377ca (diff)
downloadsamba-e633122fae47867f803422e75265864181839a96.tar.gz
samba-e633122fae47867f803422e75265864181839a96.tar.bz2
samba-e633122fae47867f803422e75265864181839a96.zip
"@" is valid in NetBIOS domain names.
Jeremy. (This used to be commit 5c4857d8e00162fc43a0f2e3a335b441bad743bd)
-rw-r--r--source3/smbd/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 3dc9fe9208..09288ad44d 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -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);
}