summaryrefslogtreecommitdiffstats
path: root/source/smbd/server.c
Commit message (Collapse)AuthorAgeFilesLines
* r24957: Merge 21867, 21869, 21870 and 21871:Volker Lendecke2007-09-041-0/+45
| | | | | | | | | | | | | Simplify calling convention of timeout_processing. lp_deadtime is only referenced in conn_idle_all(). Move sending keepalives out of the main processing loop into idle event. On the way, make lp_keepalive() a proper parameter. Move sending auth_server keepalives out of the main loop into an idle event. Move deadtime processing into an idle event. While there, simplify conn_idle_all() a bit.
* r24950: Merge r21784Volker Lendecke2007-09-041-1/+1
| | | | | | | Replace smb_register_idle_event() with event_add_timed(). This fixes winbind which did not run the idle events to drop ldap connections. Volker
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24702: Remove the old API pointersVolker Lendecke2007-08-271-5/+0
|
* r24622: - deferr calling build_options();exit(0);Stefan Metzmacher2007-08-221-5/+10
| | | | | | - use poptPrintUsage() to give the user more info metze
* r24600: patch from Karolin Seeger <ks@sernet.de>:Stefan Metzmacher2007-08-211-1/+4
| | | | | | | | | | smbd, nmbd and winbindd can be started with invalid options currently. The first patch attached would be a possible solution. It contains an exit if an invalid option has been used. The main problem is, that existing setups with wrong options or missing arguments in start scripts will break (which is the right behaviour from my point of view). metze
* r24030: merge from http://samba.org/~tridge/samba_3_2_ctdb/:Stefan Metzmacher2007-07-241-5/+8
| | | | | | the claim_connection() must come after the sockets are open metze
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23783: Processing the UAS change message was causing problems on ppc64 LinuxAndrew Tridgell2007-07-101-23/+0
| | | | | | | | systems. Rather than trying to fix this, it's much better just to remove the code, as it serves no purpose at all (the message that is generated is ignored by smbd). This sort of parsing should really be done by PIDL generated code.
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23683: Check ports are in the correct range (1-65535)Simo Sorce2007-07-031-2/+2
|
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-151-3/+3
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23410: Merge the core of the cluster code.Volker Lendecke2007-06-101-0/+7
| | | | | | | | | | | | | | | | I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker
* r23272: Fix main event loop - reviewed by Volker.Jeremy Allison2007-05-311-2/+4
| | | | Jeremy.
* r23241: In preparation for the cluster messaging import the parent smbd needs toVolker Lendecke2007-05-301-7/+20
| | | | respond to events.c style events.
* r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke2007-05-291-0/+2
| | | | | | | | | | branch, please check if it fulfils your needs. Two changes: The validation is not done inside the brlock.c traverse_fn, it's done as a separate routine. Secondly, this patch does not call the checker routines in smbcontrol directly but depends on a running smbd.
* r23168: Move the lp_max_connections() into service.c.Volker Lendecke2007-05-271-1/+1
|
* r23167: Remove an unused parameterVolker Lendecke2007-05-271-1/+1
|
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-05-211-1/+1
| | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* r22954: More messaging_registerVolker Lendecke2007-05-161-1/+1
|
* r22942: Some message_register -> messaging_register conversionsVolker Lendecke2007-05-161-34/+59
|
* r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke2007-05-151-1/+1
|
* r22900: Convert profile/ to messaging_send_pid/messaging_registerVolker Lendecke2007-05-151-1/+1
|
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-05-141-2/+3
| | | | tomorrow.
* r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2007-05-081-1/+1
| | | | | | | | | connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-05-071-7/+7
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22395: allow profiling level to be set on startupHerb Lewis2007-04-201-0/+10
|
* r21322: No feedback means consent :-)Volker Lendecke2007-02-131-18/+37
| | | | | | | | | | | It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. Volker
* r21225: Couple of fixes from Martin Zielinski mz@seh.de,Jeremy Allison2007-02-071-3/+2
| | | | | | | one typo, one to make sure that time initialization is done before modules that depend on it (printer initialization). Jeremy.
* r20966: Only attempt to reload the config file atfer the fork point if weJames Peach2007-01-231-2/+6
| | | | | are in daemon mode. If we are in inetd mode, there's really no point in rechecking it so soon.
* r20916: Add in the delete on close final fix - but only enabledJeremy Allison2007-01-191-0/+13
| | | | | with -DDEVELOPER. Jeremy.
* r20157: get rid of a few no previous prototype warningsHerb Lewis2006-12-131-1/+1
|
* r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-211-34/+85
|
* r16104: Set version to 3.0.23rc2Gerald Carter2006-06-081-4/+5
| | | | | Bring release tree up to current 3.0 tree (svn merge -r15845:16103 $SVNURL/branches/SAMBA_3_0)
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-0/+2
|
* r15144: final code changes for 3.0.23pre1 (SAMBA_3_0 r15141)Gerald Carter2006-04-201-3/+0
|
* r15135: working on 3.0.23pre1; sync to SAMBA_3_0 r15132Gerald Carter2006-04-191-96/+144
|\
| * r15133: in_server is not used anywhereVolker Lendecke2006-04-191-3/+0
| |
| * r15119: Initialize our global sam sid first, quite a lot of the other ↵Volker Lendecke2006-04-181-11/+22
| | | | | | | | | | | | | | | | | | | | initialization routines further down depend on it. Fix bug 3696. Volker
| * r15022: Fix core dumps on normal server exit.Jeremy Allison2006-04-101-5/+5
| | | | | | | | Jeremy.
| * r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2006-04-101-2/+1
| | | | | | | | | | | | | | | | into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy.
| * r14954: Fix #3569 based on William Jojo's work. AIX alsoJeremy Allison2006-04-061-1/+1
| | | | | | | | | | | | | | | | | | has the linear posix locking issue which causes CLEAR_IF_FIRST to cause performance problems. As we know we're in a daemon architecture with long-lived parent we can avoid this in the Samba case. Add a comment explaining this. Jeremy.
| * r14898: This change is an attempt to improve the quality of the information thatJames Peach2006-04-041-76/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
| * r14847: Tell static checkers that exit_server() doesn'tJeremy Allison2006-04-011-5/+10
| | | | | | | | | | return. Jeremy.
| * r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-basedJames Peach2006-03-221-0/+6
| | | | | | | | HSM is interested in. Tested on both IRIX and SLES9.
| * r14618: add --no-process-group to all server programmsStefan Metzmacher2006-03-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | to make the following possible: timelimit 20000 bin/nmbd -F -S --no-process-group timelimit 20000 bin/smbd -F -S --no-process-group this is needed to 'make test' working without losing child processes metze
| * r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2006-02-201-1/+1
| | | | | | | | macro which sets the freed pointer to NULL.
| * r13316: Let the carnage begin....Gerald Carter2006-02-031-8/+21
| | | | | | | | Sync with trunk as off r13315
| * r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2006-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
| * r13023: Ensure we notice if we exit due to guest user setup fail.Jeremy Allison2006-01-181-1/+3
| | | | | | | | Jeremy.