summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-01-15 19:28:23 +0100
committerKai Blin <kai@samba.org>2008-01-15 19:29:08 +0100
commitce9e918c95a81470056eef74878aeb10aadbaacf (patch)
treee9a6e8f5a5da1c9e136d9f4e79d04c74a9c1c258
parentee8cf0ce40820b3e1ec025339f2b25c0001fda13 (diff)
downloadsamba-ce9e918c95a81470056eef74878aeb10aadbaacf.tar.gz
samba-ce9e918c95a81470056eef74878aeb10aadbaacf.tar.bz2
samba-ce9e918c95a81470056eef74878aeb10aadbaacf.zip
libsmb: Do not upper-case target name on NTLMv2 hash generation
This makes our NTLMv2 hash generation compatible to the Davenport example and fixes a bug when ntlm_auth is called with a non-upper-case --domain parameter and client ntlmv2 auth = yes Jerry, please consider for 3.2.0 (This used to be commit ecbe08897c9cc47790f3d4f5680d25202bc0f6c3)
-rw-r--r--source3/libsmb/smbencrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index d7f6f604f7..c547a4a003 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/libsmb/smbencrypt.c
@@ -443,7 +443,7 @@ bool SMBNTLMv2encrypt_hash(const char *user, const char *domain, const uchar nt_
the username and domain.
This prevents username swapping during the auth exchange
*/
- if (!ntv2_owf_gen(nt_hash, user, domain, True, ntlm_v2_hash)) {
+ if (!ntv2_owf_gen(nt_hash, user, domain, False, ntlm_v2_hash)) {
return False;
}