summaryrefslogtreecommitdiffstats
path: root/source4/nbt_server
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell2009-09-182-9/+9
| | | | | | When one of our core tasks fails to initialise it can now ask for the server as a whole to die, rather than limping along in a degraded state.
* 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
|
* Fix more unresolved symbols.Jelmer Vernooij2009-06-021-1/+1
|
* fix uninitialised use of samctxAndrew Tridgell2009-06-011-0/+2
|
* Don't use crossRef records to find our own domainAndrew Bartlett2009-05-261-16/+5
| | | | | | | | A single AD server can only host a single domain, so don't stuff about with looking up our crossRef record in the cn=Partitions container. We instead trust that lp_realm() and lp_workgroup() works correctly. Andrew Bartlett
* s4:nbtd Use str_list_make_single() to turn iname->wins_server into a listAndrew Bartlett2009-05-141-1/+1
|
* s4:dgram: s/private/private_dataStefan Metzmacher2009-02-023-3/+3
| | | | metze
* s4:irpc: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-012-4/+5
| | | | 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-302-1/+2
| | | | | | | | 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)
* nbt_server: fix crash bug, the wins client interface may not have a nbtsockStefan Metzmacher2009-01-191-1/+1
| | | | | metze (from samba4wins tree 8035601da7c7e8b65fe1d82c2654c412fa169338)
* nbt_server: redirect incoming response packets to the correct interfaceStefan Metzmacher2009-01-191-0/+53
| | | | | | | | | | | | | We may send requests packets (WACK challenges or similar things) via a different udp socket than the socket we receive the matching response. We need to setup an unexpected handler on the nbt sockets and redirect responses to the correct nbt_socket. (By redirect I mean we use the correct nbt_socket structure, we're *not* resending the packet with sendto() via the kernel...) metze (from samba4wins tree 7ce8e705e5a9aabb787d17fbec7a078d9d6780dc)
* nbt_server: add some debug messages which show the used interfaces addressesStefan Metzmacher2009-01-191-2/+12
| | | | | metze (from samba4wins tree 8eb30add7c95672a85b4084b4a3dbfa78db820c4)
* winsserver: we need to ignore duplicated name register requests.Stefan Metzmacher2009-01-193-7/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-296-9/+9
| | | | | | | | | | | | | | | | | | | | 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
* Fix missing symbols issues when building with shared libraries.Jelmer Vernooij2008-12-221-1/+1
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-202-0/+2
| | | | remove some unused functions.
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-1/+1
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-116-6/+6
|
* The IRIX compiler does not like embedded unnamed unionsVolker Lendecke2008-10-022-6/+7
|
* Rename smbd -> samba.Jelmer Vernooij2008-09-241-1/+1
| | | | | | | | This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
* Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2008-09-231-16/+7
| | | | | The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
* s4-nbt: use ../libcli/nbtGünther Deschner2008-09-231-1/+1
| | | | Guenther
* s4-nbt: use private_data instead of private.Günther Deschner2008-09-239-26/+26
| | | | Guenther
* Revert "Rename smbd -> samba."Jelmer Vernooij2008-09-211-1/+1
| | | | This reverts commit 0e9008be35a5b334bd65e6417193d4b8f27bdc36.
* Rename smbd -> samba.Jelmer Vernooij2008-09-211-1/+1
|
* nbt_server/wins: don't force wins_ldb as shared_moduleStefan Metzmacher2008-06-301-1/+0
| | | | | metze (This used to be commit 861b79c91fb39b6b7f40d57000770f0f839e6c59)
* Rework samdb handling for 'netlogon' packets.Andrew Bartlett2008-06-302-11/+3
| | | | | | | | | | Don't reopen the samdb for every netlogon packet, and use the system_session(), as we must access data not available to anonymous. Perhaps we should consider a 'authenticated but not system' token, if we want more control on this. Andrew Bartlett (This used to be commit d10c9b71ea7f2670c4ea5ec569bcb7f49ec41362)
* nbt_server/wins: add forward declaration for struct event_contextStefan Metzmacher2008-06-271-1/+1
| | | | | metze (This used to be commit 5ff4ffd162339583c7f6ebee0c8a2efc30d8b65f)
* Extend the 'netlogon' CLDAP and NBT implementation.Andrew Bartlett2008-05-211-1/+1
| | | | | | | | | | | This now handles checking if the user exists, including validating the ACB mask on the user. This would be a nasty security hole, if Kerberos did not already expose this information anonymously... Andrew Bartlett (This used to be commit 441b286c00f9a7743cdefeb243545bdbd2c94c5e)
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-localAndrew Bartlett2008-05-211-2/+2
|\ | | | | | | (This used to be commit 7594f79db6a0e8a46e2863829e5e050b03dfaec1)
| * Fix irpc GetDC requests.Andrew Bartlett2008-05-201-2/+2
| | | | | | | | | | | | | | | | We would return NT_STATUS_NO_LOGON_SERVERS in all cases, which was less than helpful. Andrew Bartlett (This used to be commit 5dfa316b3636718ffc6fd26cf7a397a797bd2ac1)
* | Further tests show NTLOGON and NETLOGON to be identical.Andrew Bartlett2008-05-211-5/+0
|/ | | | | | | | | I can't tell the difference between the NTLOGON and NETLOGON behaviour on these pipes, and this 'exception' turned out to be alignment dependent, not pipe dependent. Andrew Bartlett (This used to be commit bf1b99aff2a8feaee5f57c7530bc81d447e5d765)
* Fix number of arguments to IRPC getdc callback.Andrew Bartlett2008-05-201-1/+0
| | | | | Andrew Bartlett (This used to be commit 8753ced2f4ee25cd5eff011f66f8e37f9807bdaf)
* Revert addition of 'mailslot' parameter.Andrew Bartlett2008-05-202-7/+3
| | | | | | | | It turns out that the mailslot name (and a useful private prointer) is provided in the struct dgram_mailslot_handler. Andrew Bartlett (This used to be commit e17804b8857fdb3c182c5e886323b9d6c194c2ff)
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-localAndrew Bartlett2008-05-201-10/+15
|\ | | | | | | | | | | | | | | | | | | Fix config.mk due to changing syntax. Conflicts: source/libcli/config.mk source/nbt_server/config.mk (This used to be commit 6a1c76f29f78183f44dfac6f468c5e728d2cb2cf)
| * Fix a couple (well, little more than that..) of typos.Jelmer Vernooij2008-05-181-4/+4
| | | | | | | | (This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
| * Create prototype headers from Makefile directory, without smb_build in the ↵Jelmer Vernooij2008-05-181-4/+9
| | | | | | | | | | | | middle. (This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
| * Use variables for source directory in a couple more places.Jelmer Vernooij2008-05-181-6/+6
| | | | | | | | (This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
* | Handle netbios domains in the CLDAP server too.Andrew Bartlett2008-05-171-3/+14
| | | | | | | | | | | | | | | | This commit also fixes a number of issues found by the NBT-DGRAM and LDAP-CLDAP tests. Andrew Bartlett (This used to be commit 8f99a4b94e95f8bde0f80f92d4e57020c62cfaab)