Jeremy Allison [Sat, 14 Mar 2009 00:49:24 +0000 (17:49 -0700)]
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
password talloc'ed strings within the cli_struct.
Jeremy.
Dave Richards [Fri, 13 Mar 2009 21:21:40 +0000 (14:21 -0700)]
s3 OneFS: Add kernel strict locking support
Dave Richards [Fri, 13 Mar 2009 21:15:28 +0000 (14:15 -0700)]
s3: Add strict lock/unlock calls to the vfs layer to replace is_locked
Stefan Metzmacher [Fri, 13 Mar 2009 14:50:23 +0000 (15:50 +0100)]
s4:build: require tevent 0.9.4
metze
Stefan Metzmacher [Fri, 13 Mar 2009 14:49:35 +0000 (15:49 +0100)]
tevent: change version to 0.9.4 as the ABI has changed
metze
Günther Deschner [Thu, 12 Mar 2009 12:00:24 +0000 (13:00 +0100)]
s3-spoolss: remove more unused marshalling code.
Guenther
Günther Deschner [Thu, 12 Mar 2009 11:50:20 +0000 (12:50 +0100)]
s3-spoolss: remove some unused functions.
Guenther
Günther Deschner [Thu, 12 Mar 2009 10:01:18 +0000 (11:01 +0100)]
s3-spoolss: remove old spoolss_GetPrinter.
Guenther
Günther Deschner [Thu, 12 Mar 2009 09:57:13 +0000 (10:57 +0100)]
s3-spoolss: use pidl for _spoolss_GetPrinter.
Guenther
Günther Deschner [Wed, 11 Mar 2009 10:52:34 +0000 (11:52 +0100)]
s3-rpcclient: pure cosmetics for cmd_spoolss_getdriver.
Guenther
Günther Deschner [Wed, 11 Mar 2009 10:52:04 +0000 (11:52 +0100)]
s3-rpcclient: pure cosmetics for cmd_spoolss_getprinter.
Guenther
Günther Deschner [Wed, 11 Mar 2009 10:48:58 +0000 (11:48 +0100)]
s3-rpcclient: pure cosmetics for cmd_spoolss_enum_ports.
Guenther
Günther Deschner [Tue, 10 Mar 2009 23:28:18 +0000 (00:28 +0100)]
s3-spoolss: use snum_is_shared_printer (allows to make code a little easier to
read).
Guenther
Günther Deschner [Tue, 10 Mar 2009 23:27:54 +0000 (00:27 +0100)]
s3-spoolss: add snum_is_shared_printer fn.
Guenther
Günther Deschner [Mon, 9 Mar 2009 23:51:56 +0000 (00:51 +0100)]
s3-spoolss: remove old spoolss_EnumPrinters.
Guenther
Günther Deschner [Mon, 9 Mar 2009 23:51:38 +0000 (00:51 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrinters.
Guenther
Günther Deschner [Mon, 9 Mar 2009 22:36:44 +0000 (23:36 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Mon, 9 Mar 2009 22:36:11 +0000 (23:36 +0100)]
spoolss: flag PrinterInfo union and levels as [public,gensize].
Guenther
Günther Deschner [Mon, 9 Mar 2009 21:48:13 +0000 (22:48 +0100)]
s3-spoolss: remove old enumprinters wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 21:42:30 +0000 (22:42 +0100)]
s3-net: use rpccli_spoolss_enumprinters wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 21:41:43 +0000 (22:41 +0100)]
s3-rpcclient: use rpccli_spoolss_enumprinters wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 21:00:47 +0000 (22:00 +0100)]
s3-spoolss: add rpccli_spoolss_enumprinters convenience wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 20:54:33 +0000 (21:54 +0100)]
s3-spoolss: remove old spoolss_GetPrinterDriver2.
Guenther
Günther Deschner [Mon, 9 Mar 2009 20:21:15 +0000 (21:21 +0100)]
s3-spoolss: use pidl for _spoolss_GetPrinterDriver2.
Guenther
Günther Deschner [Mon, 9 Mar 2009 17:25:52 +0000 (18:25 +0100)]
s3-spoolss: remove old leftover driver print functions.
Guenther
Günther Deschner [Mon, 9 Mar 2009 17:24:58 +0000 (18:24 +0100)]
s3-spoolss: remove old spoolss_EnumPrinterDrivers.
Guenther
Günther Deschner [Mon, 9 Mar 2009 17:23:40 +0000 (18:23 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrinterDrivers.
Guenther
Günther Deschner [Tue, 10 Mar 2009 23:41:25 +0000 (00:41 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Tue, 10 Mar 2009 23:40:56 +0000 (00:40 +0100)]
spoolss: add [gensize] flag to spoolss_DriverInfo union.
Guenther
Günther Deschner [Mon, 9 Mar 2009 17:18:35 +0000 (18:18 +0100)]
s3-spoolss: remove old rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 14:58:11 +0000 (15:58 +0100)]
s3-net: use rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 14:00:29 +0000 (15:00 +0100)]
s3-rpcclient: use rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 13:59:55 +0000 (14:59 +0100)]
s3-spoolss: add rpccli_spoolss_enumprinterdrivers convenience wrapper.
Guenther
Günther Deschner [Mon, 9 Mar 2009 11:33:18 +0000 (12:33 +0100)]
s3-spoolss: remove old spoolss_GetJob and spoolss_EnumJob.
Guenther
Günther Deschner [Mon, 9 Mar 2009 11:24:45 +0000 (12:24 +0100)]
s3-spoolss: use pidl for _spoolss_GetJob.
Guenther
Günther Deschner [Sat, 7 Mar 2009 22:53:11 +0000 (23:53 +0100)]
s3-spoolss: use pidl for _spoolss_EnumJobs.
Guenther
Günther Deschner [Sat, 7 Mar 2009 22:48:36 +0000 (23:48 +0100)]
s3-spoolss: add construct_dev_mode_new.
Guenther
Günther Deschner [Sat, 7 Mar 2009 21:33:33 +0000 (22:33 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Sat, 7 Mar 2009 21:32:45 +0000 (22:32 +0100)]
spoolss: flag spoolss_JobInfo union and structures [public,gensize].
Guenther
Günther Deschner [Sat, 7 Mar 2009 21:31:19 +0000 (22:31 +0100)]
s3-spoolss: remove old rpccli_spoolss_enumjobs wrapper.
Guenther
Günther Deschner [Sat, 7 Mar 2009 21:28:06 +0000 (22:28 +0100)]
s3-rpcclient: use rpccli_spoolss_enumjobs wrapper in enumjobs command.
Guenther
Günther Deschner [Sat, 7 Mar 2009 21:22:42 +0000 (22:22 +0100)]
s3-spoolss: add rpccli_spoolss_enumjobs convenience wrapper.
Guenther
Günther Deschner [Wed, 11 Mar 2009 14:26:12 +0000 (15:26 +0100)]
s3-spoolss: use macros for _spoolss_GetForm and split out level 1 get.
Guenther
Günther Deschner [Wed, 11 Mar 2009 01:16:29 +0000 (02:16 +0100)]
s3-spoolss: use macros for _spoolss_EnumForms and split out level 1 enum.
Guenther
Günther Deschner [Wed, 11 Mar 2009 01:30:36 +0000 (02:30 +0100)]
s3-spoolss: use macros for _spoolss_GetPrintProcessorDirectory.
Guenther
Günther Deschner [Wed, 11 Mar 2009 01:30:12 +0000 (02:30 +0100)]
s3-spoolss: use macros for _spoolss_GetPrinterDriverDirectory.
Guenther
Günther Deschner [Wed, 11 Mar 2009 00:29:23 +0000 (01:29 +0100)]
s3-spoolss: use macros for _spoolss_EnumMonitors.
Guenther
Günther Deschner [Wed, 11 Mar 2009 00:44:21 +0000 (01:44 +0100)]
s3-spoolss: use macros for _spoolss_EnumPrintProcDataTypes.
Guenther
Günther Deschner [Wed, 11 Mar 2009 00:40:33 +0000 (01:40 +0100)]
s3-spoolss: use macros for _spoolss_EnumPorts.
Guenther
Günther Deschner [Wed, 11 Mar 2009 00:38:20 +0000 (01:38 +0100)]
s3-spoolss: use macros for _spoolss_EnumPrintProcessors.
Guenther
Günther Deschner [Tue, 10 Mar 2009 22:55:18 +0000 (23:55 +0100)]
s3-spoolss: add macros from s4 spoolss server.
Guenther
Jeremy Allison [Fri, 13 Mar 2009 00:59:24 +0000 (17:59 -0700)]
Remove the static "struct client_connection" mess which is part of
the problem that stops libsmbclient being thread safe. Subsidiary
DFS connections are now hung off a list inside the cli_state struct.
Much more to do in order to get libsmbclient to thread safety, but
this is a good start.
Jeremy.
Tim Prouty [Thu, 12 Mar 2009 23:51:20 +0000 (16:51 -0700)]
s3 torture: Fix unitialized variable to avoid closing a random fnum
Dan Sledz [Wed, 11 Mar 2009 23:27:01 +0000 (23:27 +0000)]
s3 pdb_wbc_sam: LookupRids should return sAMAccountName, not NT4 names
Also fix an incorrect TALLOC_FREE
Tim Prouty [Thu, 12 Mar 2009 17:44:36 +0000 (10:44 -0700)]
tevent: Fix might be unitialized warning
Jeremy Allison [Thu, 12 Mar 2009 17:57:31 +0000 (10:57 -0700)]
Fix bug #6186 - map readonly does not work
Jeremy.
Günther Deschner [Thu, 12 Mar 2009 10:00:21 +0000 (11:00 +0100)]
s3-spoolss: make jobname a const char * in print_job_start().
Guenther
Stefan Metzmacher [Thu, 12 Mar 2009 13:28:22 +0000 (14:28 +0100)]
s4:build: try to fix the build with the ibm checker in the build-farm
The problem is that the shell eats the quotes in -DFOO="foo, bar, NULL"
metze
Stefan Metzmacher [Thu, 12 Mar 2009 09:35:23 +0000 (10:35 +0100)]
tevent: add tevent_loop_until()
This is only a hack for samba4 and should not be used
in new code.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 09:23:30 +0000 (10:23 +0100)]
tevent: add tevent_loop_set_nesting_hook()
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 09:05:47 +0000 (10:05 +0100)]
s4:events: allow nested events until we fixed all code to avoid them
metze
Stefan Metzmacher [Thu, 12 Mar 2009 09:05:05 +0000 (10:05 +0100)]
s4:ldb: allow nested events until the code is fixed to avoid them
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:51:33 +0000 (09:51 +0100)]
tevent: don't allow nested tevent_loop_once() anymore
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:33:58 +0000 (09:33 +0100)]
s3:events: pass __location__ to event_loop_*()
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:33:26 +0000 (09:33 +0100)]
tevent: pass __location__ to tevent_loop_once/wait()
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:22:41 +0000 (09:22 +0100)]
tevent: add tevent_set_abort_fn()
metze
Stefan Metzmacher [Thu, 12 Mar 2009 07:48:59 +0000 (08:48 +0100)]
tevent: add tevent_signal_support()
Not every tevent backend supports signal events.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 07:19:50 +0000 (08:19 +0100)]
talloc: add talloc_set_abort_fn()
metze
Stefan Metzmacher [Thu, 12 Mar 2009 09:04:02 +0000 (10:04 +0100)]
s4:ldb: setup tevent debug functions on a selfcreated event context
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:02:02 +0000 (09:02 +0100)]
Revert "s3:libsmb: add an option to cli_push to let the caller provide the buffers"
This reverts commit
9579a6f193f570e4ce2af80f4aac7c2f25ae5b22.
It's confusing to have a boolean to alter the behavior of cli_push
and as the new feature isn't used yet I revert it.
We can readd a extra function later.
metze
Volker Lendecke [Mon, 9 Mar 2009 20:50:50 +0000 (21:50 +0100)]
Fix #6167: winbindd -n should disable the winbind idmap cache
Volker Lendecke [Thu, 12 Mar 2009 09:12:58 +0000 (10:12 +0100)]
Make opt_nocache static to winbindd.c
Andrew Tridgell [Thu, 12 Mar 2009 04:20:25 +0000 (15:20 +1100)]
use a base64 encoded password when changing passwords
This avoids problems with embedded control characters in password
changes
Andrew Tridgell [Thu, 12 Mar 2009 04:13:23 +0000 (15:13 +1100)]
fixed more embedded spaces in LDIF
This one added 3 spaces to the end of any new passwords
Andrew Tridgell [Thu, 12 Mar 2009 02:13:14 +0000 (13:13 +1100)]
removed leading spaces from embedded ldif
This fixes the problem with the setpassword command failing like this:
Error: First line of ldif must be a dn not ' dn'
Jeremy Allison [Wed, 11 Mar 2009 21:28:47 +0000 (14:28 -0700)]
Add simple POSIX open, mkdir and rmdir test.
Jeremy.
Tim Prouty [Wed, 11 Mar 2009 18:52:14 +0000 (11:52 -0700)]
s3 torture: Simple warning fix
Björn Jacke [Wed, 11 Mar 2009 07:24:18 +0000 (08:24 +0100)]
fix configure check by avoiding main(main(...))
AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail
on some compilers.
Stefan Metzmacher [Mon, 23 Feb 2009 15:10:42 +0000 (16:10 +0100)]
LDAP-BENCH-CLDAP: also test CLDAP rootdse searches.
metze
Stefan Metzmacher [Wed, 11 Mar 2009 13:28:35 +0000 (14:28 +0100)]
async_sock: fix truncating of the temporary iovec in writev_send/recv()
Volker: please check!
metze
Günther Deschner [Wed, 11 Mar 2009 00:37:30 +0000 (01:37 +0100)]
spoolss: fix typo in spoolss_EnumPrintProcessors_info union helper fn.
Guenther
Günther Deschner [Wed, 11 Mar 2009 00:08:21 +0000 (01:08 +0100)]
spoolss: fix typo in spoolss_EnumJobs_info union helper fn.
Guenther
Stefan Metzmacher [Wed, 11 Mar 2009 07:05:11 +0000 (08:05 +0100)]
lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
This should fix the build on some hosts.
metze
Volker Lendecke [Tue, 10 Mar 2009 17:02:21 +0000 (18:02 +0100)]
Add a vfs_preopen module to hide fs latencies
Brad Hards [Tue, 10 Mar 2009 16:11:39 +0000 (17:11 +0100)]
Update instructions for checking out pidl.
Volker Lendecke [Sat, 14 Feb 2009 12:18:28 +0000 (13:18 +0100)]
Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
I think we eventually need to pass down the debuglevel here.
Stefan Metzmacher [Tue, 10 Mar 2009 13:02:30 +0000 (14:02 +0100)]
tevent: add tevent_req_callback_data_void() macro
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.
metze
Stefan Metzmacher [Tue, 10 Mar 2009 12:54:57 +0000 (13:54 +0100)]
tevent: add tevent_req_received() function
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.
metze
Simo Sorce [Tue, 10 Mar 2009 14:05:52 +0000 (10:05 -0400)]
Fix extended operation return path.
Extended operations return was not going thorugh the same patch as others
leaving the ctx around. Plus we were neutralizing the spy too early so that it
didn't set the request_terminated flag as it should have.
This should hopefully fix the failures in the build farm.
Stefan Metzmacher [Tue, 10 Mar 2009 11:34:20 +0000 (12:34 +0100)]
s3:libsmb: add an option to cli_push to let the caller provide the buffers
metze
Stefan Metzmacher [Tue, 10 Mar 2009 11:32:48 +0000 (12:32 +0100)]
s3:libsmb: only treat a return 0 as end of file
metze
Stefan Metzmacher [Tue, 10 Mar 2009 09:56:33 +0000 (10:56 +0100)]
s3:libsmb: fix a lot of cli_push() bugs
There were the following problems:
1.) if window_size was a multiple of the chunk_size,
we silently dropped the last truncated chunk.
2.) if window_size was 0 pushed only the first chunk
to the server and silently dropped the rest.
3.) we had only transferred state->num_reqs writes,
even if there would be more data to send.
metze
Stefan Metzmacher [Mon, 9 Mar 2009 16:48:08 +0000 (17:48 +0100)]
socket_wrapper: wrap readv() and writev()
metze
Andrew Tridgell [Tue, 10 Mar 2009 05:45:45 +0000 (16:45 +1100)]
fixed a bug in message handling for code the change notify code
The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.
The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.
This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.
This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
Andrew Tridgell [Tue, 10 Mar 2009 04:12:48 +0000 (15:12 +1100)]
added a test that triggers a bug in the Samba3 notify code
The Samba3 internal notify code doesn't work correctly when there is
more than one tree connect to the same smbd process. This change to
the RAW-NOTIFY test triggers the bug.
Simo Sorce [Mon, 9 Mar 2009 22:04:38 +0000 (18:04 -0400)]
Fix potential segfaults using freed memory.
In some code paths ltdb_context was still referenced even after we were returned
an error by one of the callbacks. Because the interface assumes that once an
error is returned the ldb_request may be freed, and because the ltdb_context was
allocated as a child of the request, this might cause access to freed memory.
Allocate the ltdb_context on ldb, and keep track of what's going on with the
request by adding a spy children on it. This way even if the request is freed
before the ltdb_callback is called, we will safely free the ctx and just quietly
return.
Jelmer Vernooij [Mon, 9 Mar 2009 20:49:44 +0000 (21:49 +0100)]
Fix prototype mismatch.
Jelmer Vernooij [Mon, 9 Mar 2009 20:42:13 +0000 (21:42 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Björn Jacke [Mon, 9 Mar 2009 16:28:42 +0000 (17:28 +0100)]
use LIB_PATH_VAR in selftest.sh if we have it
if we have LIB_PATH_VAR we should use it, otherwise we'll unobtrusively
complain about not having it and use the most likely LD_LIBRARY_PATH.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Karolin Seeger [Mon, 9 Mar 2009 15:16:20 +0000 (16:16 +0100)]
s3/packaging: Fix typo in comment.
Karolin