summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2011-05-06 13:16:26 +0200
committerChristian Ambach <ambi@samba.org>2011-05-16 11:42:55 +0200
commit20179bb5508cddca917732b6a459afa1d7136789 (patch)
tree75d056fc8a35e7304f9282df87c083b81796a918 /source3/libsmb
parent068f847fe2682ab6e356db7b9ae6151f82605f0e (diff)
downloadsamba-20179bb5508cddca917732b6a459afa1d7136789.tar.gz
samba-20179bb5508cddca917732b6a459afa1d7136789.tar.bz2
samba-20179bb5508cddca917732b6a459afa1d7136789.zip
s3:libsmb convert user-specified domain to uppercase
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
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 7f48aee998..828cb2c379 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -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;
}