summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/credentials/credentials.c5
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;
}