summaryrefslogtreecommitdiff
path: root/source4/smbd/server.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-23s4:schannel merge code with s3Simo Sorce1-2/+0
After looking at the s4 side of the (s)channel :) I found out that it makes more sense to simply make it use the tdb based code than redo the same changes done to s3 to simplify the interface. Ldb is slow, to the point it needs haks to pre-open the db to speed it up, yet that does not solve the lookup speed, with ldb it is always going to be slower. Looking through the history it is evident that the schannel database doesn't really need greate expanadability. And lookups are always done with a single Key. This seem a perfet fit for tdb while ldb looks unnecessarily complicated. The schannel database is not really a persistent one. It can be discared during an upgrade without causing any real issue. all it contains is temproary session data.
2010-02-22More spelling fixes across source4/Brad Hards1-1/+1
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-13s4:server.c - use always "return" instead of "exit" in the ↵Matthias Dieter Wallnöfer1-4/+4
"binary_smbd_main" function Just to be consistent - no functional change
2010-02-11s4-dns: added a dns update taskAndrew Tridgell1-0/+1
This task watches for changes in the list of DCs, and creates a bind9 formatted file that grants update permission to all DCs, plus to the administration, and machines update for their own names. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-01-08s4-event: added s4_event_context_set_default()Andrew Tridgell1-0/+3
we're still not weaned off event_context_find()
2010-01-04s4: Happy New Year 2010Stefan Metzmacher1-1/+1
metze
2009-10-23s4-server: pre-open the main ldb databases in the serverAndrew Tridgell1-8/+14
By pre-opening these databases and leaving them open, we allow the new ldb_wrap_connect() code to share the ldb context between users.
2009-09-20s4:server.c - add linespace (only cosmetic)Matthias Dieter Wallnöfer1-1/+2
2009-09-19s4-smbd: removed unnecessary includesAndrew Tridgell1-3/+0
2009-09-18s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell1-0/+46
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-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-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-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:smbd: s/private/private_dataStefan Metzmacher1-4/+4
metze
2009-01-03s4:smbd: convert to tevent_* apiStefan Metzmacher1-9/+9
metze
2009-01-02Happy New Year!Stefan Metzmacher1-1/+1
metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-4/+4
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-22Fix missing symbols issues when building with shared libraries.Jelmer Vernooij1-1/+1
2008-09-24Rename smbd -> samba.Jelmer Vernooij1-1/+1
This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
2008-09-22process incoming connections and fork a samba3 in inetd modeStefan Metzmacher1-0/+1
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-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-14Use a custom init function for samba4 that sets a samba4Simo Sorce1-1/+1
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-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-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-01Add context pointer to secrets functions.Jelmer Vernooij1-1/+1
(This used to be commit 873941d8a8dca8e7ace83f9af9939e4264f78c96)
2008-03-08Fix the build.Jelmer Vernooij1-1/+13
(This used to be commit f2e49744717eb46bbfafeea9e2eb412a38a142e7)
2008-03-08Push SOVERSION and VERSION out of perl code.Jelmer Vernooij1-1/+0
(This used to be commit 0ba8ac6a14c62ff9edfe9f0bf43b8a7406b85291)
2008-02-28More share_init to more apprioriate place.Jelmer Vernooij1-2/+0
(This used to be commit 990135517618afcef873f0cd0e6f8c3098247b50)
2008-02-22Happy New Year 2008! :-)Stefan Metzmacher1-1/+1
metze (This used to be commit a601ecff4e8cbf71de9f140ee2faa0b75d695559)
2008-02-20Fix static module list generation for ldb.Jelmer Vernooij1-2/+0
(This used to be commit 92c1c0e9137f0845cac6cc96bf78711b6aaffe21)
2007-12-24r26580: Include sentinel in build.h, in case the list is empty.Jelmer Vernooij1-1/+1
(This used to be commit f1997dabed584bdc864c4b7235c29603c312ef46)
2007-12-24r26576: Allow the static module loading code to be used for the Python modules.Jelmer Vernooij1-1/+1
Simplify the way module initialization functions are handled. (This used to be commit ba8be2dfc0de4434c798663336b81f7f95cde520)
2007-12-21r26400: Don't try to do character conversion before smb.conf has been parsed.Jelmer Vernooij1-2/+2
(This used to be commit 9faba2874957ce80db202cd9f2cc373e7346381c)
2007-12-21r26355: Eliminate global_loadparm in more places.Jelmer Vernooij1-14/+14
(This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
2007-12-21r26272: Remove global_loadparm in some more places.Jelmer Vernooij1-1/+2
(This used to be commit 1ab76ecc5311fa863e5d04899b6f110899818f55)
2007-12-21r26269: Fix a couple more references to global_loadparm.Jelmer Vernooij1-1/+1
(This used to be commit 1cb849dfba21b9b5d00b20ba8201f0e142bfeb07)
2007-12-21r26250: Avoid global_loadparm in a couple more places.Jelmer Vernooij1-1/+1
(This used to be commit 2c6b755309fdf685cd0b0564272bf83038574a43)
2007-12-21r26237: Add loadparm context to the server service interface.Jelmer Vernooij1-1/+1
(This used to be commit 1386c5c92505a950c65411b8af74d703ce023f95)
2007-12-21r26236: Remove more uses of global_loadparm or specify loadparm_context ↵Jelmer Vernooij1-7/+7
explicitly. (This used to be commit 5b29ef7c03d9ae76b0ca909e9f03a58e1bad3521)
2007-12-21r26226: Avoid more uses of global_loadparm.Jelmer Vernooij1-1/+1
(This used to be commit 6cbce47a3eaef76a89db7cd0ab0d4f6441fc720d)
2007-10-10r25535: Deal with events subsystem failures.Jelmer Vernooij1-0/+5
(This used to be commit fa6407984b2d592d1097a6bc5b7d566a2cc122de)
2007-10-10r25454: Use standard bool types in a couple more places.Jelmer Vernooij1-6/+6
(This used to be commit 9243b551f30c7aa2763115516a6adcfe5bbddc58)
2007-10-10r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij1-2/+2
2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-3/+3
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25028: Fix more warnings.Jelmer Vernooij1-4/+5
(This used to be commit 3aa7ee4a0d8837471deeaa1c5a1f4a0d2a14aa6e)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)