From: Jeremy Allison Date: Fri, 2 Mar 2007 20:15:11 +0000 (+0000) Subject: r21663: Fix from the Wine guys: Robert Shearman X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~1008 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32b040fe05707d5ce6322cb41d36cfdd2c3b31fc;p=thirdparty%2Fsamba.git r21663: Fix from the Wine guys: Robert Shearman 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@domain" and this is converted into an NTLMSSP_AUTH packet with a NULL domain name and a username of the same form. Jeremy. --- diff --git a/source/utils/ntlm_auth.c b/source/utils/ntlm_auth.c index 1e7b361e860..1f0a915574d 100644 --- a/source/utils/ntlm_auth.c +++ b/source/utils/ntlm_auth.c @@ -2303,7 +2303,8 @@ enum { } } - if (opt_domain == NULL || !*opt_domain) { + /* Note: if opt_domain is "" then send no domain */ + if (opt_domain == NULL) { opt_domain = get_winbind_domain(); }