summaryrefslogtreecommitdiff
path: root/source4/nbt_server
AgeCommit message (Collapse)AuthorFilesLines
2009-01-19winsserver: we need to ignore duplicated name register requests.Stefan Metzmacher3-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)
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher6-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
2008-12-22Fix missing symbols issues when building with shared libraries.Jelmer Vernooij1-1/+1
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij2-0/+2
remove some unused functions.
2008-10-12Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij1-1/+1
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij6-6/+6
2008-10-02The IRIX compiler does not like embedded unnamed unionsVolker Lendecke2-6/+7
2008-09-24Rename smbd -> samba.Jelmer Vernooij1-1/+1
This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
2008-09-23Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce1-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.
2008-09-23s4-nbt: use ../libcli/nbtGünther Deschner1-1/+1
Guenther
2008-09-23s4-nbt: use private_data instead of private.Günther Deschner9-26/+26
Guenther
2008-09-21Revert "Rename smbd -> samba."Jelmer Vernooij1-1/+1
This reverts commit 0e9008be35a5b334bd65e6417193d4b8f27bdc36.
2008-09-21Rename smbd -> samba.Jelmer Vernooij1-1/+1
2008-06-30nbt_server/wins: don't force wins_ldb as shared_moduleStefan Metzmacher1-1/+0
metze (This used to be commit 861b79c91fb39b6b7f40d57000770f0f839e6c59)
2008-06-30Rework samdb handling for 'netlogon' packets.Andrew Bartlett2-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)
2008-06-27nbt_server/wins: add forward declaration for struct event_contextStefan Metzmacher1-1/+1
metze (This used to be commit 5ff4ffd162339583c7f6ebee0c8a2efc30d8b65f)
2008-05-21Extend the 'netlogon' CLDAP and NBT implementation.Andrew Bartlett1-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)
2008-05-21Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-localAndrew Bartlett1-2/+2
(This used to be commit 7594f79db6a0e8a46e2863829e5e050b03dfaec1)
2008-05-21Further tests show NTLOGON and NETLOGON to be identical.Andrew Bartlett1-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)
2008-05-20Fix irpc GetDC requests.Andrew Bartlett1-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)
2008-05-20Fix number of arguments to IRPC getdc callback.Andrew Bartlett1-1/+0
Andrew Bartlett (This used to be commit 8753ced2f4ee25cd5eff011f66f8e37f9807bdaf)
2008-05-20Revert addition of 'mailslot' parameter.Andrew Bartlett2-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)
2008-05-20Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-localAndrew Bartlett1-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)
2008-05-18Fix a couple (well, little more than that..) of typos.Jelmer Vernooij1-4/+4
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18Create prototype headers from Makefile directory, without smb_build in the ↵Jelmer Vernooij1-4/+9
middle. (This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18Use variables for source directory in a couple more places.Jelmer Vernooij1-6/+6
(This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
2008-05-17Handle netbios domains in the CLDAP server too.Andrew Bartlett1-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)
2008-05-17Show that the NTLOGON and NETLOGON mailslots are *very* similar.Andrew Bartlett5-110/+54
Rework the mailslot infrustructure to cope, passing down the mailslot name so that we can implement both in the same callback function. Andrew Bartlett (This used to be commit 89fdd77891529aa74bb920994b8b5959aae8ac2d)
2008-05-17Make the IRPC GetDC request use SAM_LOGON packets.Andrew Bartlett1-42/+35
This also moves the request to the new netlogon structures. Andrew Bartlett (This used to be commit 7ed4ba8d1a2ced013feafc1f0ca95595ac66bcbc)
2008-04-25Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij4-9/+13
Conflicts: source/Makefile source/auth/config.mk source/auth/gensec/config.mk source/build/m4/public.m4 source/build/make/python.mk source/build/make/rules.mk source/build/smb_build/header.pm source/build/smb_build/main.pl source/build/smb_build/makefile.pm source/dsdb/config.mk source/dsdb/samdb/ldb_modules/config.mk source/kdc/config.mk source/lib/events/config.mk source/lib/events/events.c source/lib/ldb/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/util/config.mk source/libcli/smb2/config.mk source/libnet/config.mk source/librpc/config.mk source/nbt_server/config.mk source/ntptr/ntptr_base.c source/ntvfs/posix/config.mk source/ntvfs/sysdep/config.mk source/param/config.mk source/rpc_server/config.mk source/rpc_server/service_rpc.c source/scripting/ejs/config.mk source/scripting/python/config.mk source/smb_server/config.mk source/smbd/server.c source/torture/config.mk source/torture/smb2/config.mk source/wrepl_server/config.mk (This used to be commit 13bbd420681519894a4036729c43273912c9b402)
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij4-9/+13
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-14Use _OBJ_FILES variables in a couple more places.Jelmer Vernooij1-25/+20
(This used to be commit 92856d5054106894b65cd1a1b5119c0facfc4cff)
2008-04-08Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij1-1/+1
Conflicts: source/auth/credentials/config.mk source/auth/gensec/config.mk source/build/smb_build/makefile.pm source/heimdal_build/config.mk source/lib/events/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/registry/config.mk source/lib/socket_wrapper/config.mk source/lib/tdb/config.mk source/lib/tls/config.mk source/lib/util/config.mk source/libcli/config.mk source/libcli/ldap/config.mk source/libnet/config.mk source/librpc/config.mk source/param/config.mk source/rpc_server/config.mk source/scripting/ejs/config.mk source/smbd/process_model.mk (This used to be commit 760378e0294dd0cd4523a83448328478632d7e3d)
2008-04-01Rename libsamba-config to libsamba-hostconfig.Jelmer Vernooij1-1/+1
(This used to be commit c46b7e90e347da76156ddcae4866adb88e9fec21)
2008-03-08Fix the build.Jelmer Vernooij1-1/+1
(This used to be commit f2e49744717eb46bbfafeea9e2eb412a38a142e7)
2008-03-03Move object file lists to the Makefile.Jelmer Vernooij1-24/+19
(This used to be commit a7e6d2a1832db388fdafa1279f84c9a8bbfc87d6)
2008-02-29Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij2-4/+8
Conflicts: source/scripting/python/config.mk (This used to be commit 0ac0ea660ab63eca764149f1d2828d0238a57289)
2008-02-25Fix use of realpath, fix init functions for ldb.Jelmer Vernooij1-1/+1
(This used to be commit ca510136d2c4cae8f520c76df6aaadb5d412bea1)
2008-02-21Remove yet more uses of global_loadparm.Jelmer Vernooij1-2/+3
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2008-02-21Remove more global_loadparm uses.Jelmer Vernooij1-2/+5
(This used to be commit 4d6fd9381f7fe4c823b47ebc43d7b272a92edffd)
2008-02-20Fix use of some modules (needed _PUBLIC_).Jelmer Vernooij2-2/+2
(This used to be commit ce332130ea77159832da23bab760fa26921719e2)
2008-02-20Use struct-based rather than function-based initialization for ldb modules ↵Jelmer Vernooij1-8/+1
everywhere. (This used to be commit 85c96a325867f7bcdb412ebc53f8a47dbf7cd89b)
2008-02-04Remove useless layer of indirection, where every service calledAndrew Bartlett1-11/+1
task_service_init() manually. Now this is called from service.c for all services. Andrew Bartlett (This used to be commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db)
2008-02-04Rework service init functions to pass down service name. This isAndrew Bartlett1-1/+1
needed to change prefork behaviour based on what service is being started. Andrew Bartlett and David Disseldorp (This used to be commit 0d830580e3539c96da3aa6c72fafe6eacd7a74a0)
2008-01-05r26672: Janitorial: Remove uses of global_loadparm.Jelmer Vernooij1-1/+2
(This used to be commit 18cd08623eaad7d2cd63b82ea5275d4dfd21cf00)
2008-01-05r26670: Janitorial: Remove global_loadparm uses.Jelmer Vernooij1-1/+1
(This used to be commit 13cc6ca1d3c2b5899bdd02c4c7306a92baa260f5)
2007-12-21r26483: Merge ldb module dependency fixes, fix auth python module.Jelmer Vernooij1-1/+1
(This used to be commit 85eeecf997a071ca7e7ad0247e8d34d49b7ffcbb)
2007-12-21r26426: Remove uses of global_loadparm.Jelmer Vernooij1-1/+1
(This used to be commit e1d177c8c1101965479f7ade2270490cd6fae4f2)
2007-12-21r26409: Pass smb ports along.Jelmer Vernooij3-2/+4
(This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)