1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

Toomas Soome's fix for joining a domain the old way.

Jeremy.
This commit is contained in:
Jeremy Allison -
parent 9bfc480bda
commit 8db233c8b5

View File

@ -837,7 +837,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
}
/* don't allow for weird 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);