ira/wip.git
11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema
Andrew Bartlett [Sun, 8 Mar 2009 05:16:11 +0000 (16:16 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema

11 years agoShape up pdb_search a bit by making it a talloc ctx with a destructor
Volker Lendecke [Thu, 12 Feb 2009 16:48:52 +0000 (17:48 +0100)]
Shape up pdb_search a bit by making it a talloc ctx with a destructor

11 years agoFix a smbclient segfault against security=share servers
Volker Lendecke [Fri, 6 Mar 2009 13:24:59 +0000 (14:24 +0100)]
Fix a smbclient segfault against security=share servers

11 years agoFix some nonempty blank lines
Volker Lendecke [Tue, 3 Mar 2009 13:05:56 +0000 (14:05 +0100)]
Fix some nonempty blank lines

11 years agos4-spoolss: just return OK for dcesrv_spoolss_EnumPrintProcDataTypes for now.
Günther Deschner [Sat, 7 Mar 2009 08:30:11 +0000 (09:30 +0100)]
s4-spoolss: just return OK for dcesrv_spoolss_EnumPrintProcDataTypes for now.

Guenther

11 years agodon't rely on shebang's perl path, call our $PERL instead
Björn Jacke [Wed, 4 Mar 2009 15:52:12 +0000 (16:52 +0100)]
don't rely on shebang's perl path, call our $PERL instead

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3-spoolss: remove more leftovers from old enumports call.
Günther Deschner [Sat, 7 Mar 2009 00:12:18 +0000 (01:12 +0100)]
s3-spoolss: remove more leftovers from old enumports call.

Guenther

11 years agos3-rpcclient: add enummonitors command to enumerate print monitors.
Günther Deschner [Fri, 6 Mar 2009 23:16:10 +0000 (00:16 +0100)]
s3-rpcclient: add enummonitors command to enumerate print monitors.

Guenther

11 years agos3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.
Günther Deschner [Fri, 6 Mar 2009 23:10:15 +0000 (00:10 +0100)]
s3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.

Guenther

11 years agos3-spoolss: remove old spoolss_EnumMonitors.
Günther Deschner [Fri, 6 Mar 2009 23:04:48 +0000 (00:04 +0100)]
s3-spoolss: remove old spoolss_EnumMonitors.

Guenther

11 years agos3-spoolss: use pidl for _spoolss_EnumMonitors.
Günther Deschner [Fri, 6 Mar 2009 23:04:05 +0000 (00:04 +0100)]
s3-spoolss: use pidl for _spoolss_EnumMonitors.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 6 Mar 2009 23:01:11 +0000 (00:01 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: flag spoolss_MonitorInfo structs [public,gensize].
Günther Deschner [Fri, 6 Mar 2009 23:00:27 +0000 (00:00 +0100)]
spoolss: flag spoolss_MonitorInfo structs [public,gensize].

Guenther

11 years agos3-rpcclient: use rpccli_spoolss_enumports wrapper.
Günther Deschner [Fri, 6 Mar 2009 22:36:31 +0000 (23:36 +0100)]
s3-rpcclient: use rpccli_spoolss_enumports wrapper.

Guenther

11 years agos3-spoolss: add rpccli_spoolss_enumports convenience wrapper.
Günther Deschner [Fri, 6 Mar 2009 22:27:45 +0000 (23:27 +0100)]
s3-spoolss: add rpccli_spoolss_enumports convenience wrapper.

Guenther

11 years agos3-spoolss: remove old spoolss_EnumPorts.
Günther Deschner [Fri, 6 Mar 2009 22:39:23 +0000 (23:39 +0100)]
s3-spoolss: remove old spoolss_EnumPorts.

Guenther

11 years agos3-spoolss: use pidl for _spoolss_EnumPorts.
Günther Deschner [Fri, 6 Mar 2009 22:38:57 +0000 (23:38 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPorts.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 6 Mar 2009 22:37:42 +0000 (23:37 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: flag spoolss_PortInfo structs as [public,gensize].
Günther Deschner [Fri, 6 Mar 2009 22:37:14 +0000 (23:37 +0100)]
spoolss: flag spoolss_PortInfo structs as [public,gensize].

Guenther

11 years agos3-rpcclient: add enumprocdatatypes command to enumerate print processor data
Günther Deschner [Fri, 6 Mar 2009 23:55:15 +0000 (00:55 +0100)]
s3-rpcclient: add enumprocdatatypes command to enumerate print processor data
types.

Guenther

11 years agos3-spoolss: add rpccli_spoolss_enumprintprocessordatatypes convenience wrapper.
Günther Deschner [Fri, 6 Mar 2009 21:22:49 +0000 (22:22 +0100)]
s3-spoolss: add rpccli_spoolss_enumprintprocessordatatypes convenience wrapper.

Guenther

11 years agos3-spoolss: remove old spoolss_EnumPrintProcDataTypes.
Günther Deschner [Fri, 6 Mar 2009 20:51:52 +0000 (21:51 +0100)]
s3-spoolss: remove old spoolss_EnumPrintProcDataTypes.

Guenther

11 years agos3-spoolss: use pidl for _spoolss_EnumPrintProcDataTypes.
Günther Deschner [Fri, 6 Mar 2009 20:51:12 +0000 (21:51 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrintProcDataTypes.

Guenther

11 years agos3-rpcclient: add enumprocs command to enumerate print processors.
Günther Deschner [Fri, 6 Mar 2009 21:11:09 +0000 (22:11 +0100)]
s3-rpcclient: add enumprocs command to enumerate print processors.

Guenther

11 years agos3-spoolss: add rpccli_spoolss_enumprintprocessors convenience wrapper.
Günther Deschner [Fri, 6 Mar 2009 21:09:47 +0000 (22:09 +0100)]
s3-spoolss: add rpccli_spoolss_enumprintprocessors convenience wrapper.

Guenther

11 years agos3-spoolss: remove old spoolss_EnumPrintProcessors.
Günther Deschner [Fri, 6 Mar 2009 19:23:27 +0000 (20:23 +0100)]
s3-spoolss: remove old spoolss_EnumPrintProcessors.

Guenther

11 years agos3-spoolss: use pidl for _spoolss_EnumPrintProcessors.
Günther Deschner [Fri, 6 Mar 2009 19:22:17 +0000 (20:22 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrintProcessors.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 6 Mar 2009 19:21:31 +0000 (20:21 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: flag spoolss_PrintProcessorInfo1 [public,gensize].
Günther Deschner [Fri, 6 Mar 2009 19:20:51 +0000 (20:20 +0100)]
spoolss: flag spoolss_PrintProcessorInfo1 [public,gensize].

Guenther

11 years agos4-smbtorture: add test_EnumPrintProcDataTypes to RPC-SPOOLSS test.
Günther Deschner [Fri, 6 Mar 2009 20:50:15 +0000 (21:50 +0100)]
s4-smbtorture: add test_EnumPrintProcDataTypes to RPC-SPOOLSS test.

Guenther

11 years agospoolss: add spoolss_EnumPrintProcDataTypes to enum macro helper.
Günther Deschner [Fri, 6 Mar 2009 20:49:31 +0000 (21:49 +0100)]
spoolss: add spoolss_EnumPrintProcDataTypes to enum macro helper.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 6 Mar 2009 20:48:46 +0000 (21:48 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: fill in spoolss_EnumPrintProcDataTypes IDL.
Günther Deschner [Fri, 6 Mar 2009 20:48:01 +0000 (21:48 +0100)]
spoolss: fill in spoolss_EnumPrintProcDataTypes IDL.

Guenther

11 years agos3:make_test: run CHAIN1 test
Stefan Metzmacher [Fri, 6 Mar 2009 15:27:10 +0000 (16:27 +0100)]
s3:make_test: run CHAIN1 test

metze

11 years agos3:libsmb: merge cli_setup_signing_state() into cli_initialise_ex()
Stefan Metzmacher [Fri, 6 Mar 2009 11:01:44 +0000 (12:01 +0100)]
s3:libsmb: merge cli_setup_signing_state() into cli_initialise_ex()

metze

11 years agos3:libsmb: remove cli_setup_signing_state() and add struct cli_state *cli_initialise_ex()
Stefan Metzmacher [Fri, 6 Mar 2009 10:52:15 +0000 (11:52 +0100)]
s3:libsmb: remove cli_setup_signing_state() and add struct cli_state *cli_initialise_ex()

This prepares the next changes.

metze

11 years agos3:winbindd_cm: remove useless cli_setup_signing_state(*cli, Undefined) call
Stefan Metzmacher [Fri, 6 Mar 2009 10:40:21 +0000 (11:40 +0100)]
s3:winbindd_cm: remove useless cli_setup_signing_state(*cli, Undefined) call

cli_setup_signing_state() with Undefined is a noop.

metze

11 years agos3:signing: the seqnum should only be decremented by 1 for ntcancel requests
Stefan Metzmacher [Fri, 6 Mar 2009 06:45:06 +0000 (07:45 +0100)]
s3:signing: the seqnum should only be decremented by 1 for ntcancel requests

[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum
is incremented by only for ntcancel requests for any other
request it's by incremented by 2, even if it doesn't expect
a response.

metze

11 years agos3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mapping
Stefan Metzmacher [Fri, 6 Mar 2009 06:38:41 +0000 (07:38 +0100)]
s3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mapping

If someone knows a better dos error, please tell me...

metze

11 years agos3:libsmb: smb signing works the same for extented and non-extended security
Stefan Metzmacher [Fri, 6 Mar 2009 15:18:50 +0000 (16:18 +0100)]
s3:libsmb: smb signing works the same for extented and non-extended security

This is only cosmetic, but it makes it easier to understand.

metze

11 years agos3-spoolss: Fix Coverity ID #891 (UNINIT).
Günther Deschner [Fri, 6 Mar 2009 13:58:49 +0000 (14:58 +0100)]
s3-spoolss: Fix Coverity ID #891 (UNINIT).

Guenther

11 years agos3-spoolss: remove old _spoolss_EnumForms.
Günther Deschner [Fri, 6 Mar 2009 11:04:47 +0000 (12:04 +0100)]
s3-spoolss: remove old _spoolss_EnumForms.

Guenther

11 years agos3-spoolss: use form flags from idl in rpcclient and net.
Günther Deschner [Fri, 6 Mar 2009 11:01:54 +0000 (12:01 +0100)]
s3-spoolss: use form flags from idl in rpcclient and net.

Guenther

11 years agos3-spoolss: use pidl for _spoolss_EnumForms.
Günther Deschner [Fri, 6 Mar 2009 11:01:14 +0000 (12:01 +0100)]
s3-spoolss: use pidl for _spoolss_EnumForms.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 6 Mar 2009 13:24:20 +0000 (14:24 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: flag spoolss_FormInfo1 and 2 with [public,gensize].
Günther Deschner [Fri, 6 Mar 2009 11:05:25 +0000 (12:05 +0100)]
spoolss: flag spoolss_FormInfo1 and 2 with [public,gensize].

Guenther

11 years agos3-spoolss: remove old rpccli_spoolss_enumforms.
Günther Deschner [Fri, 6 Mar 2009 09:55:09 +0000 (10:55 +0100)]
s3-spoolss: remove old rpccli_spoolss_enumforms.

Guenther

11 years agos3-net: use new rpccli_spoolss_enumforms wrapper.
Günther Deschner [Fri, 6 Mar 2009 10:02:27 +0000 (11:02 +0100)]
s3-net: use new rpccli_spoolss_enumforms wrapper.

Guenther

11 years agos3-rpcclient: use new rpccli_spoolss_enumforms wrapper.
Günther Deschner [Fri, 6 Mar 2009 09:55:41 +0000 (10:55 +0100)]
s3-rpcclient: use new rpccli_spoolss_enumforms wrapper.

Guenther

11 years agos3-spoolss: add convencience wrapper around rpccli_spoolss_EnumForms.
Günther Deschner [Fri, 6 Mar 2009 09:54:19 +0000 (10:54 +0100)]
s3-spoolss: add convencience wrapper around rpccli_spoolss_EnumForms.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 6 Mar 2009 13:23:44 +0000 (14:23 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: fix [size_is] declaration for enum calls.
Günther Deschner [Thu, 5 Mar 2009 17:35:47 +0000 (18:35 +0100)]
spoolss: fix [size_is] declaration for enum calls.

This took me ages to find. Thanks metze!

Guenther

11 years agos4-spoolss: fix spoolss server enum calls after pointer changes.
Günther Deschner [Mon, 2 Mar 2009 17:02:04 +0000 (18:02 +0100)]
s4-spoolss: fix spoolss server enum calls after pointer changes.

Guenther

11 years agos4-smbtorture: exit early in test_EnumPorts when no port info has been returned.
Günther Deschner [Fri, 6 Mar 2009 11:24:23 +0000 (12:24 +0100)]
s4-smbtorture: exit early in test_EnumPorts when no port info has been returned.

Guenther

11 years agos4-smbtorture: fix s3 flavor rpc spoolss test.
Günther Deschner [Fri, 6 Mar 2009 11:20:14 +0000 (12:20 +0100)]
s4-smbtorture: fix s3 flavor rpc spoolss test.

Guenther

11 years agos4-smbtorture: fix RPC-SPOOLSS-WIN.
Günther Deschner [Mon, 2 Mar 2009 16:58:13 +0000 (17:58 +0100)]
s4-smbtorture: fix RPC-SPOOLSS-WIN.

Guenther

11 years agos4-smbtorture: fix RPC-SPOOLSS test after enum out info pointer changes.
Günther Deschner [Mon, 2 Mar 2009 16:32:24 +0000 (17:32 +0100)]
s4-smbtorture: fix RPC-SPOOLSS test after enum out info pointer changes.

Guenther

11 years agospoolss: fix spoolss enum calls helper macro code after pointer changes.
Günther Deschner [Fri, 6 Mar 2009 12:52:39 +0000 (13:52 +0100)]
spoolss: fix spoolss enum calls helper macro code after pointer changes.

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Mon, 2 Mar 2009 16:31:29 +0000 (17:31 +0100)]
s3: re-run make samba3-idl.

Guenther

11 years agospoolss: make all enum out info pointers a pointer to an array.
Günther Deschner [Mon, 2 Mar 2009 16:29:15 +0000 (17:29 +0100)]
spoolss: make all enum out info pointers a pointer to an array.

Without this we never can get a reasonable s3 cli_spoolss fn for the enum calls.

Guenther

11 years agos4:errormap: map ECANCELED to NT_STATUS_CANCELLED
Stefan Metzmacher [Fri, 6 Mar 2009 06:15:13 +0000 (07:15 +0100)]
s4:errormap: map ECANCELED to NT_STATUS_CANCELLED

metze

11 years agoGet the sense of the integer wrap test the right way around. Sorry.
Jeremy Allison [Fri, 6 Mar 2009 06:00:22 +0000 (22:00 -0800)]
Get the sense of the integer wrap test the right way around. Sorry.
Jeremy.

11 years agoNow we're allowing a lower bound for auth_len, ensure we
Jeremy Allison [Fri, 6 Mar 2009 05:06:48 +0000 (21:06 -0800)]
Now we're allowing a lower bound for auth_len, ensure we
also check for an upper one (integer wrap).
Jeremy.

11 years agoFix bug #6161 - smbclient corrupts source path in tar mode
Jeremy Allison [Fri, 6 Mar 2009 01:19:18 +0000 (17:19 -0800)]
Fix bug #6161 - smbclient corrupts source path in tar mode
This was my fault. I broke the smbclient tar argument processing
in creating the string for chdir when removing pstrings.
Jeremy.

11 years agoLoad the schema with a more efficient single search
Andrew Bartlett [Fri, 6 Mar 2009 01:18:21 +0000 (12:18 +1100)]
Load the schema with a more efficient single search

This search uses the index, and is not recursive, so should avoid the
major performance problem with the current sorted schema load.

The ad2oLschema code (recently moved to provision-backend) no longer
needs the schema to be sorted.

Andrew Bartlett

11 years agoLoad the schema for provision-backend in a transaction
Andrew Bartlett [Fri, 6 Mar 2009 01:14:08 +0000 (12:14 +1100)]
Load the schema for provision-backend in a transaction

Loading data in a transaction is faster than without.

Andrew Bartlett

11 years agoSort output of schema for OpenLDAP during conversion
Andrew Bartlett [Fri, 6 Mar 2009 01:12:24 +0000 (12:12 +1100)]
Sort output of schema for OpenLDAP during conversion

This avoids the need to assume that the schema is sorted on load,
which happens more often and is a major performace issue in the
Samba4's use of ldb.

Andrew Bartlett

11 years agoLast part of fix for #6154 - zfs does not honor admin users.
Jeremy Allison [Thu, 5 Mar 2009 23:18:18 +0000 (15:18 -0800)]
Last part of fix for #6154 - zfs does not honor admin users.
Jeremy.

11 years agoComplete the fix for bug 6100
Volker Lendecke [Thu, 5 Mar 2009 21:20:55 +0000 (22:20 +0100)]
Complete the fix for bug 6100

According to [MS-RPCE].pdf, section 2.2.2.11:

----
A client or a server that (during composing of a PDU) has allocated more space
for the authentication token than the security provider fills in SHOULD fill in
the rest of the allocated space with zero octets. These zero octets are still
considered to belong to the authentication token part of the PDU.<36>
----

RPC implementations are allowed to send padding bytes at the end of an auth
footer. Windows 7 makes use of this.

Thanks to Nick Meier <nmeier@microsoft.com>

Volker

11 years agoFix bug #6160 - Office 2007 fails saving files to a Samba mapped drive.
Jeremy Allison [Thu, 5 Mar 2009 17:04:16 +0000 (09:04 -0800)]
Fix bug #6160 - Office 2007 fails saving files to a Samba mapped drive.
Confirmed by reporters.
Jeremy.

11 years agoAllow ms_schema.py to produce output much like minschema_wspp
Sreepathi Pai [Thu, 5 Mar 2009 06:03:13 +0000 (17:03 +1100)]
Allow ms_schema.py to produce output much like minschema_wspp

I've patched the new ms_schema.py (which was intended to be used as a
library) to function as minschema_wspp if invoked standalone. Although
this is less robust than minschema_wspp on incorrect data, having two
programs doing the same thing might not be good idea.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agoRemove ad2oLschema, insted call it directly from provision-backend
Andrew Bartlett [Thu, 5 Mar 2009 05:52:11 +0000 (16:52 +1100)]
Remove ad2oLschema, insted call it directly from provision-backend

This removes a level of indirection via external binaries in the
provision-backend code, and also makes better use of our internal code
for loading schema from an LDIF file.

Remaining to do: Sort the output again, as the load from LDIF is
unsorted (also needed because the normal LDB load from sorted input is too slow
anyway, and is only needed here).

Andrew Bartlett

11 years agolibrpc: Re-run make idl_full from source3
Tim Prouty [Thu, 5 Mar 2009 02:29:18 +0000 (18:29 -0800)]
librpc: Re-run make idl_full from source3

11 years agopidl: Don't generate variables declarations for pointless array counters.
Tim Prouty [Tue, 3 Mar 2009 21:04:14 +0000 (13:04 -0800)]
pidl: Don't generate variables declarations for pointless array counters.

Code isn't generated to iterate over arrays of length 0, but the
variable declarations still are.  The result is 'unused variable'
warnings. This only seems to be happening in one place right now, so I
targeted the fix to this case, but refactoring could be done to make
all variable declarations do this zero length check.  Making it the
default would be a much more invasive fix.

Jelmer, please check!

11 years agos3 OneFS: Use the public open_streams_for_delete
Tim Prouty [Wed, 4 Mar 2009 03:27:50 +0000 (19:27 -0800)]
s3 OneFS: Use the public open_streams_for_delete

11 years agos3: Change open_streams_for_delete to call through the vfs layer
Tim Prouty [Wed, 4 Mar 2009 03:23:33 +0000 (19:23 -0800)]
s3: Change open_streams_for_delete to call through the vfs layer

This eliminates the last direct caller of create_file_unixpath

11 years agoFix careless mistake in winbindd_setup_sig_usr2_handler
Bo Yang [Thu, 5 Mar 2009 01:26:57 +0000 (17:26 -0800)]
Fix careless mistake in winbindd_setup_sig_usr2_handler

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema
Andrew Bartlett [Thu, 5 Mar 2009 01:24:35 +0000 (12:24 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema

11 years agoSecond part of fix for #6154, ensure we return max access
Jeremy Allison [Thu, 5 Mar 2009 01:17:43 +0000 (17:17 -0800)]
Second part of fix for #6154, ensure we return max access
if admin user.
Jeremy.

11 years agoFix bug #6154 - zfs does not honor admin users.
Jeremy Allison [Thu, 5 Mar 2009 00:57:37 +0000 (16:57 -0800)]
Fix bug #6154 - zfs does not honor admin users.
Jeremy

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Andrew Bartlett [Thu, 5 Mar 2009 00:11:19 +0000 (11:11 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel

11 years agoRemove parse_control from header, long after the function was removed
Andrew Bartlett [Thu, 5 Mar 2009 00:07:35 +0000 (11:07 +1100)]
Remove parse_control from header, long after the function was removed

Simo reminded me that when (long ago) I moved parse_controls away from
this place, I forgot to update the manually maintained header file.

Andrew Bartlett

11 years agoUpdate talloc version so we don't fail on system talloc 1.2.0
Andrew Bartlett [Wed, 4 Mar 2009 23:46:46 +0000 (10:46 +1100)]
Update talloc version so we don't fail on system talloc 1.2.0

The problem is that talloc in the Samba tree now includes
talloc_get_type_abort(), which is not present on Fedora 10 or ubuntu's
talloc 1.2.0.

Andrew Bartlett

11 years agoFix crashes when running RAW-ACLs against system with tdb ACL modules
Jeremy Allison [Wed, 4 Mar 2009 22:48:33 +0000 (14:48 -0800)]
Fix crashes when running RAW-ACLs against system with tdb ACL modules
(caused by the POSIX pathname fixes).
Jeremy.

11 years agos3:dbwrap_ctdb_marshall_add: don't leak the ctdb_rec_data to the outside
Michael Adam [Wed, 4 Mar 2009 21:05:17 +0000 (22:05 +0100)]
s3:dbwrap_ctdb_marshall_add: don't leak the ctdb_rec_data to the outside

Michael

11 years agos3:smbconf: move smbconf_share_exists checks into backend
Michael Adam [Wed, 4 Mar 2009 21:02:07 +0000 (22:02 +0100)]
s3:smbconf: move smbconf_share_exists checks into backend

Michael

11 years agos3:net conf: reduce memory usage of "net conf import".
Michael Adam [Wed, 4 Mar 2009 20:46:32 +0000 (21:46 +0100)]
s3:net conf: reduce memory usage of "net conf import".

"net conf import" was wrapped in one big transaction.
This lead to MAX_TALLOC_SIZE being exceeded at roughly
1500 shares. This patch resolves that problem by
limiting the top level transactions in "net conf import"
to 100 shares.

Michael

11 years agosocket wrapper: Fix 'might be used uninitialized' warning
Tim Prouty [Wed, 4 Mar 2009 20:59:16 +0000 (12:59 -0800)]
socket wrapper: Fix 'might be used uninitialized' warning

11 years agos3: Remove madvise support
Steven Danneman [Wed, 4 Mar 2009 19:04:31 +0000 (11:04 -0800)]
s3: Remove madvise support

This reverts 193be432.  The MADVISE_PROTECT is inherited by all child
processes and cannot be unset.  The intention of the original patch was
to protect the parent process, but allow children to be killed in low
memory.  Since this isn't possible with the current API, reverting the
whole feature.

11 years agoAttempt to fix the build on IRIX
Volker Lendecke [Wed, 4 Mar 2009 11:21:26 +0000 (12:21 +0100)]
Attempt to fix the build on IRIX

11 years agoMake use of gpfs_get_real_filename optional
Volker Lendecke [Mon, 2 Mar 2009 13:56:01 +0000 (14:56 +0100)]
Make use of gpfs_get_real_filename optional

11 years agos3: Fix a memleak in dbwrap_rbt.
Michael Adam [Fri, 27 Feb 2009 14:28:52 +0000 (15:28 +0100)]
s3: Fix a memleak in dbwrap_rbt.

The SMB_MALLOC'ed rbt node data was not free'd on talloc free of
the db context. This is a quick fix using talloc instead of malloc
for allocation of the node data.

Since malloc was originally used for performance reasons, one
might want to reverse to malloc and create a talloc destructor
that walks the tree and frees all the node data if this talloc
approach proves to be too slow..

Michael

11 years agosocket_wrapper: add multiple interface support for ipv6
Stefan Metzmacher [Tue, 3 Mar 2009 15:45:41 +0000 (16:45 +0100)]
socket_wrapper: add multiple interface support for ipv6

We use FD00::5357:5FXX in the same way we use 127.0.0.XX

metze

11 years agosocket_wrapper: add ipv6 pcap support
Stefan Metzmacher [Tue, 3 Mar 2009 14:43:22 +0000 (15:43 +0100)]
socket_wrapper: add ipv6 pcap support

metze

11 years agosocket_wrapper: pass down sockaddr instead of sockaddr_in to prepare pcap support...
Stefan Metzmacher [Tue, 3 Mar 2009 14:17:26 +0000 (15:17 +0100)]
socket_wrapper: pass down sockaddr instead of sockaddr_in to prepare pcap support for ipv6

metze

11 years agosocket_wrapper: prepare pcap support for ipv6 traffic
Stefan Metzmacher [Tue, 3 Mar 2009 13:58:53 +0000 (14:58 +0100)]
socket_wrapper: prepare pcap support for ipv6 traffic

metze

11 years agos4:blackbox/test_ldb: make use of the $VALGRIND envvar
Stefan Metzmacher [Tue, 3 Mar 2009 18:23:25 +0000 (19:23 +0100)]
s4:blackbox/test_ldb: make use of the $VALGRIND envvar

metze

11 years agosocket_wrapper: don't crash if we get EAGAIN from real_recv()
Stefan Metzmacher [Tue, 3 Mar 2009 18:20:43 +0000 (19:20 +0100)]
socket_wrapper: don't crash if we get EAGAIN from real_recv()

This fixes a crash in the ldaps tests with socket wrapper pcap support.

metze

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Andrew Bartlett [Wed, 4 Mar 2009 03:10:41 +0000 (14:10 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel

11 years agoPull in all the schema information during DRS schema fetch
Andrew Bartlett [Wed, 4 Mar 2009 03:06:11 +0000 (14:06 +1100)]
Pull in all the schema information during DRS schema fetch

This includes things such as allowed attributes, which were not
populated into the schema structure before.

Andrew Bartlett