Stefan Metzmacher
c51da25769
s3:smbd/server: avoid msg_ctx_to_sconn() in smbd_accept_connection()
...
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-14 11:23:42 +01:00
Stefan Metzmacher
78582da8b5
s3:smbd/server: maintain the list of child processes under smbd_parent_context
...
metze
2011-12-14 08:15:06 +01:00
Stefan Metzmacher
dddaa52552
s3:smbd/server: pass smbd_parent_context to smbd_setup_sig_chld_handler()
...
metze
2011-12-14 08:14:54 +01:00
Stefan Metzmacher
6d15ca3482
s3:smbd/globals: change 'int am_parent' into 'struct smbd_parent_context *am_parent'
...
This is a short term solution on the way to get rid of 'am_parent' completely.
metze
2011-12-14 08:14:44 +01:00
Stefan Metzmacher
297f1b1f12
s3:smbd/server: move smbd_open_socket and smbd_parent_context to the top
...
metze
2011-12-13 20:31:10 +01:00
Stefan Metzmacher
290ce331b6
s3:smbd: pass smbd_server_connection to smbd_setup_sig_hup_handler()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
8a83464216
s3:smbd: pass smbd_server_connection to smbd_setup_sig_term_handler()
...
metze
2011-12-13 20:31:09 +01:00
Stefan Metzmacher
a131713b96
s3:smbd/server: remove unused msg_sam_sync()
...
metze
2011-12-13 12:36:36 +01:00
Stefan Metzmacher
2bab5073ba
s3:smbd/server: add parent specific SIGTERM and SIGHUP handlers
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
1738a61b84
s3:smbd/server: create smbd_parent_context earlier
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
dc38db31ba
s3:smbd/server: remember the ev_ctx on the smbd_parent_context
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
20c343b8e8
s3:smbd/server: remember the msg_ctx on the smbd_parent_context
...
metze
2011-12-13 12:36:35 +01:00
Stefan Metzmacher
173ea71686
s3:smbd: register MSG_SMB_FILE_RENAME after the fork
...
The parent smbd doesn't need to handle this, as it doesn't
have any file handles open.
metze
2011-12-13 12:36:35 +01:00
Volker Lendecke
62249f755a
s3: Use pid_to_procid
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 13 12:35:09 CET 2011 on sn-devel-104
2011-12-13 12:35:08 +01:00
Volker Lendecke
7a489ec780
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
c863d65d1b
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
80b4a3aadc
s3: Remove a call to procid_self()
2011-12-13 11:00:55 +01:00
Volker Lendecke
0f9d14820e
s3: Remove a bunch of calls to procid_self()
...
All callers to messaging_[re]init only used procid_self()
2011-12-12 21:50:25 +01:00
Stefan Metzmacher
63c7107c4a
s3:smbd: also the parent smbd needs FLAG_MSG_PRINT_GENERAL (bug #8553 )
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 31 17:37:34 CET 2011 on sn-devel-104
2011-10-31 17:37:33 +01:00
Andrew Bartlett
5603dab647
libcli/auth: Provide a struct loadparm_context to schannel calls
...
This will allow us to pass this down to the tdb_wrap layer.
Andrew Bartlett
2011-10-13 14:06:07 +02:00
Gregor Beck
6648d90652
s3:smbcontrol: let smbd pass the idmap msg to its children for convenience
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
da85f5a43e
s3: factor out messaging_send_to_children()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Volker Lendecke
6344482f00
s3: Remove a reference to smbd_server_conn
2011-09-13 11:00:13 +02:00
Volker Lendecke
3e8a8d08e3
s3: Remove a reference to smbd_server_conn
2011-09-13 11:00:13 +02:00
Volker Lendecke
d08885b0c4
s3: Remove a reference to smbd_server_conn
2011-09-13 11:00:12 +02:00
Andreas Schneider
3e8c665465
s3-smbd: Rename reload_printers() and add documentation.
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Sep 5 17:59:47 CEST 2011 on sn-devel-104
2011-09-05 17:59:47 +02:00
Andreas Schneider
61ada700a6
s3-id_cache: Use better names for id cache management ops
...
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-21 09:08:25 -04:00
Andreas Schneider
177db0a880
s3-id_cache: Move id caches mgmt out of smbd
...
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-21 09:08:25 -04:00
Simo Sorce
23e7e1c158
s3-rpc_server: Replace RPC_SERVICE_MODE_DAEMON checks
...
Use rpc_daemon_type() macros where appropriate instead.
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21 09:05:03 -04:00
Andreas Schneider
7b715f15b1
s3-smbd: Start lsasd as deamon.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21 09:05:02 -04:00
Andrew Bartlett
daa78ead19
s3-smbd Avoid races creating 'ncaclrpc dir' with epmd in a child process
2011-08-13 20:18:41 +10:00
Simo Sorce
c3cfa6be47
s3-printing: Do not try to force reload.
...
Be more correct in load printers at startup.
If async process have already started we do not need to force a reload, but we
just need to load the printers. If other process have not finished initializing
it makes no sense to try to force them as they are masking SIGHUP unitl init is
done anyway.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-08-10 18:14:06 +02:00
Simo Sorce
0de09289ae
s3-printing: Force pcap reload when all ready
...
This way we are sure the cache is primed properly and messages can be sent to
processes if necessary as all messaging has been set up.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-08-10 18:14:05 +02:00
Simo Sorce
d36a8dc896
s3:spoolssd Start spoolssd from printing_subsystem_init
...
Use a child for the background updater process
Forward printer update messages from spoolss to background update process.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-08-10 18:14:04 +02:00
Andreas Schneider
dd3a927959
s3-smbd: Pass tevent context to smbd_server_connection_loop_once().
...
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-09 10:41:47 +02:00
Simo Sorce
a68f16cb56
s3:server Consolidate printing related initialization
...
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Aug 2 17:37:44 CEST 2011 on sn-devel-104
2011-08-02 17:37:44 +02:00
Simo Sorce
2e8a85ec72
s3:smbd - Move printing queue stuff
...
This way we can properly deal with pcap updates in the background queue process
if it is enabled (on by default) and not perform these actions in the main
smbd process.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-02 15:28:03 +02:00
Andreas Schneider
aca4dbe000
s3-rpc_server: Use rpc_spoolss_mode().
2011-08-01 11:08:37 +02:00
Andreas Schneider
d189d2bf32
s3-rpc_server: Use rpc_epmapper_mode().
...
Remove embedded mode cause this will not work. It was only there for
testing.
2011-08-01 11:08:36 +02:00
Andreas Schneider
d597bf4dad
s3-rpc_server: Rename to rpc service setup.
2011-08-01 08:50:34 +02:00
Andrew Bartlett
485898458a
debug: log early messages to stdout, and keep it open
...
The --log-stdout option was compromised by the log file descriptors being
closed once the file process forked.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20 09:17:09 +10:00
Andreas Schneider
8b085c02eb
s3-smbd: Pass event and messaging context to smbd_parent_housekeeping().
2011-07-14 16:10:47 +02:00
Andreas Schneider
68520ec02c
s3-smbd: Pass ev_ctx to remove_child_pid().
2011-07-14 16:10:47 +02:00
Andreas Schneider
7da54eab64
s3-smbd: Pass msg_ctx to smbd_accept_connection.
2011-07-14 16:10:47 +02:00
Andreas Schneider
fa1bba26aa
s3-smbd: Pass ev_ctx to smbd_setup_sig_chld_handler().
2011-07-14 16:10:47 +02:00
Andreas Schneider
55a025e041
s3-smbd: Pass ev_ctx and msg_ctx to smbd_accept_connection().
2011-07-14 16:10:46 +02:00
Andreas Schneider
0b8f8f18fb
s3-smbd: Pass ev_ctx and msg_ctx to open_sockets_smbd().
2011-07-14 16:10:46 +02:00
Andreas Schneider
a3dc8f71d2
s3-smbd: Pass ev_ctx to smbd_parent_loop().
2011-07-14 16:10:46 +02:00
Andreas Schneider
4c446c0297
s3-smbd: Create ev_ctx and msg_ctx and use it.
2011-07-14 16:10:45 +02:00
Andreas Schneider
b2511a280a
s3-smbd: Remove obsolete smbd_set_server_fd().
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04 18:28:36 +10:00