[PATCH] Fix Generating a Blank Domain in NTLMSSP Using ntlm_auth
Robert Shearman
rob at codeweavers.com
Fri Mar 2 17:02:04 GMT 2007
Hi,
The background behind this patch is that we're using ntlm_auth with
Wine. Windows allows us to pass in a NULL domain and a username of the
form of "user at domain" and this is converted into an NTLMSSP_AUTH packet
with a NULL domain name and a username of the same form.
Currently, ntlm_auth doesn't allow us to generate a NULL domain name.
The attached patch (against Samba 3.0.25) fixes this.
--
Rob Shearman
-------------- next part --------------
Index: utils/ntlm_auth.c
===================================================================
--- utils/ntlm_auth.c (revision 20957)
+++ utils/ntlm_auth.c (working copy)
@@ -2303,7 +2303,8 @@
}
}
- if (opt_domain == NULL || !*opt_domain) {
+ /* Note: if opt_domain is "" then send no domain */
+ if (opt_domain == NULL) {
opt_domain = get_winbind_domain();
}
More information about the samba-technical
mailing list