r21663: Fix from the Wine guys: Robert Shearman <rob@codeweavers.com>
authorJeremy Allison <jra@samba.org>
Fri, 2 Mar 2007 20:15:11 +0000 (20:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:22 +0000 (12:18 -0500)
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.

source/utils/ntlm_auth.c

index 1e7b361e860ca45faadb8171ecebf31e691b9139..1f0a915574df018e49314390601285016721f192 100644 (file)
@@ -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();
        }