summaryrefslogtreecommitdiffstats
path: root/source4/nbt_server/wins
Commit message (Collapse)AuthorAgeFilesLines
* s4:nbt_server/wins: make use explicit use of the top level event contextAndrew Bartlett2014-05-131-2/+2
| | | | | | | | Andrew Bartlett Change-Id: I4b8e5c16bd03a038da6527cfb4c91fc874626b18 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/param: handle non-constant strings properly by passing in a memory contextGarming Sam2014-02-201-1/+1
| | | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Change-Id: Ic6bb1c709defd2b0f35fc7b877da0badca385776 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
* s4:nbt_server: avoid talloc_reference()Stefan Metzmacher2013-08-123-5/+6
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-nbt_server: remove unused winsdb_get_seqnumber()Andrew Bartlett2012-02-101-26/+0
| | | | | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 10 08:21:41 CET 2012 on sn-devel-104
* lib/param: Remove parameters for wins and spoolss databasesAndrew Bartlett2011-10-181-4/+8
| | | | | | | | | | | | | | | | | This removes the smb.conf parameters per-database, replacing these with hard-coded database names in well known (and configurable) directories. The wins.ldb is now always in the "state dir", rather than being in both state and lock dir (ie, a bug). Less smb.conf parameters means less parameters to try and sync up between the loadparm subsystems. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 18 05:39:54 CEST 2011 on sn-devel-104
* s4:misc: remove last usage of legacy event_ fn namesSimo Sorce2011-08-141-2/+2
| | | | | Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Aug 14 00:38:13 CEST 2011 on sn-devel-104
* s4:winsdb: place wins.ldb in "state dir" instead of "lock dir"Stefan Metzmacher2011-07-121-1/+1
| | | | | | | | | It's not only a cache as we also support static records. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 16:16:45 CEST 2011 on sn-devel-104
* param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()Andrew Bartlett2011-07-021-1/+1
| | | | | | | | | Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672 (avoiding the duplicate function makes it easier to generate the struct loadparm_globals). Andrew Bartlett
* s4-wins: ensure we only use IPv4 for WINS ownerAndrew Tridgell2011-06-082-2/+2
|
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-062-2/+2
|
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-082-5/+5
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* s4-param Rename lock_path() -> lpcfg_lock_path()Andrew Bartlett2011-04-291-2/+2
| | | | This avoids a conflict with the source3/ lock_path()
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-103-4/+4
| | | | | | | | 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>
* s4:introduce casts before outputs of "time_t" variablesMatthias Dieter Wallnöfer2010-11-281-1/+1
| | | | Otherwise we are getting warnings on "NetBSD".
* s4-ldb: enable version checking in dsdb ldb modulesAndrew Tridgell2010-11-011-1/+2
|
* s4-dsdb: convert the rest of the ldb modules to the new module typeAndrew Tridgell2010-11-011-1/+6
|
* s4:nbt_server - fix a LDB counter typeMatthias Dieter Wallnöfer2010-10-191-1/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Oct 19 14:05:13 UTC 2010 on sn-devel-104
* libcli/nbt: convert nbt_name_register_wins_send/recv to tevent_reqStefan Metzmacher2010-10-181-6/+7
| | | | metze
* s4:nbt_server/winsclient: add a nbtd_wins_register_stateStefan Metzmacher2010-10-181-34/+48
| | | | | | | We now keep the nbtd_wins_register_state around between nbt_name_register_wins_send() and nbt_name_register_wins_recv() metze
* libcli/nbt: convert nbt_name_refresh_wins_send/recv to tevent_reqStefan Metzmacher2010-10-181-6/+6
| | | | metze
* s4:nbt_server/winsclient: add a nbtd_wins_refresh_stateStefan Metzmacher2010-10-181-42/+50
| | | | | | | We now keep the nbtd_wins_refresh_state around between nbt_name_refresh_wins_send() and nbt_name_refresh_wins_recv() metze
* s4:nbt_server/wins: fix compiler warningsStefan Metzmacher2010-10-181-0/+1
| | | | metze
* samdb: Add flags argument to samdb_connect().Jelmer Vernooij2010-10-101-1/+1
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-165-28/+28
| | | | | | | 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>
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-261-0/+1
| | | | These were causing thousands of warnings on solaris8
* More spelling fixes across source4/Brad Hards2010-02-221-2/+2
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()Andrew Tridgell2010-02-132-3/+2
|
* s4:winsserver: reject name registrations with a scope length > 237Stefan Metzmacher2010-02-011-0/+9
| | | | | | This matches Windows 2008 behavior. Name releases are just ignored. metze
* s4:nbt_server/wins/winsdb - Fix "const" warningMatthias Dieter Wallnöfer2009-10-301-5/+1
|
* s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell2009-10-231-2/+2
| | | | | | | | | This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
* s4:winsdb - Substitute LDB result numbers with constantsMatthias Dieter Wallnöfer2009-10-161-19/+20
|
* s4-winsrepl: don't put in attributes with no elementsAndrew Tridgell2009-10-161-2/+2
| | | | | | | Empty attributes are no longer allowed by ldb. This also fixes the error checking in winsdb_message() This fixes the samba4.nbt.winsreplication test
* s4-resolve: fixed a crash bug on timeoutAndrew Tridgell2009-09-191-1/+1
| | | | | | | We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
* fixed several places that unnecessarily take a reference to the event contextAndrew Tridgell2009-08-071-2/+2
| | | | | | | | | | | | | | | These references were triggering the ambiguous talloc_free errors from the recent talloc changes when the server is run using the 'standard' process model instead of the 'single' process model. I am aiming to move the build farm to use the 'standard' process model soon, as part of an effort to make our test environment better match the real deployment of Samba4. The references are not needed as the way that the event context is used is as the 'top parent', so when the event context is freed then all of the structures that were taking a reference to the event context were actually freed as well, thus making the references redundent.
* Fix build with system LDB.Jelmer Vernooij2009-06-181-1/+1
|
* s4:nbtd Use str_list_make_single() to turn iname->wins_server into a listAndrew Bartlett2009-05-141-1/+1
|
* s4:irpc: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-011-2/+2
| | | | metze
* s4:nbt_server/wins/: fix compiler warnings in winsdb.cStefan Metzmacher2009-02-011-1/+1
| | | | metze
* Fix all other modules to use ldb_module.h instead of ldb_private.hSimo Sorce2009-01-301-13/+13
| | | | The only 2 modules escaping the rule so far are rootdse and partitions
* Fix the mess with ldb includes.Simo Sorce2009-01-301-0/+1
| | | | | | | | Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
* nbt_server/wins: winsdb_handle() can be staticStefan Metzmacher2009-01-191-2/+3
| | | | | metze (from samba4wins tree ba45b14b48f62eb1668509738f83fa17a4ce95fd)
* nbt_server/wins: add some constStefan Metzmacher2009-01-191-3/+4
| | | | | metze (from samba4wins tree e54b2d3ddbf338fe5d9802724e76f320fd4423e5)
* nbt_server/wins: use talloc_zero() to create struct winsdb_handleStefan Metzmacher2009-01-192-2/+2
| | | | | metze (from samba4wins tree 0f2995f77ab092d71e539c2473c94956f9c253fb)
* winsserver: add "wreplsrv:propagate name releases" optionStefan Metzmacher2009-01-191-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)
* winsserver_release: update the expire time if only one address is releasedStefan Metzmacher2009-01-191-1/+12
| | | | | | | | We also take the ownership if the record isn't owned. This matches windows... metze (from samba4wins tree d7b19339c0444cbe0989fcfa91a22323215d2f6b)
* winsdb: the we_are_owner in winsdb_lookup() needs to be per addressStefan Metzmacher2009-01-191-22/+15
| | | | | | | | This fixes a bug where #1C addresses are registered with different WINS-Servers and a merged #1C record. metze (from samba4wins tree 72e055394a0fd1f543be9c196b4179356a1033f6)
* winsserver: we need to ignore duplicated name register requests.Stefan Metzmacher2009-01-191-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)
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-295-8/+8
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-1/+1
|