1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

Don't forget to convert into UNIX character set before calling

winbindd.
Jeremy.
(This used to be commit 00cd72c385)
This commit is contained in:
Jeremy Allison 2000-11-21 22:37:03 +00:00
parent 14067f9c9c
commit 7254a66e00

View File

@ -863,7 +863,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
that */
if (!getpwnam(user)) {
pstring user2;
slprintf(user2,sizeof(user2),"%s%s%s", domain, lp_winbind_separator(), user);
slprintf(user2,sizeof(user2),"%s%s%s", dos_to_unix(domain,False), lp_winbind_separator(), user);
if (getpwnam(user2)) {
DEBUG(3,("Using unix username %s\n", user2));
pstrcpy(user, user2);