summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-12-28 08:20:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:53 -0500
commitc8531ef9c8fee759286d77c5c0ff03a6f74c2be6 (patch)
treeb1432176155429df269e8add6e556efc2cb42529 /source4
parentd34e1e598d34a01b01df362ecfef0e4918564b38 (diff)
downloadsamba-c8531ef9c8fee759286d77c5c0ff03a6f74c2be6.tar.gz
samba-c8531ef9c8fee759286d77c5c0ff03a6f74c2be6.tar.bz2
samba-c8531ef9c8fee759286d77c5c0ff03a6f74c2be6.zip
r12537: finally found the difference between us and w2k3 that caused w2k
domain joins to be agonisingly slow! The join is now instant, and login is fast too (This used to be commit 1b65713bbc4f44efee24b86900004a222028b733)
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/dgram/netlogon.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/nbt_server/dgram/netlogon.c b/source4/nbt_server/dgram/netlogon.c
index 3ac75a8ea3..059aad8c66 100644
--- a/source4/nbt_server/dgram/netlogon.c
+++ b/source4/nbt_server/dgram/netlogon.c
@@ -135,11 +135,18 @@ static void nbtd_netlogon_getdc2(struct dgram_mailslot_handler *dgmslot,
/* setup a GETDC reply */
ZERO_STRUCT(reply);
+ reply.command = NETLOGON_RESPONSE_FROM_PDC2;
+
+#if 0
+ /* newer testing shows that the reply command type is not
+ changed based on whether a username is given in the
+ reply. This was what was causing the w2k join to be so
+ slow */
if (netlogon->req.pdc2.user_name[0]) {
reply.command = NETLOGON_RESPONSE_FROM_PDC_USER;
- } else {
- reply.command = NETLOGON_RESPONSE_FROM_PDC2;
}
+#endif
+
pdc = &reply.req.response2;
/* TODO: accurately depict which services we are running */