summaryrefslogtreecommitdiffstats
path: root/source4/smbd/server.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-messaging: fixed the removal of messaging sockets in child tasksAndrew Tridgell2011-07-221-2/+2
| | | | | | | | | | | | | | when a child task exits we were firing a destructor on any inherited messaging contexts, which could trigger a removal of the parents message socket and messaging database entry. This adds a new auto_remove flag to imessaging_init(), and exposes the cleanup code for use by the stream service. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 22 08:09:06 CEST 2011 on sn-devel-104
* s4:param: add "state dir" and "cache dir" optionsStefan Metzmacher2011-07-121-0/+2
| | | | metze
* s4:smbd/server.c - quiet "time_t" format string warnings by castsMatthias Dieter Wallnöfer2011-06-091-2/+4
| | | | Reviewed-by: Tridge
* s4/server: simplify and replace bad portable gettimeofday by timeBjörn Jacke2011-06-061-15/+2
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Mon Jun 6 12:58:26 CEST 2011 on sn-devel-104
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-061-3/+3
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* s4-smbd: fix randseed_init() usage.Günther Deschner2011-05-061-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 6 17:37:11 CEST 2011 on sn-devel-104
* s4-param Rename secrets_init() -> randseed_init()Andrew Bartlett2011-05-031-4/+3
| | | | | | | | | This only sets up the random number generator callback these days, so use a different database for that. (All secrets data in Samba4 is in secrets.ldb) Andrew Bartlett
* s4-messaging Rename messaging -> imessagingAndrew Bartlett2011-05-031-3/+3
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* s4-charset: use dyn_CODEPAGEDIR for location of upcase.dat/lowcase.datAndrew Tridgell2011-02-071-0/+1
| | | | | | this matches samba3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4: Happy New Year 2011Stefan Metzmacher2011-01-021-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jan 2 18:42:12 CET 2011 on sn-devel-104
* s4-auth Remove event context from privilage database handlingAndrew Bartlett2010-12-211-1/+1
| | | | | | | These local TDB operations can quite safely be handled in a new/nested event context, rather than using the main event context. Andrew Bartlett
* Add timestamp when running with --maximum-runtimeMatthieu Patou2010-11-271-1/+15
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sat Nov 27 11:51:12 CET 2010 on sn-devel-104
* s4-modules: get rid of the remaining static prototypes for modulesAndrew Tridgell2010-11-011-17/+2
| | | | the waf build now generates the prototype declarations for us
* s4 dns: Add a boilerplate DNS server implementationKai Blin2010-10-231-0/+1
|
* s4: show samba version in bin/samba -bAndrew Tridgell2010-10-141-0/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 14 02:24:47 UTC 2010 on sn-devel-104
* s4-smbd Remove event_context_set_default()Andrew Bartlett2010-10-111-3/+0
| | | | | | | The last callers to event_context_find() have been removed so this is no longer required. Andrew Bartlett
* ldb-samba: Add ldb_wrap_add, remove last schema reference from ldb_wrap.Jelmer Vernooij2010-10-101-1/+1
|
* s4-server: exit with status 127 on SIGTERMAndrew Tridgell2010-10-021-1/+1
| | | | | this ensures that make test detects a failure if samba is killed by SIGTERM
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-7/+7
| | | | | | | 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>
* s4:schannel Open the schannel_store.tdb at startupAndrew Bartlett2010-06-251-0/+8
| | | | | | This will allow TDB_CLEAR_IF_FIRST behaviour in future Signed-off-by: Jeremy Allison <jra@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-3/+1
|
* Revert "s4: remove unused references to swat"Andrew Bartlett2010-05-141-0/+1
| | | | | | | This reverts most of commit 1765732f82719a4bc925f21ef4999bd19a8d1f6c. The s3compat build needs the SWAT location to be compatible with Samba3.
* s4: remove unused references to swatStefan Metzmacher2010-04-291-1/+0
| | | | metze
* s4-server: show build host in samba -b outputAndrew Tridgell2010-04-211-0/+5
|
* s4: added a simple implementation of bin/samba -bAndrew Tridgell2010-03-291-1/+44
| | | | this shows the config paths. Useful for debugging --enable-fhs
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-261-1/+1
|
* s4:schannel merge code with s3Simo Sorce2010-02-231-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.
* More spelling fixes across source4/Brad Hards2010-02-221-1/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4:server.c - use always "return" instead of "exit" in the ↵Matthias Dieter Wallnöfer2010-02-131-4/+4
| | | | | | "binary_smbd_main" function Just to be consistent - no functional change
* s4-dns: added a dns update taskAndrew Tridgell2010-02-111-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>
* s4-event: added s4_event_context_set_default()Andrew Tridgell2010-01-081-0/+3
| | | | we're still not weaned off event_context_find()
* s4: Happy New Year 2010Stefan Metzmacher2010-01-041-1/+1
| | | | metze
* s4-server: pre-open the main ldb databases in the serverAndrew Tridgell2009-10-231-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.
* s4:server.c - add linespace (only cosmetic)Matthias Dieter Wallnöfer2009-09-201-1/+2
|
* s4-smbd: removed unnecessary includesAndrew Tridgell2009-09-191-3/+0
|
* s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell2009-09-181-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.
* s4-kcc: add a very simple KCCAndrew Tridgell2009-09-111-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 :-)
* prime the sam ldb schema in the parent samba processAndrew Tridgell2009-08-071-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.
* s4:smbd: the name of the binary is "samba" nowStefan Metzmacher2009-03-211-1/+1
| | | | metze
* Moved become_daemon() and close_low_fds() to shared util libSteven Danneman2009-02-201-1/+1
|
* s4:smbd: s/private/private_dataStefan Metzmacher2009-02-021-4/+4
| | | | metze
* s4:smbd: convert to tevent_* apiStefan Metzmacher2009-01-031-9/+9
| | | | metze
* Happy New Year!Stefan Metzmacher2009-01-021-1/+1
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-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
* s4:cluster: remove old/broken ctdb codeStefan Metzmacher2008-12-291-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
* Fix missing symbols issues when building with shared libraries.Jelmer Vernooij2008-12-221-1/+1
|
* Rename smbd -> samba.Jelmer Vernooij2008-09-241-1/+1
| | | | | | | | This reverts commit 05ea5e23cf4e70de0bd658b1c5c0ead133967091. Conflicts: source4/smbd/server.c
* process incoming connections and fork a samba3 in inetd modeStefan Metzmacher2008-09-221-0/+1
|
* Revert "Rename smbd -> samba."Jelmer Vernooij2008-09-211-1/+1
| | | | This reverts commit 0e9008be35a5b334bd65e6417193d4b8f27bdc36.
* Rename smbd -> samba.Jelmer Vernooij2008-09-211-1/+1
|