obnox/samba-ctdb.git
12 years agov3-6-ctdb: bump vendor patch level to 14 3.6.0rc2-ctdb-14
Michael Adam [Tue, 21 Jun 2011 15:45:49 +0000 (17:45 +0200)]
v3-6-ctdb: bump vendor patch level to 14

12 years agov3-6-ctdb: VERSION bump vendor patch level to 13
Michael Adam [Thu, 9 Jun 2011 15:16:53 +0000 (17:16 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 13

12 years agov3-6-ctdb: VERSION bump vendor patch level to 12
Michael Adam [Wed, 30 Mar 2011 14:40:48 +0000 (16:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 12

12 years agov3-6-ctdb: VERSION bump vendor patch level to 11
Volker Lendecke [Mon, 16 May 2011 09:40:46 +0000 (11:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 11

12 years agov3-6-ctdb: VERSION bump vendor patch level to 10
Volker Lendecke [Wed, 27 Apr 2011 12:23:51 +0000 (14:23 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 10

12 years agov3-6-ctdb: VERSION bump vendor patch level to 9
Volker Lendecke [Mon, 18 Apr 2011 09:44:13 +0000 (11:44 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 9

12 years agov3-6-ctdb: packaging(RHEL-CTDB): package the gpfs_prefetch vfs module
Volker Lendecke [Fri, 5 Mar 2010 15:10:49 +0000 (16:10 +0100)]
v3-6-ctdb: packaging(RHEL-CTDB): package the gpfs_prefetch vfs module

12 years agov3-6-ctdb: s3:vfs: Add a gpfs_prefetch module.
Volker Lendecke [Fri, 21 Jan 2011 13:07:15 +0000 (14:07 +0100)]
v3-6-ctdb: s3:vfs: Add a gpfs_prefetch module.

This can not go upstream yet because it uses the gpfs_fcntl call
from the non-GPL libgpfs.

12 years agov3-6-ctdb: VERSION bump vendor patch level to 8
Michael Adam [Wed, 30 Mar 2011 14:40:48 +0000 (16:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 8

12 years agov3-6-ctdb: VERSION bump vendor patch level to 7
Volker Lendecke [Wed, 30 Mar 2011 14:40:48 +0000 (16:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 7

12 years agov3-6-ctdb: VERSION bump vendor patch level to 6
Volker Lendecke [Tue, 29 Mar 2011 10:49:40 +0000 (12:49 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 6

12 years agov3-6-ctdb: VERSION bump vendor patch level to 5
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 5

12 years agov3-6-ctdb: VERSION bump vendor patch level to 4
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 4

12 years agov3-6-ctdb: VERSION bump vendor patch level to 3
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 3

12 years agov3-6-ctdb: VERSION bump vendor patch level to 2
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 2

12 years agov3-6-ctdb: s3: Add the "net groupfilter" command
Volker Lendecke [Sun, 14 Dec 2008 23:16:56 +0000 (00:16 +0100)]
v3-6-ctdb: s3: Add the "net groupfilter" command

This is the start of a bad hack for even worse systems: Many Unix systems still
have the NGROUPS problem: A user can not be member of more than a very limited
number of groups. Solaris for example limits this to 16 by default. Many
Windows environments have a *LOT* more groups per user, some even go to
hundreds. Whether that is efficient is debatable, but it's there.

This patch implements the

"net groupfilter"

command with the "addsid", "delsid" and "list" subcommands. If any SIDs are
present according to "net groupfilter list" (they are stored in secrets.tdb),
then only the SIDs in that list are converted to GIDs for a user at login time.

This gives the Administrator the possibility to define a set of groups that are
used on the Unix box, making sure that no user is in more than NGROUPS of those
at a time.

This patch is incomplete in the sense that winbind is not aware of this, only
smbd. So it is kind of an emergency hack for smbd-only machines.

Volker

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agov3-6-ctdb: apply patch from v3-0-ctdb to special case root in libnss_winbind
Andrew Tridgell [Mon, 21 Apr 2008 16:41:32 +0000 (18:41 +0200)]
v3-6-ctdb: apply patch from v3-0-ctdb to special case root in libnss_winbind

This is needed to ensure the administrator can login to a node even
when ctdbd and winbindd are stuck

12 years agov3-6-ctdb: add README.v3-6-ctdb
Michael Adam [Tue, 18 Jan 2011 12:19:55 +0000 (13:19 +0100)]
v3-6-ctdb: add README.v3-6-ctdb

12 years agov3-6-ctdb: VERSION: add vendor-suffix "ctdb" and vendor-patch level "1"
Michael Adam [Tue, 23 Jun 2009 14:41:38 +0000 (16:41 +0200)]
v3-6-ctdb: VERSION: add vendor-suffix "ctdb" and vendor-patch level "1"

Michael

following the versioning scheme of the v3-2-ctdb branch

Michael

12 years agov3-6-ctdb: VERSION: set version to non-snapshot..
Michael Adam [Wed, 8 Apr 2009 17:28:52 +0000 (19:28 +0200)]
v3-6-ctdb: VERSION: set version to non-snapshot..

12 years agov3-6-ctdb: Revert "VERSION: Bump version up to 3.6.0."
Michael Adam [Fri, 10 Jun 2011 13:24:09 +0000 (15:24 +0200)]
v3-6-ctdb: Revert "VERSION: Bump version up to 3.6.0."

This reverts commit 64bba3b822a42e61c7725c2c648a4cb385d0bd41.

For now, we are still on rc2.
This patch needs to be removed once 3.6.0 is out.

12 years agopackaging(RHEL-CTDB): Revert "add BuildRequires to ctdb-devel >= 1.2.25"
Michael Adam [Fri, 27 May 2011 10:35:49 +0000 (12:35 +0200)]
packaging(RHEL-CTDB): Revert "add BuildRequires to ctdb-devel >= 1.2.25"

This reverts commit a16520b6939cb6d87f5818db0ac3ded228053cee.

There is also a 1.0.114 based branch that has the required capabilities.
If building against an insufficient version, the configure will fail.

12 years agopackaging(RHEL-CTDB): align configure.rpm to the spec file
Christian Ambach [Thu, 19 May 2011 16:58:25 +0000 (18:58 +0200)]
packaging(RHEL-CTDB): align configure.rpm to the spec file

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agopackaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh
Michael Adam [Wed, 18 May 2011 08:35:42 +0000 (10:35 +0200)]
packaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh

This allows to call e.g. "makerpms.sh -bs" to only build the source rpm.

12 years agopackaging(RHEL-CTDB): adapt configure.rpm
Michael Adam [Fri, 6 May 2011 15:22:06 +0000 (17:22 +0200)]
packaging(RHEL-CTDB): adapt configure.rpm

12 years agopackaging(RHEL-CTDB): enforce building of libtdb and libtalloc
Michael Adam [Fri, 6 May 2011 15:21:10 +0000 (17:21 +0200)]
packaging(RHEL-CTDB): enforce building of libtdb and libtalloc

12 years agopackaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves
Michael Adam [Fri, 6 May 2011 10:29:10 +0000 (12:29 +0200)]
packaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves

and add appropriate dependencies to the samba-common package.
It should also be possible to run with appropriate system talloc
and tdb packages.

12 years agopackaging(RHEL-CTDB): update configure.rpm (--disable-smbtorture4)
Michael Adam [Fri, 6 May 2011 16:36:38 +0000 (18:36 +0200)]
packaging(RHEL-CTDB): update configure.rpm (--disable-smbtorture4)

12 years agopackaging(RHEL-CTDB): disable smbtorture4 in the rpm build
Michael Adam [Fri, 6 May 2011 16:35:55 +0000 (18:35 +0200)]
packaging(RHEL-CTDB): disable smbtorture4 in the rpm build

12 years agopackaging(RHEL-CTDB): Remove the packaging of the winbind-32bit compat package
Michael Adam [Fri, 6 May 2011 10:03:52 +0000 (12:03 +0200)]
packaging(RHEL-CTDB): Remove the packaging of the winbind-32bit compat package

12 years agopackaging(RHEL-CTDB): create the rpm directories
Volker Lendecke [Wed, 27 Apr 2011 08:25:05 +0000 (10:25 +0200)]
packaging(RHEL-CTDB): create the rpm directories

In RHEL6, rpms are built in /root/rpmbuild, and those directories do not
necessarily exist.

12 years agos3:idmap_autorid: remove redundant code
Michael Adam [Thu, 9 Jun 2011 22:50:42 +0000 (00:50 +0200)]
s3:idmap_autorid: remove redundant code

12 years agos3:idmap_autorid: in initialize, don't leak storedconfig to talloc_tos() in the succe...
Michael Adam [Thu, 9 Jun 2011 22:49:37 +0000 (00:49 +0200)]
s3:idmap_autorid: in initialize, don't leak storedconfig to talloc_tos() in the success case

12 years agos3:idmap_autorid: use "idmap config * : rangesize" instead of "autorid : rangesize"
Michael Adam [Thu, 9 Jun 2011 22:46:19 +0000 (00:46 +0200)]
s3:idmap_autorid: use "idmap config * : rangesize" instead of "autorid : rangesize"

12 years agos3:idmap_autorid: fail initialization if the domain is not "*"
Michael Adam [Tue, 7 Jun 2011 13:53:49 +0000 (15:53 +0200)]
s3:idmap_autorid: fail initialization if the domain is not "*"

autorid can only be used as a backend for the default idmap configuration.

12 years agos3: Fix the build, NAME_MAX not universally available
Volker Lendecke [Mon, 20 Jun 2011 10:09:06 +0000 (12:09 +0200)]
s3: Fix the build, NAME_MAX not universally available

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jun 20 13:45:21 CEST 2011 on sn-devel-104

12 years agos3:modules fix Bug 8244 - Cannot copy files larger than 2 GB to Samba share
Christian Ambach [Fri, 17 Jun 2011 19:54:30 +0000 (21:54 +0200)]
s3:modules fix Bug 8244 - Cannot copy files larger than 2 GB to Samba share

the time_audit module uses int instead of uint64 as return value
in get_alloc_size so that sizes of files larger than 2 GB are
cut of leading to wrong replies to NtCreateAndX and Windows
clients giving up

While checking the types of all functions, I found two more wrong
return value types that needed correction

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Jun 17 23:11:10 CEST 2011 on sn-devel-104

12 years agos3: Replace shadow_copy2 with a new implementation
Volker Lendecke [Mon, 20 Jun 2011 07:52:21 +0000 (09:52 +0200)]
s3: Replace shadow_copy2 with a new implementation

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jun 20 11:17:47 CEST 2011 on sn-devel-104

12 years agos3: Fix the return of make_new_server_info_guest
Volker Lendecke [Wed, 15 Jun 2011 12:09:50 +0000 (14:09 +0200)]
s3: Fix the return of make_new_server_info_guest

12 years agos3: Add debug level 0 warnings to make_new_server_info_guest
Volker Lendecke [Wed, 15 Jun 2011 12:08:23 +0000 (14:08 +0200)]
s3: Add debug level 0 warnings to make_new_server_info_guest

I've got a backtrace where this must have failed, but it is not clear why. If
this fails, we should really complain because we can't start up.

12 years agos3: Fix connecting to ctdb as non-root
Volker Lendecke [Tue, 14 Jun 2011 15:52:42 +0000 (17:52 +0200)]
s3: Fix connecting to ctdb as non-root

This is at least one instance which I could identify

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jun 14 19:06:39 CEST 2011 on sn-devel-104

12 years agos3: Fix count_current_connections
Volker Lendecke [Tue, 14 Jun 2011 15:50:41 +0000 (17:50 +0200)]
s3: Fix count_current_connections

"False" is not really a valid return value for "int"..

12 years agos3:net: registry export: close key after recursion returns
Gregor Beck [Mon, 30 May 2011 07:31:21 +0000 (09:31 +0200)]
s3:net: registry export: close key after recursion returns

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net registry: polish output of net registry enumerate[_recursive]
Michael Adam [Mon, 30 May 2011 14:54:47 +0000 (16:54 +0200)]
s3:net registry: polish output of net registry enumerate[_recursive]

so that net registry enumerate output is as before, and
net registry enumerate_recursive is formatted more nicely

12 years agos3:net: registry: use recursive implementation for enumerate
Gregor Beck [Mon, 30 May 2011 08:24:16 +0000 (10:24 +0200)]
s3:net: registry: use recursive implementation for enumerate

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net: registry: add new command enumerate_recursive
Gregor Beck [Mon, 30 May 2011 06:58:34 +0000 (08:58 +0200)]
s3:net: registry: add new command enumerate_recursive

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3: Fork the echo handler only after SMB1 negprot is done
Volker Lendecke [Fri, 20 May 2011 11:07:17 +0000 (13:07 +0200)]
s3: Fork the echo handler only after SMB1 negprot is done

This enables activating the echo responder also if SMB2 is enabled, albeit it
will only be used for SMB1 at this moment.

12 years agos3-torture: Add a test for notify upon read&x
Volker Lendecke [Wed, 4 May 2011 15:45:34 +0000 (17:45 +0200)]
s3-torture: Add a test for notify upon read&x

This makes sure that when a file is brought online by a read call
we notify the client for FILE_NOTIFY_CHANGE_ATTRIBUTES.

12 years agos3:torture: remove a file accidentially committed with 3b2fe4728d6d916508b677e696ecad...
Michael Adam [Tue, 17 May 2011 12:30:13 +0000 (14:30 +0200)]
s3:torture: remove a file accidentially committed with 3b2fe4728d6d916508b677e696ecad88f8b7b9fd

12 years agos3: improve WHATSNEW around kerberos changes
Andrew Bartlett [Tue, 14 Jun 2011 11:51:36 +0000 (21:51 +1000)]
s3: improve WHATSNEW around kerberos changes

12 years agos3:wb_lookupsids: add some paranoia checks to wb_lookupsids_recv()
Stefan Metzmacher [Thu, 16 Jun 2011 16:25:15 +0000 (18:25 +0200)]
s3:wb_lookupsids: add some paranoia checks to wb_lookupsids_recv()

This hopefully catches future bugs.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jun 16 19:50:16 CEST 2011 on sn-devel-104
(cherry picked from commit 5961852d9c0e5cf64cea988586d610af9d63d487)

12 years agos3:wb_lookupsids: don't ignore 'result' and check if we got useable values
Stefan Metzmacher [Thu, 16 Jun 2011 16:16:15 +0000 (18:16 +0200)]
s3:wb_lookupsids: don't ignore 'result' and check if we got useable values

The wrong fix for bug #8215 discovered this bug, as it caused
sam_rids_to_names() to always return NT_STATUS_NONE_MAPPED.

metze
(cherry picked from commit 85809ccbe3a79f307af1fdd227f33b899d8db1b4)

12 years agoRevert "s3-winbind: Fix paranoia checks in winbindd_samr.c."
Stefan Metzmacher [Thu, 16 Jun 2011 16:40:04 +0000 (18:40 +0200)]
Revert "s3-winbind: Fix paranoia checks in winbindd_samr.c."

This reverts commit 207a84d725b905c2b119d2ef0f4f4d4eb391140d.

This is the wrong fix for the problem, see bug #8215.

metze
(cherry picked from commit 283f8a7fb5089a7126f07e26315fd06ab59997d8)

12 years agos3:utils/net_*registry: use c99 initializers which are supported by old gcc 2.95...
Stefan Metzmacher [Wed, 15 Jun 2011 00:34:53 +0000 (02:34 +0200)]
s3:utils/net_*registry: use c99 initializers which are supported by old gcc 2.95 compilers (bug #8226)

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 15 03:48:41 CEST 2011 on sn-devel-104
(cherry picked from commit 5d736d87778754de7043d902c7d1d5db1c46cb02)

12 years agos3:libsmb/clireadwrite: calculate cli_write_max_bufsize() correct based on max_xmit
Stefan Metzmacher [Wed, 8 Jun 2011 17:01:13 +0000 (19:01 +0200)]
s3:libsmb/clireadwrite: calculate cli_write_max_bufsize() correct based on max_xmit

This is important in order to support DCERPC over ncacn_np against NT4 servers,
where max_xmit is just 4356.

metze
(cherry picked from commit f0ba1afe5f7dbafaf22c3028864de0f3910f675f)

The last 14 patches address the generic part of bug #8195
(rpc client code doesn't work against NT4, when we need to fragment requests).

12 years agos3:libsmb/clireadwrite: calculate cli_read_max_bufsize() correct based on max_xmit
Stefan Metzmacher [Wed, 8 Jun 2011 16:59:39 +0000 (18:59 +0200)]
s3:libsmb/clireadwrite: calculate cli_read_max_bufsize() correct based on max_xmit

This is important in order to support DCERPC over ncacn_np against NT4 servers,
where max_xmit is just 4356.

metze
(cherry picked from commit 73128b7cc7f536f80072a19cb69527c53d9a6c2f)

12 years agos3:libsmb/clitrans: correctly transfer the seqnum between secondary and primary requests
Stefan Metzmacher [Thu, 9 Jun 2011 09:57:55 +0000 (11:57 +0200)]
s3:libsmb/clitrans: correctly transfer the seqnum between secondary and primary requests

This is needed to implement SMB signing correct.

metze
(cherry picked from commit 5d06b2197b5fd95aaf0394d1bdba957bac6c3570)

12 years agos3:libsmb/clitrans: fix handling of multi pdu [nt]trans[s][2] calls
Stefan Metzmacher [Wed, 8 Jun 2011 08:31:23 +0000 (10:31 +0200)]
s3:libsmb/clitrans: fix handling of multi pdu [nt]trans[s][2] calls

We now keep the primary request open for the whole logical request.
The primary request is the one that gets all incoming replies.
While secondary requests are handled as separate one-way requests.

metze
(cherry picked from commit 1dd24ac06a7472f53b06bc0aaa54cb22c8da0f78)

12 years agos3:libsmb/clitrans: use subreq2 as variable for the secondary requests
Stefan Metzmacher [Wed, 8 Jun 2011 14:41:11 +0000 (16:41 +0200)]
s3:libsmb/clitrans: use subreq2 as variable for the secondary requests

metze
(cherry picked from commit 10bb088cf1e005fd047c09afcf6b5b8999d416fe)

12 years agos3:libsmb/clitrans: move MID handling to the end of cli_trans_send() and add a comment
Stefan Metzmacher [Wed, 8 Jun 2011 14:11:00 +0000 (16:11 +0200)]
s3:libsmb/clitrans: move MID handling to the end of cli_trans_send() and add a comment

metze
(cherry picked from commit 5146c9ba9df063d6611abe356f9262adb027b091)

12 years agos3:libsmb/clitrans: correctly marshall [nt]trans[s][2] requests
Stefan Metzmacher [Tue, 7 Jun 2011 22:44:34 +0000 (00:44 +0200)]
s3:libsmb/clitrans: correctly marshall [nt]trans[s][2] requests

We need to align params and data to 4 byte offsets.

This also correctly recalculates the useable space after each step.

metze
(cherry picked from commit 0a8fd50bd806e925a915c74cb86733481b2144f6)

12 years agos3:libsmb/clitrans: marshall SMBnttrans[2] as the others
Stefan Metzmacher [Thu, 9 Jun 2011 10:22:59 +0000 (12:22 +0200)]
s3:libsmb/clitrans: marshall SMBnttrans[2] as the others

This is just to make the code more readable
and easier to notice how many words we're using in vwv.

metze
(cherry picked from commit 6f7af1b0388d30c8a06c495713066b90ded00780)

12 years agos3:libsmb/clitrans: use uint32_t for param and data variables
Stefan Metzmacher [Wed, 8 Jun 2011 15:08:00 +0000 (17:08 +0200)]
s3:libsmb/clitrans: use uint32_t for param and data variables

SMBnttrans uses 32-bit values there.

metze
(cherry picked from commit 428a86c92b5b35e28c7d6921f2999616cdc1bc20)

12 years agos3:libsmb/clitrans: remove unused secondary_request_ctx
Stefan Metzmacher [Tue, 7 Jun 2011 22:37:24 +0000 (00:37 +0200)]
s3:libsmb/clitrans: remove unused secondary_request_ctx

metze
(cherry picked from commit 2ae565b681a6307886b888ee5b576c12916eb0db)

12 years agos3:libsmb/async_smb: add helpers to get and set the seqnum for signing
Stefan Metzmacher [Thu, 9 Jun 2011 09:49:48 +0000 (11:49 +0200)]
s3:libsmb/async_smb: add helpers to get and set the seqnum for signing

This will be used for correct signing in [nt]trans[2][s] requests.

metze
(cherry picked from commit 3dd1ebd21ee99d130f6dd30326ddafe3f00a50d0)

12 years agos3:libsmb/async_smb: don't remove pending requests if the mid is set
Stefan Metzmacher [Wed, 8 Jun 2011 08:20:25 +0000 (10:20 +0200)]
s3:libsmb/async_smb: don't remove pending requests if the mid is set

If the mid was set explicitly, it means the request expects more than
one reply, so leave it in the pending array.

metze
(cherry picked from commit a25936f1b1300a76b08a6bd435bd7ccc388279d5)

12 years agos3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor directly
Stefan Metzmacher [Wed, 8 Jun 2011 12:14:24 +0000 (14:14 +0200)]
s3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor directly

metze
(cherry picked from commit 173fc258e443d97e4ea37f2bee99c21ad15ab484)

12 years agos3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way requests
Stefan Metzmacher [Tue, 7 Jun 2011 22:40:54 +0000 (00:40 +0200)]
s3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way requests

metze
(cherry picked from commit 49cdf171a5198495aead9ace43963e805331e20b)

12 years agos3:libsmb/cli_np_tstream: s/TSTREAM_CLI_NP_BUF_SIZE/TSTREAM_CLI_NP_MAX_BUF_SIZE
Stefan Metzmacher [Tue, 7 Jun 2011 16:49:55 +0000 (18:49 +0200)]
s3:libsmb/cli_np_tstream: s/TSTREAM_CLI_NP_BUF_SIZE/TSTREAM_CLI_NP_MAX_BUF_SIZE

This isn't the fixed buffer size anymore, as we use dynamic beffer
it's just the maximum size.

metze
(cherry picked from commit 957cfd23e1781e342edde07fc01dbec279088afa)

The last 3 patches address bug #8195 (rpc client code doesn't work against NT4,
when we need to fragment requests).

12 years agos3:libsmb:cli_np_tstream: use dynamic talloc buffers
Stefan Metzmacher [Tue, 7 Jun 2011 16:45:54 +0000 (18:45 +0200)]
s3:libsmb:cli_np_tstream: use dynamic talloc buffers

Having 8192 bytes on an idle connection is a bit to much,
so we better use dynamic buffers using talloc, which also
avoids a memcpy in the common SMBtrans readv codepath.

metze
(cherry picked from commit ad1cf187fdbcd726c6c74085308784fe4ecca883)

12 years agos3:libsmb/cli_np_tstream: use larger buffers to avoid a bug NT4 servers (bug #8195)
Stefan Metzmacher [Tue, 7 Jun 2011 16:27:41 +0000 (18:27 +0200)]
s3:libsmb/cli_np_tstream: use larger buffers to avoid a bug NT4 servers (bug #8195)

NT4 servers return NT_STATUS_PIPE_BUSY if we try a SMBtrans
and the SMBwriteX before hasn't transmited the whole DCERPC fragment.

W2K and above is happy with that.

As a result we try to match the behavior of Windows and older Samba clients,
they use write and read buffers of 4280 bytes instead of 1024 bytes.
On Windows only the SMBtrans based read uses 1024 (while we also use 4280
there).

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jun  7 20:25:32 CEST 2011 on sn-devel-104
(cherry picked from commit c3ac298a1fe4f5cada6d09376e2d4a3df271a093)

12 years agos3:librpc/ndr/util.h: add license/copyright header and inclusion guard
Michael Adam [Sun, 12 Jun 2011 22:07:29 +0000 (00:07 +0200)]
s3:librpc/ndr/util.h: add license/copyright header and inclusion guard

The last patches fix bug #8196 (Many (newer) header files don't have copyright /
GPL header comments).

12 years agos3:registry/reg_parse_internal.c: add copyright information
Michael Adam [Fri, 10 Jun 2011 22:20:57 +0000 (00:20 +0200)]
s3:registry/reg_parse_internal.c: add copyright information

12 years agos3:registry/reg_parse_internal.h: add copyright information
Michael Adam [Fri, 10 Jun 2011 22:20:32 +0000 (00:20 +0200)]
s3:registry/reg_parse_internal.h: add copyright information

12 years agosource3/rpc_client/util_netlogon.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:08:17 +0000 (15:08 +0200)]
source3/rpc_client/util_netlogon.h: fix licence/copyright

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jun 10 16:27:24 CEST 2011 on sn-devel-104
(cherry picked from commit cd16a1be9371448532be7362d3e5d3f2a1ae3df3)

12 years agosource3/rpc_client/init_spoolss.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:08:07 +0000 (15:08 +0200)]
source3/rpc_client/init_spoolss.h: fix licence/copyright

Guenther
(cherry picked from commit 4942aeb9b562f3621cbe6adc8e79366887f0d4b9)

12 years agosource3/rpc_client/init_samr.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:07:57 +0000 (15:07 +0200)]
source3/rpc_client/init_samr.h: fix licence/copyright

Guenther
(cherry picked from commit 054e54e881eeab18387ae6e94cf04ecf205ebe64)

12 years agosource3/rpc_client/init_netlogon.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:07:48 +0000 (15:07 +0200)]
source3/rpc_client/init_netlogon.h: fix licence/copyright

Guenther
(cherry picked from commit f3ca8ff2bfb61cfa4b9ce2e4be93653f7b309351)

12 years agosource3/rpc_client/init_lsa.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:07:39 +0000 (15:07 +0200)]
source3/rpc_client/init_lsa.h: fix licence/copyright

Guenther
(cherry picked from commit 9284036ce17b569c1f2203362eacd99ebc362af6)

12 years agosource3/rpc_client/cli_spoolss.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:07:27 +0000 (15:07 +0200)]
source3/rpc_client/cli_spoolss.h: fix licence/copyright

Guenther
(cherry picked from commit b95b1813b9ab53b9490d8b37af4f6ced7fea7bdb)

12 years agosource3/rpc_client/cli_netlogon.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:07:16 +0000 (15:07 +0200)]
source3/rpc_client/cli_netlogon.h: fix licence/copyright

Guenther
(cherry picked from commit 2d10c48259ec234ae110c60405a9da5e720302cb)

12 years agosource3/printing/pcap.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:07:03 +0000 (15:07 +0200)]
source3/printing/pcap.h: fix licence/copyright

Guenther
(cherry picked from commit ef5bcb6e23093086e1450833745b7e5b7b5d46ee)

12 years agosource3/printing/load.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:06:49 +0000 (15:06 +0200)]
source3/printing/load.h: fix licence/copyright

Guenther
(cherry picked from commit 942b2d5baf4347c796d823ad72754c302b38cdca)

12 years agosource3/libsmb/proto.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:06:36 +0000 (15:06 +0200)]
source3/libsmb/proto.h: fix licence/copyright

Guenther
(cherry picked from commit ed10726abca2194d21ea5174c2ff2cda79db499e)

12 years agosource3/libsmb/nmblib.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:06:27 +0000 (15:06 +0200)]
source3/libsmb/nmblib.h: fix licence/copyright

Guenther
(cherry picked from commit 005930411ccbb2793023d2a4d29bdb536d822aba)

12 years agosource3/libsmb/libsmb.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:06:17 +0000 (15:06 +0200)]
source3/libsmb/libsmb.h: fix licence/copyright

Guenther
(cherry picked from commit 81b5d8538a00181af814e98af83718ef5f413868)

12 years agosource3/libsmb/errormap_wbc.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:06:07 +0000 (15:06 +0200)]
source3/libsmb/errormap_wbc.h: fix licence/copyright

Guenther
(cherry picked from commit c1058ad47607c089ba630b21df1f6b72a24a861c)

12 years agosource3/libsmb/clidgram.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:05:57 +0000 (15:05 +0200)]
source3/libsmb/clidgram.h: fix licence/copyright

Guenther
(cherry picked from commit 1e9f2bdb2f7f9e809dd3044dc94018e0b5b6e8d3)

12 years agosource3/libnet/libnet_join.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:05:47 +0000 (15:05 +0200)]
source3/libnet/libnet_join.h: fix licence/copyright

Guenther
(cherry picked from commit 81f269211a80c17a33ec9f05c7847dd29b8c4251)

12 years agosource3/libads/ldap_schema.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:05:37 +0000 (15:05 +0200)]
source3/libads/ldap_schema.h: fix licence/copyright

Guenther
(cherry picked from commit 183835d05515b5b437bbeff5ff7685a4f08415ad)

12 years agosource3/libads/cldap.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:05:27 +0000 (15:05 +0200)]
source3/libads/cldap.h: fix licence/copyright

Guenther
(cherry picked from commit 59e878ff625989d4d2e04ea017f92d29a40f4c44)

12 years agosource3/libads/ads_status.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:05:18 +0000 (15:05 +0200)]
source3/libads/ads_status.h: fix licence/copyright

Guenther
(cherry picked from commit d5c5aa1c5fcc0e3c74cf1216cce7a8c767a6df2a)

12 years agosource3/libads/ads_ldap_protos.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:05:09 +0000 (15:05 +0200)]
source3/libads/ads_ldap_protos.h: fix licence/copyright

Guenther
(cherry picked from commit f2d4252dfa790b65031fe3221afe89d0e285ebd7)

12 years agosource3/lib/privileges.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:04:59 +0000 (15:04 +0200)]
source3/lib/privileges.h: fix licence/copyright

Guenther
(cherry picked from commit 5672d83b23e89f716300940126bef0a738aa3599)

12 years agosource3/lib/netapi/libnetapi.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:04:48 +0000 (15:04 +0200)]
source3/lib/netapi/libnetapi.h: fix licence/copyright

Guenther
(cherry picked from commit 387ddc2c295e92363c83dcd29353cdd4c56984ab)

12 years agosource3/intl/lang_tdb.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:04:36 +0000 (15:04 +0200)]
source3/intl/lang_tdb.h: fix licence/copyright

Guenther
(cherry picked from commit 3ec4966942dc468cfd6e32bf221d4427cc6aba86)

12 years agosource3/include/smb_ldap.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:04:26 +0000 (15:04 +0200)]
source3/include/smb_ldap.h: fix licence/copyright

Guenther
(cherry picked from commit e14b60c7ee6a76c444f12b8987740602c7b5f1d3)

12 years agosource3/include/smb_krb5.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:04:16 +0000 (15:04 +0200)]
source3/include/smb_krb5.h: fix licence/copyright

Guenther
(cherry picked from commit 769f8793cff7d336ab04442208039f87147388bd)

12 years agosource3/include/mangle.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:04:05 +0000 (15:04 +0200)]
source3/include/mangle.h: fix licence/copyright

Guenther
(cherry picked from commit d357b5ce2a1eeead19760ecfad8c7d2bbf9e7622)

12 years agosource3/include/krb5_protos.h: fix licence/copyright
Günther Deschner [Fri, 10 Jun 2011 13:03:55 +0000 (15:03 +0200)]
source3/include/krb5_protos.h: fix licence/copyright

Guenther
(cherry picked from commit ef84a5b2aafa7c90c2aaff82006a69dec485d2ab)