summaryrefslogtreecommitdiffstats
path: root/source/nbt_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-12-28 08:20:47 +0000
committerAndrew Tridgell <tridge@samba.org>2005-12-28 08:20:47 +0000
commit1bb442e91345dce22fb1bed3ce52e65cc20b3b0b (patch)
tree40d7d136ff97c7df42c7899043347697ece6306b /source/nbt_server
parentb3034452f7460a641aff2e0a82012ca1d9734e1e (diff)
downloadsamba-1bb442e91345dce22fb1bed3ce52e65cc20b3b0b.tar.gz
samba-1bb442e91345dce22fb1bed3ce52e65cc20b3b0b.tar.xz
samba-1bb442e91345dce22fb1bed3ce52e65cc20b3b0b.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
Diffstat (limited to 'source/nbt_server')
-rw-r--r--source/nbt_server/dgram/netlogon.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/nbt_server/dgram/netlogon.c b/source/nbt_server/dgram/netlogon.c
index 3ac75a8ea3f..059aad8c665 100644
--- a/source/nbt_server/dgram/netlogon.c
+++ b/source/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 */