summaryrefslogtreecommitdiff
path: root/source4/smbd
AgeCommit message (Collapse)AuthorFilesLines
2009-09-19s4-smbd: removed unnecessary includesAndrew Tridgell5-11/+0
2009-09-19s4-smbd: minimise includes in smbd/ and smb_serverAndrew Tridgell2-3/+0
2009-09-18s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell4-3/+67
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.
2009-09-18s4:service_named_pipe: accept delegated credentialsStefan Metzmacher2-3/+101
metze
2009-09-11s4-kcc: add a very simple KCCAndrew Tridgell1-0/+1
A KCC is a 'Knowledge Consistency Checker', a fancy name for a daemon that works out who will replicate with who in a AD domain. This implements an extremely simple KCC task that just wants to replicate with everyone :-)
2009-08-07ensure that child tasks die when the parent diesAndrew Tridgell1-0/+24
Previously we relied on process groups and SIGTERM to ensure that child tasks died in the standard process model when the parent task died. This doesn't work when the server is run in interactive mode, as in that case we don't call become_daemon() and don't get a separate process group. The fix is to have a pipe held open by the parent server process, and inherited by child tasks. If the parent exits then the write side of the pipe is implicitly closed, which causes an event in the child tasks that causes them to exit
2009-08-07prime the sam ldb schema in the parent samba processAndrew Tridgell1-0/+18
While testing the use of the standard process model with 'make test' I found that testing was much slower (by several times) with the standard model than with the single model. The primary problem was that each SMB connection would open a new sam ldb context, and all of those would reload the full AD schema. The fix is to pre-open the SAM during server startup, before any child processes are forked. This sets up the global schema context which is inherited by all connections. The standard model is still slower at make test than the single model, but not by nearly as much. I am working on further reducing the gap.
2009-05-02Fix Coverity 911: FORWARD_NULL. Metze, please check!Volker Lendecke1-1/+2
2009-05-01s4:smbd: depend on NAMED_PIPE_AUTH_TSTREAM...Stefan Metzmacher1-1/+1
metze
2009-05-01s4:smbd: add support for named_pipe_auth level 2 in service_named_pipe...Stefan Metzmacher1-4/+55
metze
2009-03-21s4:smbd: the name of the binary is "samba" nowStefan Metzmacher1-1/+1
metze
2009-02-20Moved become_daemon() and close_low_fds() to shared util libSteven Danneman1-1/+1
2009-02-02s4:service_stream: s/private/private_dataStefan Metzmacher3-9/+9
metze
2009-02-02s4:service_task: s/private/private_dataStefan Metzmacher1-1/+1
metze
2009-02-02s4:smbd: s/private/private_dataStefan Metzmacher8-45/+45
metze
2009-01-21s4:auth: move make_server_info_netlogon_validation() function arroundStefan Metzmacher1-0/+1
metze
2009-01-15Use AS_HELP_STRING() in a couple more places.Jelmer Vernooij1-2/+2
2009-01-03s4:smbd: convert to tevent_* apiStefan Metzmacher5-24/+34
metze
2009-01-03s4:socket: use a socket_wrapper aware function to auto close the fd event ↵Stefan Metzmacher1-10/+15
for sockets metze
2009-01-02Happy New Year!Stefan Metzmacher1-1/+1
metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher13-66/+66
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-29s4:cluster: remove old/broken ctdb codeStefan Metzmacher1-4/+0
We don't need a full copy of ctdb... If we want to readd cluster support, we should just use a ctdb client library. metze
2008-12-24Rename samba-socket -> samba_socket to fix a couple more compilerJelmer Vernooij1-1/+1
warnings.
2008-12-22Fix missing symbols issues when building with shared libraries.Jelmer Vernooij3-1/+3
2008-12-17s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher3-2/+4
We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
2008-12-16Rename dom_sid.idl -> server_id.idl (since it no longer actually contains ↵Jelmer Vernooij2-2/+2
the dom_sid). No longer include it from security.idl.
2008-11-06s4: smbd: implement stream_socket_named_pipe()Stefan Metzmacher2-1/+368
For now implement just a very simple protocol to negotiate the transport session info. We may need to pass more info later, e.g. client ip or name... metze
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 Vernooij1-0/+1
remove some unused functions.
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-1/+1
2008-10-15Fix includes.Jelmer Vernooij2-2/+2
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-09-30Fix segfault.Jelmer Vernooij1-1/+1
2008-09-30Eliminate another global_loadparm.Jelmer Vernooij7-8/+10
2008-09-24log stream terminationAndrew Tridgell1-0/+2
2008-09-24Rename smbd -> samba.Jelmer Vernooij3-17/+14
This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
2008-09-22s4: allways initialize the process model before it's usedStefan Metzmacher2-2/+3
metze
2008-09-22process incoming connections and fork a samba3 in inetd modeStefan Metzmacher1-0/+1
2008-09-21Revert "Rename smbd -> samba."Jelmer Vernooij3-14/+17
This reverts commit 0e9008be35a5b334bd65e6417193d4b8f27bdc36.
2008-09-21Rename smbd -> samba.Jelmer Vernooij3-17/+14
2008-09-16Use single copy of tdb in both samba3 and samba4.Jelmer Vernooij2-2/+2
2008-06-20smbd: make sure the parent smbd stays alive foreverStefan Metzmacher1-7/+13
The problem was that the parent smbd doesn't have any event when the process model standard was in use. Now we always add an fd event for stdin, but may not ask for any events to trigger. metze (This used to be commit fa6c00734ccf9bfe7a962253ddb5e2a1722c9b09)
2008-06-19Fix segfault caused by talloc_free() being called while still processingAndrew Bartlett1-2/+2
The problem here was that with the packet code set to serialise, we can have multiple packets 'processing' at once, and previously the second packet (allowed because we are spining on an event context down the stack) would clear the flag. Andrew Bartlett (This used to be commit 33789111241a1d97fc105ec4edd7b8054895b28c)
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce4-7/+7
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-06-14Fix prototype for pthread process model.Jelmer Vernooij1-0/+1
(This used to be commit 280c411613b21acc1e65e5657b209d266dbad8d3)
2008-05-28Bring up the ntp signing deamonAndrew Bartlett1-0/+1
This starts ntp_signd at startup, and fixes some build issues. Andrew Bartlett (This used to be commit cb0dcd5c3dfe2a46755270a4594b7289f555d814)
2008-05-18Fix a couple (well, little more than that..) of typos.Jelmer Vernooij2-3/+3
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18Create prototype headers from Makefile directory, without smb_build in the ↵Jelmer Vernooij2-3/+6
middle. (This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18Use variables for source directory in a couple more places.Jelmer Vernooij1-5/+5
(This used to be commit 2860a7db5968c7007522cdb300eba390da929ab8)
2008-05-18Use variables for source directory in a couple more places.Jelmer Vernooij1-4/+4
(This used to be commit 56bb2907c67d55967f54ce74b029f05067a187c5)