summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins/winsserver.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-10ldb: use #include <ldb.h> for ldbAndrew Tridgell1-1/+1
thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-13/+13
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-03-26libutil: moved the networking defines to util_net.hAndrew Tridgell1-0/+1
These were causing thousands of warnings on solaris8
2010-02-22More spelling fixes across source4/Brad Hards1-2/+2
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-13s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()Andrew Tridgell1-2/+1
2010-02-01s4:winsserver: reject name registrations with a scope length > 237Stefan Metzmacher1-0/+9
This matches Windows 2008 behavior. Name releases are just ignored. metze
2009-06-18Fix build with system LDB.Jelmer Vernooij1-1/+1
2009-01-19winsserver: add "wreplsrv:propagate name releases" optionStefan Metzmacher1-0/+7
Add an option to propagate name releases directly. This make the results for #1C name queries more consistent among all servers. It's off by default to match windows. metze (from samba4wins tree 166e9fdffb9f4e26513c3b4ec1f6f168ecbe18f8)
2009-01-19winsserver_release: update the expire time if only one address is releasedStefan Metzmacher1-1/+12
We also take the ownership if the record isn't owned. This matches windows... metze (from samba4wins tree d7b19339c0444cbe0989fcfa91a22323215d2f6b)
2009-01-19winsserver: we need to ignore duplicated name register requests.Stefan Metzmacher1-7/+56
This fixes the following bug: While we reply with a WACK response to a client. Instead of waiting for the final reply some windows client just resends the request using the same name_trn_id in the nbt_name_packet. We handled this as a new request and send a WACK response (and the challenges) again. Then the first request gets its final success response, but the when we try to send the success for the "second" request we notice that the record was changed in between and we return an error. Windows 2003 (and I assume all other versions as well) detect the packet is just a resent of a currently pending request and ignores it. So we now keep a list of all pending WINS name register requests which result in a WACK response. On each incoming name register request we search through the list to find duplicate requests and ignore them. In theory we should do that for all requests, but name register requests are the only requests we response async and only if we have to go via the WACK code path. metze (from samba4wins tree 382e7d384b70d03e9f81c7bb353afaed288d80f0)
2008-09-23s4-nbt: use private_data instead of private.Günther Deschner1-8/+8
Guenther
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij1-1/+2
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2007-12-21r26409: Pass smb ports along.Jelmer Vernooij1-1/+1
(This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
2007-12-21r26408: Remove use of global_loadparm.Jelmer Vernooij1-0/+1
(This used to be commit f933b4362124bfdd25544b4e27992d9ca4405848)
2007-12-21r26402: Require a talloc context in libnetif.Jelmer Vernooij1-1/+1
(This used to be commit a35e51871bbf1ab33fc316fa59e597b722769c50)
2007-12-21r26401: Don't cache interfaces context in libnetif.Jelmer Vernooij1-1/+11
(This used to be commit 9f975417cc66bfd4589da38bfd23731dbe0e6153)
2007-12-21r26313: Fix more uses of static loadparm.Jelmer Vernooij1-14/+17
(This used to be commit 6fd0d9d3b75546d08c24c513e05b1843d5777608)
2007-12-21r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij1-3/+3
system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)
2007-10-10r25546: Convert to standard bool type.Jelmer Vernooij1-14/+14
(This used to be commit ac83dbf199fd442fc994d43a6e5e9fda8d4c88b6)
2007-10-10r25430: Add the loadparm context to all parametric options.Jelmer Vernooij1-5/+5
(This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-4/+4
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-5/+7
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r21317: this happens very often when you have multihomed nodesStefan Metzmacher1-1/+1
and isn't an error. metze (This used to be commit 6f5e084a7b9a80a3f86799f7e86a63aa0334fa2a)
2007-10-10r21086: add some notesStefan Metzmacher1-0/+7
metze (This used to be commit dfbdb958419a041c1aff039810f7e9cb4320ec2c)
2007-10-10r21085: implement something like the parameterStefan Metzmacher1-0/+105
HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Randomize1CList nbtd:wins_randomize1Clist=yes nbtd:wins_randomize1Clist_mask=255.255.0.0 metze (This used to be commit eee635ab4d7ae8ffd8962b3d4518a7e6b5a90f97)
2007-10-10r21059: add an option to implement what windows wins server confgure viaStefan Metzmacher1-1/+7
HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Prepend1BTo1CQueries nbtd:wins_prepend1Bto1Cqueries=no will turn it off metze (This used to be commit 5362eede6b097c3a62d5c4d59151f8e26d89f1c0)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r14078: move ldb_global_init() to the main smbd code,Stefan Metzmacher1-2/+0
to fix the process_model standard metze (This used to be commit a465126e15490c5605064eb2387fb589d312db7b)
2007-10-10r13786: [merge] Add registration functions for LDB modulesJelmer Vernooij1-0/+3
Applications that use LDB modules will now have to run ldb_global_init() before they can use LDB. The next step will be adding support for loading LDB modules from .so files. This will also allow us to use one LDB without difference between the standalone and the Samba-specific build (This used to be commit 52a235650514039bf8ffee99a784bbc1b6ae6b92)
2007-10-10r13116: make sure we don't add more than 25 addresses to a record,Stefan Metzmacher1-12/+36
and don't return more than 25 in a name query reply we now also order the addresses from the newest owned address to the oldest replica address metze (This used to be commit 602ec0f1c66e6cb9e958e0e7cc10d3294737378a)
2007-10-10r13060: - return only active addresses in name query responsesStefan Metzmacher1-3/+0
- replicate only active addresses metze (This used to be commit 6325abd95c5df855e8d1de2be9745940a29ba00a)
2007-10-10r12909: add an ldb module for the wins.ldb,Stefan Metzmacher1-1/+1
it currently doesn't do much, but it's later prevent adding corrupted records via ldbedit, and will take care of the versionID counter metze (This used to be commit a6f279bc43c74cf4dc116cb6ba99f1aed13a4de9)
2007-10-10r12906: return the correct nb_flagsStefan Metzmacher1-1/+8
metze (This used to be commit c52436108d1628feb50c9bf720ae30c4dc469b34)
2007-10-10r12804: This patch reworks the Samba4 sockets layer to use a socket_addressAndrew Bartlett1-17/+23
structure that is more generic than just 'IP/port'. It now passes make test, and has been reviewed and updated by metze. (Thankyou *very* much). This passes 'make test' as well as kerberos use (not currently in the testsuite). The original purpose of this patch was to have Samba able to pass a socket address stucture from the BSD layer into the kerberos routines and back again. It also removes nbt_peer_addr, which was being used for a similar purpose. It is a large change, but worthwhile I feel. Andrew Bartlett (This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
2007-10-10r12700: fix name release of replica records, we need to become the owner and ↵Stefan Metzmacher1-4/+22
allocate a new versionID so that it gets replicated to the old owning wins server directly metze (This used to be commit 72198f00ea933db68f7ec5d85cac00c98b37a077)
2007-10-10r12647: make use of the str_list_add functionStefan Metzmacher1-6/+4
metze (This used to be commit e47873a1a391c8a8b469528d44c17dfe1ea2f553)
2007-10-10r12644: prepare the dns proxy feature for the wins serverStefan Metzmacher1-1/+10
metze (This used to be commit 48842cd9abcff744851ad1481309fb901be3a73b)
2007-10-10r12618: use our primary interface address or the "winsdb:local_owner" -addressStefan Metzmacher1-7/+7
as winsOwner: attrbute for owned records metze (This used to be commit 37dece8304c0b9887740f4d4e8096732045a1785)
2007-10-10r12607: fix the buildStefan Metzmacher1-1/+1
metze (This used to be commit 5cc955bf5400a415e462853cff47a69ef206a548)
2007-10-10r12606: - fix multihomed registrationsStefan Metzmacher1-2/+224
always remove the addresses which are no longer valid - use the wins_challenge_send/recv calls which are also used by the replication challenge metze (This used to be commit 037b5d9f3661fd7a121d1db0a50dc7743d62a5e1)
2007-10-10r12580: return the first 0x1B address as first address to 0x1C queriesStefan Metzmacher1-0/+42
metze (This used to be commit 669009579dfe93b4d5008f93c2949dd4d929baf4)
2007-10-10r12578: - w2k3 allows entries with 127.0.0.1 as address, so we should doStefan Metzmacher1-8/+1
to make it possible to add a static record for localhost or so... - we already make sure we don't register 127.0.0.1 with our wins server, so the check for loopback in the non-wins name queries is enough metze (This used to be commit f68a883daf4c792e95f7a4be9e7d00e82cc0517b)
2007-10-10r12535: - simplify string list handling in a couple of places using ↵Andrew Tridgell1-0/+8
str_list_add() - don't reply with 127.0.0.1 in NBT or WINS name queries unless the query came in on the loopback interface. Otherwise clients can end up talking to themselves, which is not very productive :-) (This used to be commit df00f8b3428c6d1254e66275c90ae4025cb52c47)
2007-10-10r12428: releases on 0x1D names are ignoredStefan Metzmacher1-0/+4
metze (This used to be commit 84ba71ba274fca91f6f411a46e0a88dc3048df63)
2007-10-10r12426: w2k3 refused 0x1B names registered as group namesStefan Metzmacher1-0/+6
metze (This used to be commit 4ce4baa1b9f509e5b2ebe7921defc12c9cee74d4)
2007-10-10r12425: match w2k3 and store 0x1D names when they're registered as group name,Stefan Metzmacher1-3/+10
but queries still give not found metze (This used to be commit 2e69a7cc21d796e091127c71c0234f9cd09543fd)
2007-10-10r12424: static records should not be releasedStefan Metzmacher1-0/+8
metze (This used to be commit 3f90e72e5a0b839ba16892e8ee8aa46967d081da)
2007-10-10r12412: - the 0x1E name must be registered as group nameStefan Metzmacher1-0/+13
- reject wins registration with a static record in the database metze (This used to be commit 66b57f5fbf1c2a35972950d655695f014e57d9c5)