summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 8c43aea5fb0..4eaffcede63 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -867,7 +867,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
}
/* don't allow strange characters in usernames or domains */
- alpha_strcpy(user, user, ". _-", sizeof(user));
+ alpha_strcpy(user, user, ". _-$", sizeof(user));
alpha_strcpy(domain, domain, ". _-", sizeof(domain));
if (strstr(user, "..") || strstr(domain,"..")) {
return bad_password_error(inbuf, outbuf);