From 9f8e8e1aac9262da22036e7aacca26e164450889 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 2 Mar 2007 20:15:11 +0000 Subject: 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. (This used to be commit 32b040fe05707d5ce6322cb41d36cfdd2c3b31fc) --- source3/utils/ntlm_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/utils/ntlm_auth.c') diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 1e7b361e86..1f0a915574 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/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(); } -- cgit