diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-03-25 09:24:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:11 -0500 |
commit | 767685e9fd836d9ea3082855e7d9204ca66f047f (patch) | |
tree | 198a4abc1b49323273da0808ed7bf3a5d2d535a3 /source4/nbt_server/dgram/ntlogon.c | |
parent | 3451ba729dad31e7a435908970d58965f08465f7 (diff) | |
download | samba-767685e9fd836d9ea3082855e7d9204ca66f047f.tar.gz samba-767685e9fd836d9ea3082855e7d9204ca66f047f.tar.bz2 samba-767685e9fd836d9ea3082855e7d9204ca66f047f.zip |
r14709: allways use the unicast socket of the interface, when reply to DGRAM
requests...
this fixes a bug where I thought windows would try KRB5 via broadcast...
metze
(This used to be commit 0e7b224294ce6a3b5bbdc284181ab496a5a0c058)
Diffstat (limited to 'source4/nbt_server/dgram/ntlogon.c')
-rw-r--r-- | source4/nbt_server/dgram/ntlogon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/nbt_server/dgram/ntlogon.c b/source4/nbt_server/dgram/ntlogon.c index 165a9f461a..15bf903844 100644 --- a/source4/nbt_server/dgram/ntlogon.c +++ b/source4/nbt_server/dgram/ntlogon.c @@ -29,11 +29,13 @@ reply to a SAM LOGON request */ static void nbtd_ntlogon_sam_logon(struct dgram_mailslot_handler *dgmslot, + struct nbtd_interface *iface, struct nbt_dgram_packet *packet, const struct socket_address *src, struct nbt_ntlogon_packet *ntlogon) { struct nbt_name *name = &packet->data.msg.dest_name; + struct nbtd_interface *reply_iface = nbtd_find_reply_iface(iface, src->addr, False); struct nbt_ntlogon_packet reply; struct nbt_ntlogon_sam_logon_reply *logon; @@ -56,7 +58,7 @@ static void nbtd_ntlogon_sam_logon(struct dgram_mailslot_handler *dgmslot, packet->data.msg.dest_name.type = 0; - dgram_mailslot_ntlogon_reply(dgmslot->dgmsock, + dgram_mailslot_ntlogon_reply(reply_iface->dgmsock, packet, ntlogon->req.logon.mailslot_name, &reply); @@ -97,7 +99,7 @@ void nbtd_mailslot_ntlogon_handler(struct dgram_mailslot_handler *dgmslot, switch (ntlogon->command) { case NTLOGON_SAM_LOGON: - nbtd_ntlogon_sam_logon(dgmslot, packet, src, ntlogon); + nbtd_ntlogon_sam_logon(dgmslot, iface, packet, src, ntlogon); break; default: DEBUG(2,("unknown ntlogon op %d from %s:%d\n", |