Jeremy Allison
c75184b8a1
Fix issue with aio where r/w lock wasn't kept across aio read operations.
...
Change schedule_aio_read_and_X/schedule_aio_write_and_X to
return NTSTATUS. Move the grant and release of the lock into
the aio code.
Jeremy
2010-04-05 14:16:21 -07:00
Jeremy Allison
bf90969892
Move initialize_async_io_handler() inside of smbd/aio.c.
...
Call from actual aio read or write. No reason to call this globally on startup.
Jeremy.
2010-04-01 16:47:59 -07:00
Jeremy Allison
32c8feab5d
Fix for bug #7233 - print fails with jobs >4GB from Win7 clients.
...
Contains for by Sebastian Kloska <oncaphillis@snafu.de>. Submitter
confirms this fixes the problem.
Jeremy.
2010-03-30 15:27:26 -07:00
Stefan Metzmacher
cac9981b1a
s3:rpc_client: remove more unused code
...
metze
2010-03-29 18:11:20 +02:00
Stefan Metzmacher
99664ad154
s3:rpc_client: add set_timeout hook to rpc_cli_transport
...
metze
2010-03-29 18:11:17 +02:00
Stefan Metzmacher
4f41b53487
s3:rpc_client: add rpccli_is_connected()
...
metze
2010-03-29 18:11:16 +02:00
Stefan Metzmacher
d7bf30ef92
s3:libsmb: add cli_state_is_connected() function
...
metze
2010-03-29 18:11:15 +02:00
Volker Lendecke
cae4105c92
s3: Remove unused bitmap_[allocate|free]
2010-03-28 15:25:17 +02:00
Jeremy Allison
fac8ca52ad
Fix bug #7240 - Net usershare is not case sensitive.
...
Updates usershare files in a backwards compatible way.
I don't intend to back port this fix to 3.5.x as it
depends on a version upgrade in the share_info.tdb share security database.
Jeremy.
2010-03-26 17:09:58 -07:00
Günther Deschner
3da91b786e
s3-printing: avoid mixing cups backend code with nt_printing code in cups_pull_comment_location.
...
Guenther
2010-03-26 14:36:46 +01:00
Andrew Tridgell
772839640e
s3-event: switch s3 to using tevent_re_initialise()
...
This correctly initialises the event backend, and checks for errors
(thanks to Metze for suggesting this)
2010-03-26 22:07:50 +11:00
Jeremy Allison
c79ca41baf
Fix bug #7288 - SMB job IDs in CUPS job names wrong.
...
Based on a patch from Michael Karcher <samba@mkarcher.dialup.fu-berlin.de>.
I think this is the correct fix. It causes cups_job_submit to use
print_parse_jobid(), which I've moved into printing/lpq_parse.c (to allow the
link to work).
It turns out the old print_parse_jobid() was *broken*, in that the pjob
filename was set as an absolute path - not relative to the sharename (due to it
not going through the VFS calls).
This meant that the original code doing a strncmp on the first part of the
filename would always fail - it starts with a "/", not the relative pathname of
PRINT_SPOOL_PREFIX ("smbprn.").
This fix could fix some other mysterious printing bugs - probably the ones
Guenther noticed where job control fails on non-cups backends.
Guenther PLEASE CHECK !
Jeremy.
2010-03-25 17:36:47 -07:00
Volker Lendecke
5a88e43c69
s3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdb
...
In the child, we fully re-open serverid.tdb, which leads to one fcntl lock for
CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds
it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
2010-03-25 16:40:44 +01:00
Volker Lendecke
ed189459b9
s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbs
...
The notify tdb files are opened at tconX time, which leads to one fcntl lock
for CLEAR_IF_FIRST detection per smbd. This opens the tdbs in the parent and
holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
2010-03-25 16:40:44 +01:00
Volker Lendecke
4cdbe07b25
s3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdb
...
In the child, we fully re-open messaging.tdb, which leads to one fcntl lock for
CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds
it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
2010-03-25 16:40:44 +01:00
Stefan Metzmacher
3b33fa72d6
s3:ntlmssp: use c99 types
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:57 +01:00
Stefan Metzmacher
dee63fe4ca
s3:ntlmssp: use client.netbios_name instead of workstation
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:56 +01:00
Stefan Metzmacher
2dfc78a41a
s3:ntlmssp: remove unused ntlmssp_set_workstation()
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:56 +01:00
Stefan Metzmacher
9f895ea236
s3:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:56 +01:00
Stefan Metzmacher
8804dc1328
s3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:56 +01:00
Stefan Metzmacher
9172b4a0b1
s3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()
...
Only data needs to be non-const.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:56 +01:00
Stefan Metzmacher
f0e7e94ee1
s3:ntlmssp: make send_seal_key and recv_seal_key local variables
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
ca2a5693bf
s3:ntlmssp: rename void *auth_context; into void *callback_private;
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
7c42c5d8ff
s3:ntlmssp: add some consts
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
7c0ea293f9
s3:ntlmssp: remove unused get_global_myname() and get_domain() from ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
7d977da925
s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
55279dfbe3
s3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* fields also for the client
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:55 +01:00
Stefan Metzmacher
eb17809812
s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:54 +01:00
Stefan Metzmacher
eca118614c
s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:54 +01:00
Stefan Metzmacher
533830543f
s3:ntlmssp: make use of C99 types in ntlmssp_sign.c
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:54 +01:00
Stefan Metzmacher
845f9c01ed
s3:librpc/rpc: move prototypes to dcerpc.h
...
metze
2010-03-23 18:44:31 +01:00
Karolin Seeger
fad0629e78
s3-builtin: Add missing builtin groups.
...
Karolin
2010-03-23 15:24:52 +01:00
Karolin Seeger
ef83c970ca
s3-builtin: Add some builtin groups.
...
Karolin
2010-03-23 11:39:05 +01:00
Jeremy Allison
7509b56b5f
share_info.tdb could use non-canonicalized sharenames.
...
Fix this by moving canonicalization into lib/sharesec.c. Update the
db version to 3. Ensures we always find share names with security
descriptors attached.
Jeremy.
2010-03-22 15:57:31 -07:00
Volker Lendecke
70f9338bf2
s3: Add the "ctdb locktime warn threshold" parameter
...
This is mainly a debugging aid for post-mortem analysis in case a cluster file
system is slow.
2010-03-22 17:32:18 +01:00
Stefan Metzmacher
752240ccdc
s3:param: add "async smb echo handler" option
...
This will enable an extra forked process that will reply
to SMBecho requests, while the main process is blocked by another
request.
metze
2010-03-22 17:15:12 +01:00
Stefan Metzmacher
0b7da43da0
s3:smbd: add an option to skip signings checks srv_check_sign_mac for trusted channels
...
metze
2010-03-22 17:15:10 +01:00
Stefan Metzmacher
048c919dc0
s3:libsmb: add a smb_signing_init_ex() function
...
Make it possible to overload memory handling functions.
metze
2010-03-22 17:15:10 +01:00
Volker Lendecke
b2f45f20b0
s3: Add "log writeable files on exit" parameter
...
This boolean option controls whether at exit time the server dumps a list of
files with debug level 0 that were still open for write. This is an
administrative aid to find the files that were potentially corrupt if the
network connection died.
2010-03-22 12:03:44 +01:00
Volker Lendecke
8195832c6c
s3: file_walk_table -> files_forall
...
This is more in line with the rest of the Samba code, like connections_forall
etc.
2010-03-22 09:30:51 +01:00
Stefan Metzmacher
b82f168c3c
s3:librpc: remove unused stuff
...
metze
2010-03-19 17:05:46 +01:00
Volker Lendecke
2b4ce9a73f
s3: Make login_cache_write take a pointer
2010-03-16 22:35:41 +01:00
Volker Lendecke
276b1aa189
s3: Make login_cache_read take a pointer, avoid a malloc
2010-03-16 22:35:41 +01:00
Volker Lendecke
13a278c1b9
s3: Remove a typedef
2010-03-16 22:35:41 +01:00
Jeremy Allison
c35c38075c
Remove the bool admin_user from conn struct. We no longer look at this to make access decisions.
...
Jeremy.
2010-03-15 15:39:41 -07:00
Jeremy Allison
6b2358e15e
Pass "connection_struct *conn" into functions that currently use "current_user.XXX"
...
Will allow me to replace them with accessor functions.
Jeremy.
2010-03-15 14:49:11 -07:00
Jeremy Allison
5d6610a215
Add accessor functions for current uid, gid, unix token, NT token and vuid.
...
Jeremy.
2010-03-15 14:49:06 -07:00
Jeremy Allison
4b85a0ea7f
Rever e80ceb1d73
"Remove more uses of "extern struct current_user current_user;"."
...
As requested by Volker, split this into smaller commits.
Jeremy.
2010-03-15 14:48:54 -07:00
Volker Lendecke
727fb85782
s3: Remove some unused #defines
2010-03-14 17:42:49 +01:00
Volker Lendecke
6c00a3db24
s3: Remove some unused code
2010-03-14 17:42:49 +01:00