obnox/samba-ctdb.git
15 years agotalloc: add TALLOC_FREE()
Stefan Metzmacher [Mon, 16 Mar 2009 09:13:58 +0000 (10:13 +0100)]
talloc: add TALLOC_FREE()

metze

15 years agos3: only define TALLOC_FREE if needed
Stefan Metzmacher [Mon, 16 Mar 2009 09:13:34 +0000 (10:13 +0100)]
s3: only define TALLOC_FREE if needed

metze
(cherry picked from commit a73bd05eec608d29888286542e9c882039b02857)

15 years agonsswitch: only define TALLOC_FREE if needed
Stefan Metzmacher [Mon, 16 Mar 2009 09:13:08 +0000 (10:13 +0100)]
nsswitch: only define TALLOC_FREE if needed

metze
(cherry picked from commit d0b9cc62f99a1feca68c473f3cd1e93e50ab2eab)

15 years agolib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are...
Stefan Metzmacher [Fri, 13 Mar 2009 09:20:29 +0000 (10:20 +0100)]
lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available

metze
(cherry picked from commit 099d6f05cdb0800114d026786920a17ef649699f)

15 years agoFix a malloc/talloc mismatch when cli_initialise() fails
Volker Lendecke [Sun, 15 Mar 2009 10:58:07 +0000 (11:58 +0100)]
Fix a malloc/talloc mismatch when cli_initialise() fails

15 years agoAdd queue argument to wb_resp_write
Volker Lendecke [Sun, 15 Mar 2009 10:25:20 +0000 (11:25 +0100)]
Add queue argument to wb_resp_write

15 years agos3-spoolss: remove more unused marshalling code.
Günther Deschner [Thu, 12 Mar 2009 12:00:24 +0000 (13:00 +0100)]
s3-spoolss: remove more unused marshalling code.

Guenther
(cherry picked from commit 7a41f299fc079290b17e64a8702cea8da332c227)

15 years agos3-spoolss: remove some unused functions.
Günther Deschner [Thu, 12 Mar 2009 11:50:20 +0000 (12:50 +0100)]
s3-spoolss: remove some unused functions.

Guenther
(cherry picked from commit 0068abe716c32fe02f9925bfdc8ab327d54bb4a7)

15 years agos3-spoolss: remove old spoolss_GetPrinter.
Günther Deschner [Thu, 12 Mar 2009 10:01:18 +0000 (11:01 +0100)]
s3-spoolss: remove old spoolss_GetPrinter.

Guenther
(cherry picked from commit 348c4b6baa2efa5611215a9676ef8fd5e99fbdbd)

15 years agos3-spoolss: use pidl for _spoolss_GetPrinter.
Günther Deschner [Thu, 12 Mar 2009 09:57:13 +0000 (10:57 +0100)]
s3-spoolss: use pidl for _spoolss_GetPrinter.

Guenther
(cherry picked from commit 1ceb298ed62be9a40d1e323003e1a9916d5688db)

15 years agos3-rpcclient: pure cosmetics for cmd_spoolss_getdriver.
Günther Deschner [Wed, 11 Mar 2009 10:52:34 +0000 (11:52 +0100)]
s3-rpcclient: pure cosmetics for cmd_spoolss_getdriver.

Guenther
(cherry picked from commit aaae578d0e5d555a55ea44a02c1a27a20ea314e2)

15 years agos3-rpcclient: pure cosmetics for cmd_spoolss_getprinter.
Günther Deschner [Wed, 11 Mar 2009 10:52:04 +0000 (11:52 +0100)]
s3-rpcclient: pure cosmetics for cmd_spoolss_getprinter.

Guenther
(cherry picked from commit 5d76a12cf50872ce068cbd2b3b50f6690651aa50)

15 years agos3-rpcclient: pure cosmetics for cmd_spoolss_enum_ports.
Günther Deschner [Wed, 11 Mar 2009 10:48:58 +0000 (11:48 +0100)]
s3-rpcclient: pure cosmetics for cmd_spoolss_enum_ports.

Guenther
(cherry picked from commit 0658a402d7117b3daf6b100804e73a011e7ad62c)

15 years agos3-spoolss: use snum_is_shared_printer (allows to make code a little easier to
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
(cherry picked from commit 7e753b28ea6be2ceaef61c4377812a348b650955)

15 years agos3-spoolss: add snum_is_shared_printer fn.
Günther Deschner [Tue, 10 Mar 2009 23:27:54 +0000 (00:27 +0100)]
s3-spoolss: add snum_is_shared_printer fn.

Guenther
(cherry picked from commit 0174d4d3b2a682710ee4ab15c9af67910de53344)

15 years agos3-spoolss: remove old spoolss_EnumPrinters.
Günther Deschner [Mon, 9 Mar 2009 23:51:56 +0000 (00:51 +0100)]
s3-spoolss: remove old spoolss_EnumPrinters.

Guenther
(cherry picked from commit a1a02bfac2e29c9a8da945c767b9b3c5812730f7)

15 years agos3-spoolss: use pidl for _spoolss_EnumPrinters.
Günther Deschner [Mon, 9 Mar 2009 23:51:38 +0000 (00:51 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrinters.

Guenther
(cherry picked from commit f6f703f16ef3b6a061801776e4bcc76fb04ad21a)

15 years agos3: re-run make samba3-idl.
Günther Deschner [Mon, 9 Mar 2009 22:36:44 +0000 (23:36 +0100)]
s3: re-run make samba3-idl.

Guenther
(cherry picked from commit cdcc5a122b6e0ad32787ce0a9c9f02f90388aa4d)

15 years agospoolss: flag PrinterInfo union and levels as [public,gensize].
Günther Deschner [Mon, 9 Mar 2009 22:36:11 +0000 (23:36 +0100)]
spoolss: flag PrinterInfo union and levels as [public,gensize].

Guenther
(cherry picked from commit d0902e29456f5e33fa585952ea4de9cf6589d4b7)

15 years agos3-spoolss: remove old enumprinters wrapper.
Günther Deschner [Mon, 9 Mar 2009 21:48:13 +0000 (22:48 +0100)]
s3-spoolss: remove old enumprinters wrapper.

Guenther
(cherry picked from commit 16438e3a93e9f39d37b6144a1ccba80022bf0b07)

15 years agos3-net: use rpccli_spoolss_enumprinters wrapper.
Günther Deschner [Mon, 9 Mar 2009 21:42:30 +0000 (22:42 +0100)]
s3-net: use rpccli_spoolss_enumprinters wrapper.

Guenther
(cherry picked from commit f14d4267c98a04384f8f84ac8567d3fb7b85ed75)

15 years agos3-rpcclient: use rpccli_spoolss_enumprinters wrapper.
Günther Deschner [Mon, 9 Mar 2009 21:41:43 +0000 (22:41 +0100)]
s3-rpcclient: use rpccli_spoolss_enumprinters wrapper.

Guenther
(cherry picked from commit 0e66a244d3d616b45738424efda0865ca34998a3)

15 years agos3-spoolss: add rpccli_spoolss_enumprinters convenience wrapper.
Günther Deschner [Mon, 9 Mar 2009 21:00:47 +0000 (22:00 +0100)]
s3-spoolss: add rpccli_spoolss_enumprinters convenience wrapper.

Guenther
(cherry picked from commit 9397ae5114acf7e18144a9f700846ba7354a4be2)

15 years agos3-spoolss: remove old spoolss_GetPrinterDriver2.
Günther Deschner [Mon, 9 Mar 2009 20:54:33 +0000 (21:54 +0100)]
s3-spoolss: remove old spoolss_GetPrinterDriver2.

Guenther
(cherry picked from commit 1b3e068e834fb5d99ca7ae9a1daa9fd401b886d5)

15 years agos3-spoolss: use pidl for _spoolss_GetPrinterDriver2.
Günther Deschner [Mon, 9 Mar 2009 20:21:15 +0000 (21:21 +0100)]
s3-spoolss: use pidl for _spoolss_GetPrinterDriver2.

Guenther
(cherry picked from commit 8df8abb8906e5d3bd26fa9f835c820a0c338d027)

15 years agos3-spoolss: remove old leftover driver print functions.
Günther Deschner [Mon, 9 Mar 2009 17:25:52 +0000 (18:25 +0100)]
s3-spoolss: remove old leftover driver print functions.

Guenther
(cherry picked from commit 058f47d08d9ac121fdec9d230b366b5ff0488fce)

15 years agos3-spoolss: remove old spoolss_EnumPrinterDrivers.
Günther Deschner [Mon, 9 Mar 2009 17:24:58 +0000 (18:24 +0100)]
s3-spoolss: remove old spoolss_EnumPrinterDrivers.

Guenther
(cherry picked from commit a540815b5f35ccf9c61cb04c803f76611d1c0f11)

15 years agos3-spoolss: use pidl for _spoolss_EnumPrinterDrivers.
Günther Deschner [Mon, 9 Mar 2009 17:23:40 +0000 (18:23 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrinterDrivers.

Guenther
(cherry picked from commit d6e2ef51ecb430d9dfd7221b6d4a030325d05b4f)

15 years agos3: re-run make samba3-idl.
Günther Deschner [Tue, 10 Mar 2009 23:41:25 +0000 (00:41 +0100)]
s3: re-run make samba3-idl.

Guenther
(cherry picked from commit fab10c6078ec584be543d7bdd62e5ca638811c20)

15 years agospoolss: add [gensize] flag to spoolss_DriverInfo union.
Günther Deschner [Tue, 10 Mar 2009 23:40:56 +0000 (00:40 +0100)]
spoolss: add [gensize] flag to spoolss_DriverInfo union.

Guenther
(cherry picked from commit 86ed4dc89071f74d37cb195dbc9704596962e7f9)

15 years agos3-spoolss: remove old rpccli_spoolss_enumprinterdrivers wrapper.
Günther Deschner [Mon, 9 Mar 2009 17:18:35 +0000 (18:18 +0100)]
s3-spoolss: remove old rpccli_spoolss_enumprinterdrivers wrapper.

Guenther
(cherry picked from commit 6928c5ce47e2ba37f844d030aa06f6b78c6ad64b)

15 years agos3-net: use rpccli_spoolss_enumprinterdrivers wrapper.
Günther Deschner [Mon, 9 Mar 2009 14:58:11 +0000 (15:58 +0100)]
s3-net: use rpccli_spoolss_enumprinterdrivers wrapper.

Guenther
(cherry picked from commit 7876d28d9a738768bfce6050d26d5f6c2668c28d)

15 years agos3-rpcclient: use rpccli_spoolss_enumprinterdrivers wrapper.
Günther Deschner [Mon, 9 Mar 2009 14:00:29 +0000 (15:00 +0100)]
s3-rpcclient: use rpccli_spoolss_enumprinterdrivers wrapper.

Guenther
(cherry picked from commit 915c5939260cfa7c0000e18667f49de2a5f6c175)

15 years agos3-spoolss: add rpccli_spoolss_enumprinterdrivers convenience wrapper.
Günther Deschner [Mon, 9 Mar 2009 13:59:55 +0000 (14:59 +0100)]
s3-spoolss: add rpccli_spoolss_enumprinterdrivers convenience wrapper.

Guenther
(cherry picked from commit 5f465542286f2f6efb770e7ad385f07a46581326)

15 years agos3-spoolss: remove old spoolss_GetJob and spoolss_EnumJob.
Günther Deschner [Mon, 9 Mar 2009 11:33:18 +0000 (12:33 +0100)]
s3-spoolss: remove old spoolss_GetJob and spoolss_EnumJob.

Guenther
(cherry picked from commit e605e4503cbf60560a4022b7cb095e1c8cdad0f4)

15 years agos3-spoolss: use pidl for _spoolss_GetJob.
Günther Deschner [Mon, 9 Mar 2009 11:24:45 +0000 (12:24 +0100)]
s3-spoolss: use pidl for _spoolss_GetJob.

Guenther
(cherry picked from commit 9b143e6de5c40a225c364b9377af52a8c7f6ca23)

15 years agos3-spoolss: use pidl for _spoolss_EnumJobs.
Günther Deschner [Sat, 7 Mar 2009 22:53:11 +0000 (23:53 +0100)]
s3-spoolss: use pidl for _spoolss_EnumJobs.

Guenther
(cherry picked from commit b80e3e572427eae881f38d9726f173952939a8a1)

15 years agos3-spoolss: add construct_dev_mode_new.
Günther Deschner [Sat, 7 Mar 2009 22:48:36 +0000 (23:48 +0100)]
s3-spoolss: add construct_dev_mode_new.

Guenther
(cherry picked from commit 661e81d48c5a2df40bba3b3e40ae432e14ffc4c3)

15 years agos3: re-run make samba3-idl.
Günther Deschner [Sat, 7 Mar 2009 21:33:33 +0000 (22:33 +0100)]
s3: re-run make samba3-idl.

Guenther
(cherry picked from commit fbfd22bce8ad7a56c12c56183f5b3d510817b821)

15 years agospoolss: flag spoolss_JobInfo union and structures [public,gensize].
Günther Deschner [Sat, 7 Mar 2009 21:32:45 +0000 (22:32 +0100)]
spoolss: flag spoolss_JobInfo union and structures [public,gensize].

Guenther
(cherry picked from commit dfe90763c10a2c98847b74d23e42983ec00229bb)

15 years agos3-spoolss: remove old rpccli_spoolss_enumjobs wrapper.
Günther Deschner [Sat, 7 Mar 2009 21:31:19 +0000 (22:31 +0100)]
s3-spoolss: remove old rpccli_spoolss_enumjobs wrapper.

Guenther
(cherry picked from commit 3bd1aabcfe02d411d30c2c62f18923368a4aba9c)

15 years agos3-rpcclient: use rpccli_spoolss_enumjobs wrapper in enumjobs command.
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
(cherry picked from commit d279e76cd22e6028fd236c5eb38bf656ece6634a)

15 years agos3-spoolss: add rpccli_spoolss_enumjobs convenience wrapper.
Günther Deschner [Sat, 7 Mar 2009 21:22:42 +0000 (22:22 +0100)]
s3-spoolss: add rpccli_spoolss_enumjobs convenience wrapper.

Guenther
(cherry picked from commit 80284124ba6eca1ef70216dc9b4b3e4276208300)

15 years agos3-spoolss: use macros for _spoolss_GetForm and split out level 1 get.
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
(cherry picked from commit 427987d2bfae5bd0a259f87ff00e0d1f0a6e8802)

15 years agos3-spoolss: use macros for _spoolss_EnumForms and split out level 1 enum.
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
(cherry picked from commit 635b8070b665473bf067ed71f7240b9707d3ca95)

15 years agos3-spoolss: use macros for _spoolss_GetPrintProcessorDirectory.
Günther Deschner [Wed, 11 Mar 2009 01:30:36 +0000 (02:30 +0100)]
s3-spoolss: use macros for _spoolss_GetPrintProcessorDirectory.

Guenther
(cherry picked from commit b2b3cfbe316d8bb082428f285cc8fb737e3dab87)

15 years agos3-spoolss: use macros for _spoolss_GetPrinterDriverDirectory.
Günther Deschner [Wed, 11 Mar 2009 01:30:12 +0000 (02:30 +0100)]
s3-spoolss: use macros for _spoolss_GetPrinterDriverDirectory.

Guenther
(cherry picked from commit 75d88f460fa9d3a15cc6b31a1c6fe3872512ce54)

15 years agos3-spoolss: use macros for _spoolss_EnumMonitors.
Günther Deschner [Wed, 11 Mar 2009 00:29:23 +0000 (01:29 +0100)]
s3-spoolss: use macros for _spoolss_EnumMonitors.

Guenther
(cherry picked from commit dfe71b05a7e4bd7de99b2e887b588875286ce245)

15 years agos3-spoolss: use macros for _spoolss_EnumPrintProcDataTypes.
Günther Deschner [Wed, 11 Mar 2009 00:44:21 +0000 (01:44 +0100)]
s3-spoolss: use macros for _spoolss_EnumPrintProcDataTypes.

Guenther
(cherry picked from commit 8d6c719a4b032cad746028338f3f263af819b8dd)

15 years agos3-spoolss: use macros for _spoolss_EnumPorts.
Günther Deschner [Wed, 11 Mar 2009 00:40:33 +0000 (01:40 +0100)]
s3-spoolss: use macros for _spoolss_EnumPorts.

Guenther
(cherry picked from commit c6e9dc11e5085baaf7365f72bc06684aeb8d89db)

15 years agos3-spoolss: use macros for _spoolss_EnumPrintProcessors.
Günther Deschner [Wed, 11 Mar 2009 00:38:20 +0000 (01:38 +0100)]
s3-spoolss: use macros for _spoolss_EnumPrintProcessors.

Guenther
(cherry picked from commit facf66b40c6f8919bd78613990959a4f45a5738c)

15 years agos3-spoolss: add macros from s4 spoolss server.
Günther Deschner [Tue, 10 Mar 2009 22:55:18 +0000 (23:55 +0100)]
s3-spoolss: add macros from s4 spoolss server.

Guenther
(cherry picked from commit 84b38c859899d1bffcabdd7cb846c6fe59ad5d3f)

15 years agoFix #3954
Volker Lendecke [Sat, 14 Mar 2009 11:39:55 +0000 (12:39 +0100)]
Fix #3954

15 years agos3: Don't return in a void funtion
Tim Prouty [Sat, 14 Mar 2009 05:01:36 +0000 (22:01 -0700)]
s3: Don't return in a void funtion

15 years agoRemove pwd_cache.c, it was doing nothing. Make user_name, domain, and
Jeremy Allison [Sat, 14 Mar 2009 00:48:28 +0000 (17:48 -0700)]
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
password talloc'ed strings within the cli_struct.
Jeremy.

15 years agos3 OneFS: Add kernel strict locking support
Dave Richards [Fri, 13 Mar 2009 21:21:40 +0000 (14:21 -0700)]
s3 OneFS: Add kernel strict locking support

15 years agos3: Add strict lock/unlock calls to the vfs layer to replace is_locked
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

15 years agoRemove the static "struct client_connection" mess which is part of
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.

15 years agos3 torture: Fix unitialized variable to avoid closing a random fnum
Tim Prouty [Thu, 12 Mar 2009 23:51:20 +0000 (16:51 -0700)]
s3 torture: Fix unitialized variable to avoid closing a random fnum

15 years agos3 pdb_wbc_sam: LookupRids should return sAMAccountName, not NT4 names
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

15 years agotevent: Fix might be unitialized warning
Tim Prouty [Thu, 12 Mar 2009 17:44:36 +0000 (10:44 -0700)]
tevent: Fix might be unitialized warning

15 years agoFix bug #6186 - map readonly does not work
Jeremy Allison [Thu, 12 Mar 2009 17:57:31 +0000 (10:57 -0700)]
Fix bug #6186 - map readonly does not work
Jeremy.

15 years agos3-spoolss: make jobname a const char * in print_job_start().
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

15 years agos4:build: try to fix the build with the ibm checker in the build-farm
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

15 years agotevent: add tevent_loop_until()
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

15 years agotevent: add tevent_loop_set_nesting_hook()
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

15 years agos4:events: allow nested events until we fixed all code to avoid them
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

15 years agos4:ldb: allow nested events until the code is fixed to avoid them
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

15 years agotevent: don't allow nested tevent_loop_once() anymore
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

15 years agos3:events: pass __location__ to event_loop_*()
Stefan Metzmacher [Thu, 12 Mar 2009 08:33:58 +0000 (09:33 +0100)]
s3:events: pass __location__ to event_loop_*()

metze

15 years agotevent: pass __location__ to tevent_loop_once/wait()
Stefan Metzmacher [Thu, 12 Mar 2009 08:33:26 +0000 (09:33 +0100)]
tevent: pass __location__ to tevent_loop_once/wait()

metze

15 years agotevent: add tevent_set_abort_fn()
Stefan Metzmacher [Thu, 12 Mar 2009 08:22:41 +0000 (09:22 +0100)]
tevent: add tevent_set_abort_fn()

metze

15 years agotevent: add tevent_signal_support()
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

15 years agotalloc: add talloc_set_abort_fn()
Stefan Metzmacher [Thu, 12 Mar 2009 07:19:50 +0000 (08:19 +0100)]
talloc: add talloc_set_abort_fn()

metze

15 years agos4:ldb: setup tevent debug functions on a selfcreated event context
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

15 years agoRevert "s3:libsmb: add an option to cli_push to let the caller provide the buffers"
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

15 years agoFix #6167: winbindd -n should disable the winbind idmap cache
Volker Lendecke [Mon, 9 Mar 2009 20:50:50 +0000 (21:50 +0100)]
Fix #6167: winbindd -n should disable the winbind idmap cache

15 years agoMake opt_nocache static to winbindd.c
Volker Lendecke [Thu, 12 Mar 2009 09:12:58 +0000 (10:12 +0100)]
Make opt_nocache static to winbindd.c

15 years agouse a base64 encoded password when changing passwords
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

15 years agofixed more embedded spaces in LDIF
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

15 years agoremoved leading spaces from embedded ldif
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'

15 years agoAdd simple POSIX open, mkdir and rmdir test.
Jeremy Allison [Wed, 11 Mar 2009 21:28:47 +0000 (14:28 -0700)]
Add simple POSIX open, mkdir and rmdir test.
Jeremy.

15 years agos3 torture: Simple warning fix
Tim Prouty [Wed, 11 Mar 2009 18:52:14 +0000 (11:52 -0700)]
s3 torture: Simple warning fix

15 years agofix configure check by avoiding main(main(...))
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.

15 years agoLDAP-BENCH-CLDAP: also test CLDAP rootdse searches.
Stefan Metzmacher [Mon, 23 Feb 2009 15:10:42 +0000 (16:10 +0100)]
LDAP-BENCH-CLDAP: also test CLDAP rootdse searches.

metze

15 years agoasync_sock: fix truncating of the temporary iovec in writev_send/recv()
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

15 years agospoolss: fix typo in spoolss_EnumPrintProcessors_info union helper fn.
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

15 years agospoolss: fix typo in spoolss_EnumJobs_info union helper fn.
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

15 years agolib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
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

15 years agoAdd a vfs_preopen module to hide fs latencies
Volker Lendecke [Tue, 10 Mar 2009 17:02:21 +0000 (18:02 +0100)]
Add a vfs_preopen module to hide fs latencies

15 years agoUpdate instructions for checking out pidl.
Brad Hards [Tue, 10 Mar 2009 16:11:39 +0000 (17:11 +0100)]
Update instructions for checking out pidl.

15 years agoDon't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
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.

15 years agotevent: add tevent_req_callback_data_void() macro
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

15 years agotevent: add tevent_req_received() function
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

15 years agoFix extended operation return path.
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.

15 years agos3:libsmb: add an option to cli_push to let the caller provide the buffers
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

15 years agos3:libsmb: only treat a return 0 as end of file
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

15 years agos3:libsmb: fix a lot of cli_push() bugs
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

15 years agosocket_wrapper: wrap readv() and writev()
Stefan Metzmacher [Mon, 9 Mar 2009 16:48:08 +0000 (17:48 +0100)]
socket_wrapper: wrap readv() and writev()

metze

15 years agofixed a bug in message handling for code the change notify code
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