summaryrefslogtreecommitdiff
path: root/source3/smbd
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
commitd386b71d32d2a7dff8442b6df0654d0b67d29044 (patch)
tree47005fea320dcd681355545172285f975b97f3ae /source3/smbd
parent31b131b0e9208336b99eea6b301d4a7ea93e6b66 (diff)
downloadsamba-d386b71d32d2a7dff8442b6df0654d0b67d29044.tar.gz
samba-d386b71d32d2a7dff8442b6df0654d0b67d29044.tar.bz2
samba-d386b71d32d2a7dff8442b6df0654d0b67d29044.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 (This used to be commit 0e6babc306f60e88fc28705a8d4ad112bafe92cb)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 785f8d6821..b9af720008 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/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",