diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-28 05:17:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:24 -0500 |
commit | 2bb739396c75b0d1c06cf124038ccc81ecb3fb22 (patch) | |
tree | be31d2de0267c0b15f1e8c22fb57dd22e7db37fa /source4/auth | |
parent | efa01066275f752f02ed801fdb5982c9499b43f3 (diff) | |
download | samba-2bb739396c75b0d1c06cf124038ccc81ecb3fb22.tar.gz samba-2bb739396c75b0d1c06cf124038ccc81ecb3fb22.tar.bz2 samba-2bb739396c75b0d1c06cf124038ccc81ecb3fb22.zip |
r11358: Ensure domains are always upper-case as well. Helps NTLMv2.
Andrew Bartlett
(This used to be commit 82527491b2212d34b676be1e26cc875ae2828e42)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/credentials/credentials.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c index 5fe6daddbe..c07f0f6c6a 100644 --- a/source4/auth/credentials/credentials.c +++ b/source4/auth/credentials/credentials.c @@ -301,7 +301,10 @@ BOOL cli_credentials_set_domain(struct cli_credentials *cred, enum credentials_obtained obtained) { if (obtained >= cred->domain_obtained) { - cred->domain = talloc_strdup(cred, val); + /* it is important that the domain be in upper case, + * particularly for the sensitive NTLMv2 + * calculations */ + cred->domain = strupper_talloc(cred, val); cred->domain_obtained = obtained; return True; } |