]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Toomas Soome's fix for joining a domain the old way.
authorJeremy Allison <jra@samba.org>
Wed, 11 Jul 2001 18:52:43 +0000 (18:52 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 11 Jul 2001 18:52:43 +0000 (18:52 +0000)
Jeremy.

source/smbd/reply.c

index 5abd737c37c02476746c9ce0831d6e4e0c228339..20f5e0fbe2fc521d059dc982f14e6043848ce09b 100644 (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);