Volker Lendecke
c9458a756c
s3: Remove smbd_server_fd from handle_aio_read/write_complete
2010-08-16 22:39:16 +02:00
Volker Lendecke
bda7c70bc0
s3: Remove smbd_server_fd from schedule_aio_write_and_X
2010-08-16 22:39:16 +02:00
Volker Lendecke
2f53d1deb7
s3: Add "sock" to smbd_server_connection
2010-08-16 22:39:16 +02:00
Volker Lendecke
96ae457023
s3: Remove get_client_fd()
2010-08-16 13:13:10 +02:00
Volker Lendecke
98187fe309
s3: Increase debug level for shutdown_other_smbds
2010-08-15 09:50:13 +02:00
Volker Lendecke
02002a52f2
s3: Add debugs to shutdown_other_smbds
2010-08-15 09:50:12 +02:00
Volker Lendecke
13a4922ae6
s3: Remove a conn NULL check from claim_connection
...
We've already dereferenced conn before
2010-08-14 12:27:17 +02:00
Volker Lendecke
ad871b73a2
s3: Fix some error messages
2010-08-13 22:53:06 +02:00
Andreas Schneider
ca8db7fd63
s3-smbd: Publish nt printers.
...
Reloading of the printers requires rpc services up and running! The
first call in reload_services will be skipped.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
aff002e829
s3-smbd: Move rpc services init to smbd parent.
...
The move to the parent makes it possible to use an internal rpc pipe
really early and as we migrated serveral parts of samba to rpc function
this is required. This should speed up the fork of a smbd a bit cause
the rpc services are already running.
We still have several problems here which aren't solved. We don't have a
dependency tree here. For example we have to make sure that the registry
is initialized before we can use the winreg pipe. The spoolss server
requires winreg, so we have to start winreg before we can start the
spoolss server. I'm sure there are more dependencies.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
62a2a9e27f
s3-smbd: Regroup some init functions.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
9ab62b774f
s3-smbd: Fixed indent.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
e18039062c
s3-smbd: Cleanup the order of the init functions.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Andreas Schneider
120bd9775a
s3-smbd: Make sure the event context is initialized.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-13 12:20:10 -04:00
Volker Lendecke
f7e14a8e5e
s3: Reduce the load on the echo handler
...
If the parent is fast enough, the echo handler should not step in. When the
socket becomes readable, the echo handler goes to sleep for a second. If within
that second, the parent has picked up the SMB request from the net, the echo
handler will just go back to select().
2010-08-12 13:32:16 +02:00
Volker Lendecke
c672797a0a
s3: Slightly simplify the logic in smbd_server_echo_handler
2010-08-12 13:31:51 +02:00
Volker Lendecke
c7a2e52ef1
s3: Slightly simplify the logic in smbd_server_connection_handler
2010-08-12 13:31:51 +02:00
Volker Lendecke
277248a4a7
s3: ?true:false is a *bit* pointless :-)
2010-08-12 12:26:56 +02:00
Jeremy Allison
e0f79dabee
Fix bug #7608 - Win7 SMB2 authentication causes smbd panic
...
We need to call setup_ntlmssp_server_info() if status==NT_STATUS_OK,
or if status is anything except NT_STATUS_MORE_PROCESSING_REQUIRED,
as this can trigger map to guest.
Jeremy.
2010-08-09 16:16:24 -07:00
Volker Lendecke
016418d6c2
s3: Remove the smbd_messaging_context from load_printers
2010-08-08 23:37:47 +02:00
Volker Lendecke
1c1d83a532
s3: Remove the smbd_messaging_context from pcap_cache_reload
2010-08-08 23:37:47 +02:00
Volker Lendecke
d0ac5c69fb
s3: Remove the smbd_messaging_context from smb_conf_updated
2010-08-08 23:37:47 +02:00
Volker Lendecke
10a76f5d42
s3: Remove the smbd_messaging_context from spoolss_init_cb
2010-08-08 23:37:47 +02:00
Volker Lendecke
b71f2af1a6
s3: Remove some smbd_messaging_context references from smbd_process
2010-08-08 23:37:47 +02:00
Volker Lendecke
37d71a56fd
s3: Pass sconn to smbd_process
2010-08-08 23:37:47 +02:00
Volker Lendecke
1702b17494
s3: Lift the server_messaging_context from housekeeping_fn
2010-08-08 23:37:46 +02:00
Volker Lendecke
e64bd85d90
s3: Lift the server_messaging_context from check_reload
2010-08-08 23:37:46 +02:00
Volker Lendecke
53ed39de4a
s3: Make check_reload() static
2010-08-08 23:37:46 +02:00
Volker Lendecke
1b60ead64a
s3: Lift the server_messaging_context from update_monitored_printq_cache
2010-08-08 18:09:38 +02:00
Volker Lendecke
bc760e79c8
s3: Lift the smbd_messaging_context from start_background_queue
2010-08-08 18:09:33 +02:00
Volker Lendecke
75b4dfd14d
s3: Lift the smbd_messaging_context from smbd_setup_sig_hup_handler
2010-08-08 18:09:33 +02:00
Volker Lendecke
5281e62941
s3: Lift the smbd_messaging_context from smbd_sig_hup_handler
2010-08-08 18:09:33 +02:00
Volker Lendecke
39da717fe1
s3: Lift the smbd_messaging_context from reload_services
2010-08-08 18:09:33 +02:00
Volker Lendecke
7c7ffb70fb
s3: Lift the smbd_messaging_context from reload_printers
2010-08-08 18:09:33 +02:00
Volker Lendecke
99b2da4504
s3: Lift the smbd_messaging_context from is_printer_published
2010-08-08 16:03:26 +02:00
Volker Lendecke
7d08c25f98
s3: Lift the smbd_messaging_context from nt_printer_publish
2010-08-08 16:03:25 +02:00
Volker Lendecke
e43ffde91f
s3: Lift the smbd_messaging_context from nt_printer_remove
2010-08-08 16:03:25 +02:00
Volker Lendecke
80cda2e807
s3: Lift the smbd_messaging_context from nt_printing_tdb_migrate
2010-08-08 16:03:15 +02:00
Volker Lendecke
2d3623529f
s3: Lift the smbd_messaging_context from rpc_pipe_open_internal
2010-08-08 16:03:15 +02:00
Volker Lendecke
33256d6478
s3: Lift the smbd_messaging_context from np_open
2010-08-08 16:03:15 +02:00
Volker Lendecke
d5b8a993e0
s3: Remove a direct reference to smbd_server_conn
2010-08-08 16:03:15 +02:00
Stefan Metzmacher
ac9f06c9b9
s3:smbd: fix valgrind warning, sizeof(16) != 16...
...
metze
2010-08-08 11:05:16 +02:00
Volker Lendecke
72fd7fb49d
s3: Remove some references to smbd_messaging_context()
2010-08-07 14:36:59 +02:00
Volker Lendecke
c9b654f581
s3: Remove smbd_messaging_context() from send_stat_cache_delete_message()
2010-08-07 13:16:48 +02:00
Volker Lendecke
b03bc8822b
s3: Remove a pointless "else"
2010-08-07 10:30:20 +02:00
Günther Deschner
0f8e032628
s3-netlogon: remove global include of netlogon.h.
...
This reduces precompiled headers by another 4 MB and also slightly speeds up the
build.
Guenther
2010-08-06 15:46:16 +02:00
Günther Deschner
257a1f1097
s3-krb5: include krb5pac.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Andreas Schneider
ce2a086119
s3-popt: Only include popt-common.h when needed.
2010-08-05 12:08:31 +02:00
Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Günther Deschner
e7a6a3ec0d
s3: avoid global include of ads.h.
...
Guenther
2010-08-05 00:32:02 +02:00