git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696fedc
)
"@" is valid in NetBIOS domain names.
author
Jeremy Allison
<jra@samba.org>
Fri, 20 Sep 2002 19:09:28 +0000
(19:09 +0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 20 Sep 2002 19:09:28 +0000
(19:09 +0000)
Jeremy.
(This used to be commit
5c4857d8e00162fc43a0f2e3a335b441bad743bd
)
source3/smbd/sesssetup.c
patch
|
blob
|
history
diff --git
a/source3/smbd/sesssetup.c
b/source3/smbd/sesssetup.c
index 3dc9fe9208c0411cbc615324b333e09999375d00..09288ad44dd8d9510700bb8f2bd8603a59d1d95a 100644
(file)
--- 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);
}