svn commit: samba r11358 - in
branches/SAMBA_4_0/source/auth/credentials: .
abartlet at samba.org
abartlet at samba.org
Fri Oct 28 05:17:19 GMT 2005
Author: abartlet
Date: 2005-10-28 05:17:19 +0000 (Fri, 28 Oct 2005)
New Revision: 11358
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11358
Log:
Ensure domains are always upper-case as well. Helps NTLMv2.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/auth/credentials/credentials.c
Changeset:
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials.c
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials.c 2005-10-28 05:16:25 UTC (rev 11357)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials.c 2005-10-28 05:17:19 UTC (rev 11358)
@@ -301,7 +301,10 @@
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;
}
More information about the samba-cvs
mailing list