alpha_strcpy and usernames

Ihar Viarheichyk i.viarheichyk at sam-solutions.net
Tue Oct 30 06:42:03 GMT 2001


Hello.

smbd/reply.c: reply_sesssetup_and_X has following code:

/* don't allow strange characters in usernames or domains */
alpha_strcpy(user, user, ". _-$", sizeof(user));
alpha_strcpy(domain, domain, ". _-", sizeof(domain));

This can cause problems with multibyte characters in user or domain
names, and with non-ascii characters at all if codepage of samba process
locale differ from 'character set' parameter.

-- 
Igor Vergeichik
ICQ 47298730





More information about the samba-technical mailing list