summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-25 12:09:56 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-25 12:09:56 +0000
commit0e6babc306f60e88fc28705a8d4ad112bafe92cb (patch)
treef0b921528cfe3744a488efebce1e99f29ba3b13b
parenta198940ea6f7b7f3cba38c5a9f695e0731204583 (diff)
downloadsamba-0e6babc306f60e88fc28705a8d4ad112bafe92cb.tar.gz
samba-0e6babc306f60e88fc28705a8d4ad112bafe92cb.tar.xz
samba-0e6babc306f60e88fc28705a8d4ad112bafe92cb.zip
Metze claims that without this his win2k server gets horribly confused looking
for all sorts of AD things in lp_realm(). We need to get some non-Win2k NTLMSSP and chase this up a bit, but this will do for now. (Hmm, this might affect NTLMv2 as well) Andrew Bartlett
-rw-r--r--source/smbd/sesssetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c
index 785f8d68211..b9af7200089 100644
--- a/source/smbd/sesssetup.c
+++ b/source/smbd/sesssetup.c
@@ -322,12 +322,12 @@ static int reply_spnego_negotiate(connection_struct *conn,
"U",
lp_workgroup());
- fstrcpy(dnsdomname, lp_realm());
+ fstrcpy(dnsdomname, (SEC_ADS == lp_security())?lp_realm():"");
strlower(dnsdomname);
fstrcpy(dnsname, global_myname);
fstrcat(dnsname, ".");
- fstrcat(dnsname, lp_realm());
+ fstrcat(dnsname, dnsdomname);
strlower(dnsname);
msrpc_gen(&struct_blob, "aaaaa",