summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
AgeCommit message (Collapse)AuthorFilesLines
2012-04-20s3:id_cache: do not use the in-memory idmap cache (it is going to be removed)Michael Adam1-13/+0
This also removes the ID_CACHE_FLUSH message.
2012-04-17s3: New notify implementationVolker Lendecke1-1/+99
From notify_internal.c: /* * The notify database is split up into two databases: One * relatively static index db and the real notify db with the * volatile entries. */ This change is necessary to make notify scale better in a cluster
2012-04-17s3: Increase debuglevel for unknown child msgsVolker Lendecke1-1/+1
Now that we have forked background jobs, this spams log.smbd
2012-04-16param: Change from _lp to lp__ as the prefix for internal parameter wrappersAndrew Bartlett1-2/+2
This will make a merge with the lib/param param code easier, as we can then paste lp_ to the front of all parameters unconditionally. Andrew Bartlett
2012-03-24lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij1-3/+3
The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
2012-03-22s3: Fix smbd -iVolker Lendecke1-9/+11
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104
2012-03-22s3: Remove an unused structure fieldVolker Lendecke1-2/+0
2012-03-15s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent ↵Michael Adam1-0/+13
process died. This applies to all child processes making use of reinit_after_fork(). It is implemented by establishing a pipe between parent and child. The child watches for EOF on the read end of the pipe, indidcating an exited parent. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-14s3:smbd: also create ncalrpc/np directory before forking rpc daemonsStefan Metzmacher1-0/+13
After the fixes to directory_create_or_exist(), this should not be needed anymore, but lets try to make autobuild reliable first. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 14 13:44:41 CET 2012 on sn-devel-104
2012-03-07s3: piddir creation fix.Ira Cooper1-0/+3
Since the piddir got moved from the lockdir by default, the default piddir wasn't getting created stopping some configurations from running. Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-07s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssdAndrew Bartlett1-4/+4
This ensures that these services are not accidentally registered in these child processes. Andrew Bartlett
2012-03-04change low FDs are handled in SambaAndrew Bartlett1-10/+2
We now only close fds 0, 1, 2 when we are a forked daemon, and take care not to close a file descriptor that we might need for foreground stdin monitoring. This should fix stdout logging in the lsa and epmapper deamons (ie in make test). Andrew Bartlett
2012-02-28s3: More fix for smbd -iVolker Lendecke1-1/+1
We need a full re-initialize, otherwise we don't re-init the USR1 signal handler
2012-02-28smbd: detect EOF on stdin in --foreground modeAndrew Tridgell1-0/+25
if EOF is detected on stdin then exit
2012-02-21s3: Fix smbd -iVolker Lendecke1-0/+1
We end up in a nested event loop without this. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Feb 21 17:24:28 CET 2012 on sn-devel-104
2012-02-15s3: Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY, bug 8760Volker Lendecke1-4/+2
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 15 21:10:22 CET 2012 on sn-devel-104
2012-01-31s3: Fix "smbcontrol smbd close-share"Volker Lendecke1-0/+11
2011-12-15s3:smbd: pass smbd_server_connection and a snumused function pointer to ↵Stefan Metzmacher1-3/+3
reload_services() metze
2011-12-15s3:smbd: split smb_conf_updated into parent and child versionsStefan Metzmacher1-12/+9
metze
2011-12-15s3:smbd: split ID_CACHE_* message handling into parent and child partsStefan Metzmacher1-1/+48
metze
2011-12-14s3:smbd: remove brl_register_msgs()Stefan Metzmacher1-1/+2
metze
2011-12-14s3:smbd/server: avoid msg_ctx_to_sconn() in smbd_accept_connection()Stefan Metzmacher1-1/+1
This is the place where we should create smbd_server_connection, when we're ready to remove the global variable. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 14 11:23:42 CET 2011 on sn-devel-104
2011-12-14s3:smbd/server: maintain the list of child processes under smbd_parent_contextStefan Metzmacher1-31/+55
metze
2011-12-14s3:smbd/server: pass smbd_parent_context to smbd_setup_sig_chld_handler()Stefan Metzmacher1-6/+6
metze
2011-12-14s3:smbd/globals: change 'int am_parent' into 'struct smbd_parent_context ↵Stefan Metzmacher1-8/+9
*am_parent' This is a short term solution on the way to get rid of 'am_parent' completely. metze
2011-12-13s3:smbd/server: move smbd_open_socket and smbd_parent_context to the topStefan Metzmacher1-19/+19
metze
2011-12-13s3:smbd: pass smbd_server_connection to smbd_setup_sig_hup_handler()Stefan Metzmacher1-2/+1
metze
2011-12-13s3:smbd: pass smbd_server_connection to smbd_setup_sig_term_handler()Stefan Metzmacher1-1/+1
metze
2011-12-13s3:smbd/server: remove unused msg_sam_sync()Stefan Metzmacher1-15/+0
metze
2011-12-13s3:smbd/server: add parent specific SIGTERM and SIGHUP handlersStefan Metzmacher1-3/+45
metze
2011-12-13s3:smbd/server: create smbd_parent_context earlierStefan Metzmacher1-7/+8
metze
2011-12-13s3:smbd/server: remember the ev_ctx on the smbd_parent_contextStefan Metzmacher1-0/+2
metze
2011-12-13s3:smbd/server: remember the msg_ctx on the smbd_parent_contextStefan Metzmacher1-4/+4
metze
2011-12-13s3:smbd: register MSG_SMB_FILE_RENAME after the forkStefan Metzmacher1-2/+0
The parent smbd doesn't need to handle this, as it doesn't have any file handles open. metze
2011-12-13s3: Use pid_to_procidVolker Lendecke1-2/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 13 12:35:09 CET 2011 on sn-devel-104
2011-12-13s3: Remove a call to procid_self()Volker Lendecke1-1/+1
2011-12-13s3: Remove a call to procid_self()Volker Lendecke1-1/+1
2011-12-13s3: Remove a call to procid_self()Volker Lendecke1-2/+3
2011-12-12s3: Remove a bunch of calls to procid_self()Volker Lendecke1-2/+1
All callers to messaging_[re]init only used procid_self()
2011-10-31s3:smbd: also the parent smbd needs FLAG_MSG_PRINT_GENERAL (bug #8553)Stefan Metzmacher1-0/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 31 17:37:34 CET 2011 on sn-devel-104
2011-10-13libcli/auth: Provide a struct loadparm_context to schannel callsAndrew Bartlett1-1/+4
This will allow us to pass this down to the tdb_wrap layer. Andrew Bartlett
2011-10-12s3:smbcontrol: let smbd pass the idmap msg to its children for convenienceGregor Beck1-2/+1
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12s3: factor out messaging_send_to_children()Gregor Beck1-8/+17
Signed-off-by: Michael Adam <obnox@samba.org>
2011-09-13s3: Remove a reference to smbd_server_connVolker Lendecke1-1/+1
2011-09-13s3: Remove a reference to smbd_server_connVolker Lendecke1-1/+1
2011-09-13s3: Remove a reference to smbd_server_connVolker Lendecke1-1/+2
2011-09-05s3-smbd: Rename reload_printers() and add documentation.Andreas Schneider1-1/+1
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Sep 5 17:59:47 CEST 2011 on sn-devel-104
2011-08-21s3-id_cache: Use better names for id cache management opsAndreas Schneider1-2/+2
The IDMAP term is normally associated with Winbind's idmap stuff. These functions deal with id caching not id mapping. Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21s3-id_cache: Move id caches mgmt out of smbdAndreas Schneider1-0/+2
We must leave the MSG_IDMAP_KILL operation in SMBD as it uses smbd specific internal globals and makes sense only in the context of a smbd daemon. The rest is moved under lib/ as we need to deal with id cache cleanups in other daemons too (like lsasd). Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21s3-rpc_server: Replace RPC_SERVICE_MODE_DAEMON checksSimo Sorce1-7/+7
Use rpc_daemon_type() macros where appropriate instead. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>