summaryrefslogtreecommitdiff
path: root/source4/smbd
AgeCommit message (Collapse)AuthorFilesLines
2010-04-29s4: remove unused references to swatStefan Metzmacher1-1/+0
metze
2010-04-27s4:service_named_pipe: use the passed client and server addressesStefan Metzmacher1-1/+38
This gives the rpc server code the correct client and server ip addresses for ncacn_np. metze
2010-04-24s4-smbd: Fix compiler warning in prefork smbd.Tim Potter1-1/+1
My first patch in a while... Tim. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-04-21s4-server: show build host in samba -b outputAndrew Tridgell1-0/+5
2010-04-18s4-waf: removed the unused installdir= option to SAMBA_BINARY()Andrew Tridgell1-1/+0
This was left over from the automatic conversion of the config.mk files
2010-04-14s4:auth Change auth_generate_session_info to take an auth contextAndrew Bartlett1-14/+48
The auth context was in the past only for NTLM authentication, but we need a SAM, an event context and and loadparm context for calculating the local groups too, so re-use that infrustructure we already have in place. However, to avoid problems where we may not have an auth_context (in torture tests, for example), allow a simpler 'session_info' to be generated, by passing this via an indirection in gensec and an generate_session_info() function pointer in the struct auth_context. In the smb_server (for old-style session setups) we need to change the async context to a new 'struct sesssetup_context'. This allows us to use the auth_context in processing the authentication reply . Andrew Bartlett
2010-04-06s4-waf: removed the AUTOGENERATED markersAndrew Tridgell1-8/+0
we won't be using the mk -> wscript generator again
2010-04-06s4-waf: more dependencies on tallocAndrew Tridgell1-0/+1
these are needed so we can support a system talloc without using the bundled talloc.h
2010-04-06s4-waf: cleanup use of LIBPOPT vs popt dependencyAndrew Tridgell1-1/+1
2010-04-06s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell1-0/+2
them
2010-04-06build: install samba in sbinAndrew Tridgell1-1/+2
2010-04-06build: waf quicktest nearly worksAndrew Tridgell1-4/+6
Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
2010-04-06build: commit all the waf build files in the treeAndrew Tridgell1-0/+71
2010-03-29s4: added a simple implementation of bin/samba -bAndrew Tridgell1-1/+44
this shows the config paths. Useful for debugging --enable-fhs
2010-03-26s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider1-1/+1
2010-03-26s4-smbd: use tevent_re_initialise()Andrew Tridgell1-2/+6
This fixes a crash bug on startup
2010-03-07s4:libcli/wrepl: rewrite the low level request handling to use tevent_queue ↵Stefan Metzmacher1-11/+2
and tstream_context metze
2010-02-26s4-smb: Migrate named_pipe_server to tsocket.Andreas Schneider2-209/+312
This is an improved version of commit 69d5cea2e59162f19460e7ce4b6382fc5fdd6ca0, which was reverted by commit 71c20f703b0c603d6aada63ed5634070a26df052. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-26s4-krb5: propogate errors from a lot more kerberos functionsAndrew Tridgell1-1/+3
We need to be able to give sensible error messages when a kerberos calls fails. This propogates the kerberos error up the stack to the caller. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-24Revert "s4-smb: Migrate named_pipe_server to tsocket."Simo Sorce2-279/+211
This reverts commit 69d5cea2e59162f19460e7ce4b6382fc5fdd6ca0. This commit causes issues with the RPC server, revert it until we find the exact issue and possibly have a torture test to avoid it happening again. Found playing with w2k8r2 and forest trusts.
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-23s4-smb: Migrate named_pipe_server to tsocket.Andreas Schneider2-211/+279
2010-02-23s4-smbd: Remove obsolete singal type cast from the thread process model.Andreas Schneider1-3/+3
2010-02-22More spelling fixes across source4/Brad Hards3-3/+3
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-13s4-smbd: fix crash in notify code on client terminationAndrew Tridgell1-2/+2
We need to free the lp_ctx after we free the event context, otherwise the teardown code in the notify backend dies when it tries to use the iconv_convenience ptr Fixes bug 7053
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-09s4-debug: lower the verbosity of a couple of common log messagesAndrew Tridgell1-1/+1
2010-01-08s4-smbd: setup the default event contexts for other process modelsAndrew Tridgell2-1/+13
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-12-24s4:smbd: hold tsocket_addresses on the stream_connectionStefan Metzmacher3-10/+27
metze
2009-10-23s4-ldb: move the tdb_reopen_all() calls to ldb_wrap.cAndrew Tridgell2-13/+1
2009-10-23s4-server: call the ldb_wrap_fork_hook() after a fork()Andrew Tridgell2-0/+5
This will be used to allow us to cancel any pending transactions after a fork.
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 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