s3:libsmb convert user-specified domain to uppercase
authorChristian Ambach <christian.ambach@de.ibm.com>
Fri, 6 May 2011 11:16:26 +0000 (13:16 +0200)
committerChristian Ambach <ambi@samba.org>
Mon, 16 May 2011 09:42:55 +0000 (11:42 +0200)
with client ntlmv2 auth = yes, there is a small difference between
using smbclient -U user\domain and smbclient -U user -W domain
if domain is provided in lowercase

using -W will uppercase the given parameter, while picking the
domain name from -U will not convert it to uppercase and this
leads to failing NTLMv2 authentication

with this patch, there is no difference between
smbclient -U domain\user and smbclient -U user -W domain any more

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Mon May 16 11:42:55 CEST 2011 on sn-devel-104

source3/libsmb/cliconnect.c

index 7f48aee9987253b8a77c803ce8969241dde845a0..828cb2c3792be79297ff202a0e09c7c8b1d43fa2 100644 (file)
@@ -1977,6 +1977,7 @@ NTSTATUS cli_session_setup(struct cli_state *cli,
            (p=strchr_m(user2,*lp_winbind_separator()))) {
                *p = 0;
                user = p+1;
+               strupper_m(user2);
                workgroup = user2;
        }