]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
14 years agoSecond part of fix for bug #8443 - Default user entry is set to minimal permissions...
Jeremy Allison [Thu, 8 Sep 2011 20:48:27 +0000 (13:48 -0700)] 
Second part of fix for bug #8443 - Default user entry is set to minimal permissions on incoming ACL change with no user specified.

Be smarter about setting default permissions when a ACL_USER_OBJ isn't given. Use the principle of least surprises for the user.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep  9 00:26:08 CEST 2011 on sn-devel-104
(cherry picked from commit e30b8c72def13e2abc14858ea64eb849ea665b80)
(cherry picked from commit 589bea9d314e14b8a493acdb31104f731073cafa)

14 years agoFirst part of fix for bug #8443 - Default user entry is set to minimal permissions...
Jeremy Allison [Thu, 8 Sep 2011 19:51:18 +0000 (12:51 -0700)] 
First part of fix for bug #8443 - Default user entry is set to minimal permissions on incoming ACL change with no user specified.

create_default_mode() is not needed - it's taken care of by code
inside ensure_canon_entry_valid().
(cherry picked from commit 793bd527fdd0b188aba8f3b4bffd8fa8f69a9cd1)
(cherry picked from commit 0bb1e5919a5f3dd3a290f7dd082b3e67c95b37c6)

14 years agoPart 3 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid...
Jeremy Allison [Fri, 2 Sep 2011 19:22:34 +0000 (12:22 -0700)] 
Part 3 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)

Don't call check_owning_objs() to convert ACL_USER->ACL_USER_OBJ and
AC_GROUP->ACL_GROUP_OBJ for default (directory) ACLs, we do this separately
inside ensure_canon_entry_valid().
(cherry picked from commit c528fc5cacaae7e0e83041eb98150052b436071e)
(cherry picked from commit 5e06c88de7bc4fe215c8630d9c3b6861f18d63bf)

14 years agoPart 2 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid...
Jeremy Allison [Fri, 2 Sep 2011 18:58:56 +0000 (11:58 -0700)] 
Part 2 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)

Only map CREATOR_OWNER/CREATOR_GROUP to ACL_USER_OBJ/ACL_GROUP_OBJ in
a default(directory) ACL set.
(cherry picked from commit a5038ace24559bb02eec8262d3af5b5e78634d16)
(cherry picked from commit 7f3a6c5631f901240d9e460b16d1df81e6f66e2d)

14 years agoPart 1 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid...
Jeremy Allison [Fri, 2 Sep 2011 18:21:08 +0000 (11:21 -0700)] 
Part 1 of bugfix for bug #7509 - smb_acl_to_posix: ACL is invalid for set (Invalid argument)

Remove the code I added for bug "6878 - Cannot change ACL's inherit flag". It is incorrect
and causes the POSIX ACL ACL_USER_OBJ duplication.
(cherry picked from commit 2b935b49f3d975759eb1cbcf2b11bf7c9d982804)
(cherry picked from commit 27c49f085a16da709e64e0f50df535edcb524b77)

14 years agoFix bug #8458] - IE9 on Windows 7 cannot download files to samba 3.5.11 share
Jeremy Allison [Wed, 21 Sep 2011 20:33:38 +0000 (13:33 -0700)] 
Fix bug #8458] - IE9 on Windows 7 cannot download files to samba 3.5.11 share

Handle the SECINFO_LABEL flag in the same was as Win2k3.
(cherry picked from commit 893497ee169ba5455cd70458a339e60544e171d7)
(cherry picked from commit 5f4eb867b1297493473b0d652c7e3d0d21260bf8)

14 years agoFix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" set
Jeremy Allison [Fri, 30 Sep 2011 20:35:59 +0000 (13:35 -0700)] 
Fix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" set

If a client sends a mangled name as part of a DFS path, use the
post-mangled name for the pathname walk, not the mangled name.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct  1 00:45:59 CEST 2011 on sn-devel-104
(cherry picked from commit 149875f887287dbbf016d2252962b023b0bae967)

14 years agos3-docs: Fix typos.
Karolin Seeger [Mon, 6 Jun 2011 17:58:22 +0000 (19:58 +0200)] 
s3-docs: Fix typos.

Thanks to Samba-JP oota <ribbon@samba.gr.jp> for reporting!

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Fri Sep 30 23:12:35 CEST 2011 on sn-devel-104
(cherry picked from commit 5c569a97ab477a324a96aae7f58770ccbe2572de)
(cherry picked from commit e6b33a5a3f83272d7e6dea66b1f15db4b19d3170)

14 years agos3:smb2_server: SMB2_OP_CANCEL requests don't have to be signed
Stefan Metzmacher [Wed, 28 Sep 2011 06:28:08 +0000 (08:28 +0200)] 
s3:smb2_server: SMB2_OP_CANCEL requests don't have to be signed

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 02:58:41 CEST 2011 on sn-devel-104
(cherry picked from commit ea00f0e452f64868fdc78cf0dc8e9ce3af19fe32)

Fix bug #8503 (The SMB2 server should ignore signing on CANCEL requests).
(cherry picked from commit 3d2c591ff6ce75317556de8ad522c73e5cc8f614)

14 years agos3-docs: Remove "experimental" label on VFS ACL modules
Karolin Seeger [Wed, 28 Sep 2011 18:17:42 +0000 (20:17 +0200)] 
s3-docs: Remove "experimental" label on VFS ACL modules

in the documentation also (bug #8494).

Karolin
(cherry picked from commit bd5d9d9fba23ea585b701c41ec27482a0076729e)

14 years agoThese modules are no longer experimental but production-ready (especially the acl_xat...
Jeremy Allison [Tue, 27 Sep 2011 17:23:08 +0000 (10:23 -0700)] 
These modules are no longer experimental but production-ready (especially the acl_xattr code). Remove the "experimental" tag.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Sep 27 21:00:12 CEST 2011 on sn-devel-104
(cherry picked from commit fa2236c066890b687483408ed0d82a4bb1f95157)

Fix bug #8494 (Remove "experimental" label on VFS ACL modules).
(cherry picked from commit bdf1c399646a0a968a4360c65be2db8089e6ab8d)

14 years agoFix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.
David Disseldorp [Fri, 23 Sep 2011 18:46:06 +0000 (11:46 -0700)] 
Fix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 23 22:20:55 CEST 2011 on sn-devel-104
(cherry picked from commit ca8c25abebb8715176f68be9916217db9a8400dd)
(cherry picked from commit 700532c72592751b57521295b80f65039a260471)

14 years agos3:smbd: don't call smbd_terminate_connection in smb2_validate_message_id() (bug...
Stefan Metzmacher [Fri, 23 Sep 2011 04:08:51 +0000 (06:08 +0200)] 
s3:smbd: don't call smbd_terminate_connection in smb2_validate_message_id() (bug #8476)

Only return false and the caller will terminate the connection.

metze
(cherry picked from commit 02d83d8fd4d21825110fd7da1ccb570a26e66ca6)

Part of a fix for bug #8476 (Samba asserts when SMB2 client breaks the crediting
rules.)
(cherry picked from commit bdb2c72565e1374585bd638d2d12862d90b80c6b)

14 years agoFix bug #8476 - Samba asserts when SMB2 client breaks the crediting rules.
Jeremy Allison [Thu, 22 Sep 2011 16:06:48 +0000 (09:06 -0700)] 
Fix bug #8476 - Samba asserts when SMB2 client breaks the crediting rules.

Just drop the connection, not SMB_ASSERT.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Sep 22 19:41:31 CEST 2011 on sn-devel-104
(cherry picked from commit d50fa9c21e1c3b6f7126c33e24966099c7567225)
(cherry picked from commit 46ead7f8b1ee69cb61abdc1358ed2c4c411e3fc1)

14 years agos3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin.
Günther Deschner [Wed, 21 Sep 2011 15:28:58 +0000 (17:28 +0200)] 
s3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin.

We force using a MEMORY ccache though in the wkssvc server.

Guenther

Part of a fix for bug #7465 (net ads join -k didn't work if KRB5CCNAME is not
set).
(cherry picked from commit 65d953f074394c0a588f1741aeb6c79f1a515866)

14 years agoRevert "s3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin."
Karolin Seeger [Mon, 26 Sep 2011 19:10:46 +0000 (21:10 +0200)] 
Revert "s3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin."

This reverts commit 050123d9b6ae8fd69ed58380d8bdf210c38556fc.

This commit seems to break the build.
(cherry picked from commit 82e2f1834380c226eed203a70eaec21b73c0d10a)

14 years agoFix bug #8473 - smb2_find uses a hard coded max reply size of 0x10000 instead of...
Jeremy Allison [Wed, 21 Sep 2011 18:30:06 +0000 (11:30 -0700)] 
Fix bug #8473 - smb2_find uses a hard coded max reply size of 0x10000 instead of smb2_max_trans.

Use lp_smb2_max_trans() instead of 0x10000.
(cherry picked from commit e68ebe600d9349e16e83aeb8e6ae8647c117d098)
(cherry picked from commit 92a6ffc4a9fa37f5e05987835f15c37211fa810f)

14 years agos3-netapi: allow to use default krb5 credential cache for libnetapi users.
Günther Deschner [Mon, 26 Sep 2011 14:25:12 +0000 (16:25 +0200)] 
s3-netapi: allow to use default krb5 credential cache for libnetapi users.

Guenther
(cherry picked from commit 1f9875f435d1a9cf6d0476f476f8af9480b87bdb)

14 years agos3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin.
Günther Deschner [Wed, 21 Sep 2011 15:28:58 +0000 (17:28 +0200)] 
s3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin.

We force using a MEMORY ccache though in the wkssvc server.

Guenther
(cherry picked from commit 050123d9b6ae8fd69ed58380d8bdf210c38556fc)

14 years agos3-docs: document -k switch in net manpage.
Günther Deschner [Tue, 20 Sep 2011 12:13:36 +0000 (14:13 +0200)] 
s3-docs: document -k switch in net manpage.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Sep 20 15:47:00 CEST 2011 on sn-devel-104
(cherry picked from commit 8dda773bd7eea1d163282b1f3c5e90cbff8a1003)
(cherry picked from commit d7a691e2d713aa37b13d88bab628f9b45f05d10d)

14 years agoFix bug #8477 - Map to guest can return uninitialized blob of data.
Jeremy Allison [Thu, 22 Sep 2011 20:42:56 +0000 (13:42 -0700)] 
Fix bug #8477 - Map to guest can return uninitialized blob of data.

Found by Codenomicon at SNIA SDC.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 23 03:19:46 CEST 2011 on sn-devel-104
(cherry picked from commit f0f91d0117b2ccf778382e61a411b5e4f0ea2b14)
(cherry picked from commit b60b85c55295b1e7ba41a5e835345af28cdd3592)

14 years agos3-registry: fix bug #8401 - registry/reg_format.c must include includes.h.
Günther Deschner [Thu, 25 Aug 2011 11:39:25 +0000 (13:39 +0200)] 
s3-registry: fix bug #8401 - registry/reg_format.c must include includes.h.

Guenther
(cherry picked from commit e00a6c40bf13d9c1225022129e4cb1d617aa49bf)
(cherry picked from commit c0156d6a4059f42e6fefaec5ddbec92129d5a180)

14 years agoFix bug #8453 - smbclient segfaults when dialect option -m is used for legacy dialects
Jeremy Allison [Wed, 14 Sep 2011 18:55:16 +0000 (11:55 -0700)] 
Fix bug #8453 - smbclient segfaults when dialect option -m is used for legacy dialects

Ensure we have valid pointers.
(cherry picked from commit 9bbb3a89ffa39c9be30c269bf96f080866740406)

14 years agoWHATSNEW: Add changes since 3.6.0.
Karolin Seeger [Fri, 16 Sep 2011 19:37:10 +0000 (21:37 +0200)] 
WHATSNEW: Add changes since 3.6.0.

To be completed.

Karolin
(cherry picked from commit 5a109e34dc93e338dc18b5e1dc1881d5b8fdc093)

14 years agoFix bug #8229 - git patch attached against 3.6.0-rc2 to fix 'widelinks' regression...
Jeremy Allison [Wed, 14 Sep 2011 00:03:46 +0000 (17:03 -0700)] 
Fix bug #8229 - git patch attached against 3.6.0-rc2 to fix 'widelinks' regression intro'd in 3.2

Add "allow insecure widelinks" to re-enable the ability (requested
by some sites) to have "widelinks = yes" and "unix extensions = yes".

Based on an original patch by Linda Walsh <samba@tlinx.org>
(cherry picked from commit 8fcba00fc3329f5a4bda63a3c3beac30d07a0463)

14 years agoFix bug 8429 - Compound SMB2 requests on an IPC connection can corrupt the reply...
Jeremy Allison [Wed, 31 Aug 2011 00:37:19 +0000 (17:37 -0700)] 
Fix bug 8429 - Compound SMB2 requests on an IPC connection can corrupt the reply stream.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Aug 31 21:18:11 CEST 2011 on sn-devel-104
(cherry picked from commit 786fe9fab223723e4d2340f285592b2a44945d73)
(cherry picked from commit 740c7bd0fead31517890548a02f881b7310cc537)

14 years agos3-spoolss: Fix bug #8351 forms migration.
Andreas Schneider [Tue, 6 Sep 2011 12:09:47 +0000 (14:09 +0200)] 
s3-spoolss: Fix bug #8351 forms migration.

Don't fail if the form already exists (or is builtin now).

Signed-off-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit a272dcf1754bd31ab585bf5b40b5b7f59be27467)

14 years agos3:libsmb: check the wct of the incoming SMBnegprot responses
Stefan Metzmacher [Mon, 12 Sep 2011 19:06:53 +0000 (12:06 -0700)] 
s3:libsmb: check the wct of the incoming SMBnegprot responses

metze

Fix bug #8452 (negprot reply needs to check vwv vector length).

The corresponding commit in master is 85332eb1c721d585e1a33101bddafdca4073e10f.
(cherry picked from commit 1168f7799fb3a1de96233080cd11c6114584b329)

14 years agos3: Do not fork the echo handler for smb2
Volker Lendecke [Wed, 31 Aug 2011 13:06:35 +0000 (15:06 +0200)] 
s3: Do not fork the echo handler for smb2

If a smb1 negprot negotiated smb2 we forked the echo responder. This will
eventually lead to a panic from

[2011/08/30 10:33:29.212578,  0, pid=3846917] smbd/smb2_server.c:243(smbd_smb2_request_create)
  Invalid SMB packet: first request: 0x0009

because from the echo responder we always read using the normal smb1 protocol
handling routine. If that is a bit down the smb2 stream, we get a non-negprot
packet and panic.

BTW, the echo responder is not required for smb2 anyway, Microsoft confirmed
that it probes the server liveness using TCP keepalives and not smb2 echo
requests.

The last 2 patches address bug #8334 (smb2: smbd logs Invalid SMB packet: first
request: 0x0008 and crashes).
(cherry picked from commit d72878365e3ab0ef7bc31065261d744d7693d578)

14 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.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri May 20 15:06:03 CEST 2011 on sn-devel-104
(cherry picked from commit 4ad4665e10a77038d7f3dd8400473c8fcf3db451)

14 years agos3-spoolss: Fix bug #8236 empty notify servername.
Andreas Schneider [Fri, 2 Sep 2011 15:03:43 +0000 (17:03 +0200)] 
s3-spoolss: Fix bug #8236 empty notify servername.

Signed-off-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 703b787307984b5ddf1ef0b214092288d7b076fc)

14 years agos3:smb2_server: keep compound_related on struct smbd_smb2_request
Stefan Metzmacher [Thu, 25 Aug 2011 21:33:41 +0000 (23:33 +0200)] 
s3:smb2_server: keep compound_related on struct smbd_smb2_request

metze
(cherry picked from commit 0d450d166bab952daf37d922e5c2e5cac16f1cc3)

The last 3 patches address bug #8407 (SMB2 server can return requests
out-of-order when processing a compound request).
(cherry picked from commit 151bea2cc30f5a3e3cfaafd9e080f0d510f9563e)

14 years agoBased on metze's fix for Bug 8407 - SMB2 server can return requests out-of-order...
Jeremy Allison [Fri, 26 Aug 2011 21:23:26 +0000 (14:23 -0700)] 
Based on metze's fix for Bug 8407 - SMB2 server can return requests out-of-order when processing a compound request.

(cherry picked from commit 726b4685aa25b0b3b4470bfec5d514fb2db7a95e)
(cherry picked from commit bd377e89a6bc5fa20485bf9614c06159c9785cdf)

14 years agos3:smb2_server: make sure we prefer responses over requests on the client socket
Stefan Metzmacher [Fri, 5 Aug 2011 18:34:43 +0000 (20:34 +0200)] 
s3:smb2_server: make sure we prefer responses over requests on the client socket

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Aug 12 16:46:43 CEST 2011 on sn-devel-104
(cherry picked from commit 42cde0480bd6a5e2dddaa66917e1fa71e6a4edcd)
(cherry picked from commit 90e4b68a3b0e46c238753e66ededa16de3104302)

14 years agoFix bug 8433, segfault in iconv.c
Volker Lendecke [Thu, 1 Sep 2011 14:55:03 +0000 (16:55 +0200)] 
Fix bug 8433, segfault in iconv.c

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Sep  1 18:25:34 CEST 2011 on sn-devel-104
(cherry picked from commit 1d4de78f567e908e0acc218630fceb0884b07d65)
(cherry picked from commit 7d2006ccf58555e82bc957aa62beab6420fcbc48)

14 years agos3:smb2 fix Bug 8428 - wrong reply to DHnC (durable handle reconnect)
Christian Ambach [Tue, 30 Aug 2011 15:39:56 +0000 (17:39 +0200)] 
s3:smb2 fix Bug 8428 - wrong reply to DHnC (durable handle reconnect)

According to [MS-SMB2] 3.3.5.9.7
(http://msdn.microsoft.com/en-us/library/cc246784%28v=PROT.13%29.aspx),
smbd must reply with NT_STATUS_OBJECT_NAME_NOT_FOUND as it does not
support durable file-handles yet.

I have seen w2k8r2 running xcopy /C ending up in an endless loop
trying to get back the original file handle from smbd sending the same
requests over and over.

Metze, Jeremy, please check!
(cherry picked from commit fc8c5880d9785103e3345781bfca48e67a92cc33)

14 years agos3: Fix getent group if trusted domains are not reachable
Volker Lendecke [Thu, 25 Aug 2011 18:13:09 +0000 (20:13 +0200)] 
s3: Fix getent group if trusted domains are not reachable

Fix bug #8420 (wb_group_members: non-resistance against garbage).
(cherry picked from commit 1a996fe1d12a55e68b7266ce5db8972b6e5f101a)

14 years agoFix bug 8412 - Microsoft Office 2007 (Microsoft Word) fails to save as on a Samba...
Jeremy Allison [Mon, 29 Aug 2011 23:47:16 +0000 (16:47 -0700)] 
Fix bug 8412 - Microsoft Office 2007 (Microsoft Word) fails to save as on a Samba share with SMB2. (cherry picked from commit dec3b21cd1737b317749e7ebced5aa1c2115ebdf)
(cherry picked from commit a0a799663bd4780bb9f948e2dd0635dadb4e2c40)

14 years agos3: Use sys_read in fork_domain_child
Volker Lendecke [Fri, 26 Aug 2011 09:38:21 +0000 (11:38 +0200)] 
s3: Use sys_read in fork_domain_child

I've seen

[2011/08/26 01:44:10.872057,  1] winbindd/winbindd_dual.c:1336(fork_domain_child)
  fork_domain_child: Could not read child status: nread=-1, error=Interrupted system call

on a customer box. Not good.
(cherry picked from commit 964e809ce2069ad888e0fb12dfe51bac5a461508)

The last 3 patches address bug #8409 (f7d97868 created a new race condition).
(cherry picked from commit 2f0a5b477f58378c3505631d15b422057b037efe)

14 years agos3: Use sys_write in fork_domain_child
Volker Lendecke [Fri, 26 Aug 2011 09:39:41 +0000 (11:39 +0200)] 
s3: Use sys_write in fork_domain_child

Counterpart for last checkin. A lot less likely, but not impossible in a child.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Aug 26 13:14:27 CEST 2011 on sn-devel-104
(cherry picked from commit e0e3d215b1902ecbeb3d469af9a196856711921e)
(cherry picked from commit 11ab2d68023dbfd9089a7e2ec2d36ef4f1f7974e)

14 years agos3: Fix a winbind race leading to 100% CPU
Volker Lendecke [Fri, 26 Aug 2011 14:54:18 +0000 (16:54 +0200)] 
s3: Fix a winbind race leading to 100% CPU

This fixes a race condition that leads to the winbindd_children list becoming
corrupted. It happens when on a busy winbind SIGCHLD is a bit late.

Imagine a winbind with multiple requests in the queue for a single child. Child
dies, and before the SIGCHLD handler is called we find the socket to be dead.
wb_child_request_done is called, receiving an error from wb_simple_trans_recv.
It closes the socket. Then immediately the wb_child_request_trigger will do
another fork_domain_child before the signal handler is called. This means that
we do another fork_domain_child, we have child->sock==-1 at this point.
fork_domain_child will do a DLIST_ADD(winbindd_children, child) a second time
where the child is already part of that list. This corrupts the list. Then the
signal handler kicks in, spinning in

for (child = winbindd_children; child != NULL; child = child->next) {

forever. Not good. This patch makes sure that both conditions (sock==-1 and not
part of the list) for a winbindd_child struct match up.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Aug 26 18:51:24 CEST 2011 on sn-devel-104
(cherry picked from commit ed058f4dc3e059967f3c0538bc220866e9c63588)
(cherry picked from commit b181fe9ec50ff63074b217143b6daa5cddfb8853)

14 years agos3: Fix the build of vfs_aixacl2.c
SATOH Fumiyasu [Mon, 22 Aug 2011 04:48:40 +0000 (13:48 +0900)] 
s3: Fix the build of vfs_aixacl2.c

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Aug 25 23:06:12 CEST 2011 on sn-devel-104
(cherry picked from commit faa769ec19b6486675048734837a6e2237d6f0a4)

Fix bug #8390 (vfs_aixacl2.c needs system/filesys.h).
(cherry picked from commit e66a1f06dc0cdbebf6a4adb801317773a09f0dbc)

14 years agos3: Fix bug 8385
Volker Lendecke [Mon, 22 Aug 2011 12:16:26 +0000 (14:16 +0200)] 
s3: Fix bug 8385

Poll and select behave differently regarding error handling. When doing the
connect(2), we can not rely on poll telling us both readability and writability
upon error. Just always try a second connect(2). At least on Linux it returns 0
when it succeeded.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Aug 25 19:39:12 CEST 2011 on sn-devel-104
(cherry picked from commit 50e30afa608dfdeae8a260730ead9761ed424dad)
(cherry picked from commit 45392d05ff059987fb76d3818969177b5a5de6b0)

14 years agoFix bug Bug 8422 - Infinite loop in ACL module code.
Jeremy Allison [Mon, 29 Aug 2011 23:46:15 +0000 (16:46 -0700)] 
Fix bug Bug 8422 - Infinite loop in ACL module code.

Missing assignment means this loop will never terminate. Need to be applied
to 3.5.x and 3.6.1.
(cherry picked from commit 218cccfdf1820a9840a5cbc7df3915b6b58a762d)
(cherry picked from commit 225c66ada497449a55d2eed6dfb27cedf3a863c0)

14 years agoFix bug #8395 - optimize serverid_exists() for Solaris.
Ira Cooper [Mon, 22 Aug 2011 19:46:41 +0000 (12:46 -0700)] 
Fix bug #8395 - optimize serverid_exists() for Solaris.

jra asked:

    Do you have any idea on how many calls it saves,
    and what help the optimization gives ?

As far as calls: Not 100% sure, dtrace pointed the issue out to me, and when I
saw 10-50%(Or more), I looked for an easy fix.

The real expense here is the fnctl locks on the database.  That's pretty
painful.  1000ns per call, and probably 3-4 calls in that chain.  So it doesn't
take much to come out ahead was my math.
(cherry picked from commit 9bf2b3034b4c9523bfac779e518a2a1a6d76ef46)

14 years agotalloc: check block count aftter references test
Andrew Tridgell [Thu, 4 Aug 2011 02:07:19 +0000 (12:07 +1000)] 
talloc: check block count aftter references test

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 73677875b46251f59b66c9713f1decc89bd2ea3e)

The last 7 patches address bug #8384 (Windows XP clients seem to crash smbd
process every once in a while).
(cherry picked from commit 8d46b29595c4da27b175b25a08b945fbeeeab3ec)

14 years agotalloc: added test suite for talloc_free_children()
Andrew Tridgell [Fri, 29 Jul 2011 01:57:07 +0000 (11:57 +1000)] 
talloc: added test suite for talloc_free_children()

this tests the fix from Simo

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104
(cherry picked from commit d004fd0b53fb6f3ae64f0e24cf51f4471d434574)
(cherry picked from commit 2e07c662b08f8bba5cc03efcdcc13165e392b6e8)

14 years agoFix license info for talloc in manpage.
Jelmer Vernooij [Sun, 24 Apr 2011 00:39:14 +0000 (02:39 +0200)] 
Fix license info for talloc in manpage.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr 24 03:27:54 CEST 2011 on sn-devel-104
(cherry picked from commit fb05e82c99f0779bd44371a2bdafdd7147448dd5)
(cherry picked from commit 39b7c96517995d2b14e19a006cb18ef642cb98ff)

14 years agotalloc - improve doxygen comment of "talloc_move"
Matthias Dieter Wallnöfer [Thu, 24 Mar 2011 08:41:19 +0000 (09:41 +0100)] 
talloc - improve doxygen comment of "talloc_move"

Express better that this should be a pointer of a pointer.

Reviewed-by: Tridge
(cherry picked from commit 6723e90d524c8e73f19c06b3ff28867a1a89b14b)
(cherry picked from commit 0c5a41da1375bab225274833ba149ba47df42aec)

14 years agotalloc - some documentation changes
Matthias Dieter Wallnöfer [Thu, 31 Mar 2011 19:32:51 +0000 (21:32 +0200)] 
talloc - some documentation changes

- Fix some typos
- Document better the differences in the behaviour between talloc 1.X and 2.X.
  Previously this seemed a bit spongy to me.

Reviewed-by: Jelmer + Tridge
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Apr  4 11:05:42 CEST 2011 on sn-devel-104
(cherry picked from commit 513574afd759bcb3832374d3ae170f1ed0b0062b)
(cherry picked from commit db9670dd163432d6758a81c5aa6000c13e61b14a)

14 years agotalloc: preserve context name on talloc_free_children()
Simo Sorce [Wed, 27 Jul 2011 16:02:35 +0000 (12:02 -0400)] 
talloc: preserve context name on talloc_free_children()

Otherwise tc->name will end up pointing to garbage when it is not
set to a const but rather to a string allocate as child of the context itself.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 52182a528117c4dd9624f64b34a873c0903ad70a)
(cherry picked from commit 99495ea4d28de530fedc11c94d36bc304cf9ae4a)

14 years agotalloc: ensure the sibling linked list remains valid during a free
Andrew Tridgell [Mon, 8 Aug 2011 08:24:32 +0000 (18:24 +1000)] 
talloc: ensure the sibling linked list remains valid during a free

This ensures that the sibling list of a pointer doesn't become invalid
during a free operation. It is an alternative fix to the fix in
6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of
trying to calculate the parent pointer early

This should fix the subtle spoolss talloc bug that Simo found

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Aug  9 01:53:17 CEST 2011 on sn-devel-104
(cherry picked from commit cf986f200804ce873b43c1ecf2d5e1bd08eb8a25)
(cherry picked from commit 07554082cc9d286ca0628179c9e7f7a493016a57)

14 years agos3-vfs: Fix vfs_chown_fsp.
Jeremy Allison [Sat, 20 Aug 2011 18:47:40 +0000 (20:47 +0200)] 
s3-vfs: Fix vfs_chown_fsp.

Fix bug #8370 (vfs_chown_fsp broken -- returns in the wrong directory).
(cherry picked from commit 909ff854168bf89e8502ff1994a926613ca5a1d5)

14 years agos3:build(autoconf): fix bug #8369: remove irritating "." targets when recent system...
Michael Adam [Thu, 11 Aug 2011 08:49:30 +0000 (10:49 +0200)] 
s3:build(autoconf): fix bug #8369: remove irritating "." targets when recent system libs exist
(cherry picked from commit c544a744db67c2860065b1c5d70dc14ac0fa19ba)

14 years agos3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" with...
Michael Adam [Wed, 10 Aug 2011 11:41:14 +0000 (13:41 +0200)] 
s3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" with NULL

this fixes the fallback to the deprecated spelling idmap:script
(cherry picked from commit 9a41e24753b49b8ef1653dde763fb0764884e616)

14 years agoFix warning messages on Freebsd 4.6.2.
Herb Lewis [Thu, 2 Jun 2011 17:10:39 +0000 (10:10 -0700)] 
Fix warning messages on Freebsd 4.6.2.

Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f0901792324425804592ac7032e3853b4d4c7829)

Fix bug #8365 (backport compiler warnings).
(cherry picked from commit 7039bbcd96a780965d69668d6541d316f7a4cd56)

14 years agos3: Fix bug 8360
Volker Lendecke [Thu, 11 Aug 2011 14:52:22 +0000 (16:52 +0200)] 
s3: Fix bug 8360

OS/2 sends an unexpected write&x/read&x chain
(cherry picked from commit 2aca833308049d005c647aabcd9d894f59698ef4)

14 years agos3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4
Björn Baumbach [Mon, 16 May 2011 12:25:01 +0000 (14:25 +0200)] 
s3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 18 11:58:14 CEST 2011 on sn-devel-104
(cherry picked from commit 192198ad70474e56d4708b65482eee976ea78a05)

Fix bug #8364 (gpfs vfs module build broken).
(cherry picked from commit 8ddea73f7845ee59d4035d40da87664e21e96ed9)

14 years agos3:vfs_prealloc: fix build on SLES8
Björn Jacke [Tue, 9 Aug 2011 15:02:29 +0000 (17:02 +0200)] 
s3:vfs_prealloc: fix build on SLES8

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Aug  9 19:29:08 CEST 2011 on sn-devel-104
(cherry picked from commit 1e76662ae6aa77d7b6e9e8a0266fcb1a1320a7fb)

Fix bug #8363 (vfs_prealloc build broken on SLES8).
(cherry picked from commit 3f791d40daeaac748d5ebc86c8cbd8ce2c580aa9)

14 years agos3: Do central cli_set_error (cherry picked from commit 0645deb1b4a70e45f88116fae16ec...
Volker Lendecke [Thu, 19 May 2011 11:43:15 +0000 (13:43 +0200)] 
s3: Do central cli_set_error (cherry picked from commit 0645deb1b4a70e45f88116fae16ec7f3a1b4d5ed)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Fix bug #7864 (cli_errstr() usage is wrong).
(cherry picked from commit 6b3b5f7dbe0cde783cf557f30865ef684e10ffd5)

14 years agos3: Add a fallback for missing open&x support in OS/X Lion
Volker Lendecke [Fri, 29 Jul 2011 22:25:23 +0000 (15:25 -0700)] 
s3: Add a fallback for missing open&x support in OS/X Lion

The last 4 patches address bug #8338 (MAC Lion - smbclient "Open AndX
Request->STATUS_NOT_SUPPORTED).
(cherry picked from commit 7803eec63dac2fa930ee3a33bcdb2921b5fb970a)

14 years agos3: Make map_open_params_to_ntcreate() available in lib/
Volker Lendecke [Fri, 29 Jul 2011 14:36:58 +0000 (16:36 +0200)] 
s3: Make map_open_params_to_ntcreate() available in lib/
(cherry picked from commit e7f68cc2a76edd8f7cccdc0445c6b9d61e111f46)

14 years agos3: Make is_executable() available in lib/
Volker Lendecke [Fri, 29 Jul 2011 14:14:39 +0000 (16:14 +0200)] 
s3: Make is_executable() available in lib/
(cherry picked from commit eb7a5a708ee39f3284983055a39889c98463366f)

14 years agos3: We only need base_name in map_open_params_to_ntcreate
Volker Lendecke [Fri, 29 Jul 2011 14:12:16 +0000 (16:12 +0200)] 
s3: We only need base_name in map_open_params_to_ntcreate
(cherry picked from commit c9f921156534d38ea2a40d3c5ce8b99d308e5340)

14 years agoWHATSNEW: Correct default value of smb2 max credits.
Karolin Seeger [Tue, 9 Aug 2011 18:49:39 +0000 (20:49 +0200)] 
WHATSNEW: Correct default value of smb2 max credits.

This has been changed by one of the last minute commits.
Thanks to Christian Ambach for reporting!

Karolin
(cherry picked from commit 144f8dd732d47f1360741d516152993ac88cf9b9)

14 years agoWHATSNEW: Start release notes for Samba 3.6.1.
Karolin Seeger [Tue, 9 Aug 2011 18:45:20 +0000 (20:45 +0200)] 
WHATSNEW: Start release notes for Samba 3.6.1.

Karolin
(cherry picked from commit 185548092daa18a8630ae929a1372dc1e226c5f3)

14 years agoVERSION: Bump version up to 3.6.1.
Karolin Seeger [Tue, 9 Aug 2011 18:40:39 +0000 (20:40 +0200)] 
VERSION: Bump version up to 3.6.1.

Karolin
(cherry picked from commit 8498acb8f8c9e4db23f1845e00b7a76a38ba5d31)

14 years agoWHATSNEW: Update changes since rc3. samba-3.6.0
Karolin Seeger [Tue, 9 Aug 2011 11:15:02 +0000 (13:15 +0200)] 
WHATSNEW: Update changes since rc3.

Karolin
(cherry picked from commit 76022256cd23cd71354e21384e2350c761e9f373)

14 years agos3:modules:nfs4_acls: improve fix for bug #8330
Michael Adam [Thu, 28 Jul 2011 07:49:34 +0000 (09:49 +0200)] 
s3:modules:nfs4_acls: improve fix for bug #8330

simplify the check insmbacl4_find_equal_special()

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit d1ab64cbc2d62744f541eea0d80d7b522416ac1c)

14 years agos3:modules fix Bug 8330 NFSv4 ACL merging logic is broken
Christian Ambach [Wed, 27 Jul 2011 12:46:00 +0000 (14:46 +0200)] 
s3:modules fix Bug 8330 NFSv4 ACL merging logic is broken

we should not merge ACEs with different flags (e.g. CI/OI/I/)
Otherwise ACLs get wrong entries and thus wrong semantics

Example:
ACL:BUILTIN\Users:ALLOWED/0x0/FULL
ACL:BUILTIN\Users:ALLOWED/I/READ
got merged to
ACL:BUILTIN\Users:ALLOWED/I/FULL

This is not the same and also leads to wrong displays
in the Windows ACL dialog

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed Jul 27 16:03:51 CEST 2011 on sn-devel-104
(cherry picked from commit 3c05013694c453411b78a1df884a80c8d48e7393)

14 years agos3:lib/events: Fix a bug in run_poll_events().
Stefan Metzmacher [Mon, 8 Aug 2011 16:49:06 +0000 (18:49 +0200)] 
s3:lib/events: Fix a bug in run_poll_events().

Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in
run_events_poll(). They are ignore when building the array
for the syscall in event_add_to_poll_args(), so we need to
ignore them run_events_poll() too.

metze

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug  9 10:11:54 CEST 2011 on sn-devel-104
(cherry picked from commit 020032e114c0e966acf24f24e707942219d60cf3)

Fix bug #8358 (smbd exits with NT_STATUS_INTERNAL_ERROR in run_poll_events()).
(cherry picked from commit 6a587c926b7fdcb934b916a29bdd04bd0ef606b9)

14 years agos3:smb2_server: make sure we grant credits on async read/write operations (bug #8357)
Stefan Metzmacher [Sat, 6 Aug 2011 08:19:21 +0000 (10:19 +0200)] 
s3:smb2_server: make sure we grant credits on async read/write operations (bug #8357)

Currently we skip, the "gone async" interim response on read and write,
this caused the aio code path to grant 0 credits to the client
in the read/write responses.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Aug  7 22:23:57 CEST 2011 on sn-devel-104
(cherry picked from commit 47bffb9b9243dc72d7305cd9ec3e63e176841bf5)
(cherry picked from commit cbd408df89ec51fb06fbfb935458eb8425639bed)

14 years agos3/swat: use strlcat instead of strncat to fix build on old Linux distros
Björn Jacke [Thu, 4 Aug 2011 14:25:08 +0000 (16:25 +0200)] 
s3/swat: use strlcat instead of strncat to fix build on old Linux distros

SLES 9's glibc for example had weird macros where the use of strncat resulted
in the use of strcat which we don't allow.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Thu Aug  4 17:50:24 CEST 2011 on sn-devel-104
(cherry picked from commit d3b4d75364210e2d2a4a1cd806f28b0021f22909)

Fix bug #8362 (build issue on old glibc systems).
(cherry picked from commit 87fa72a5202fe3780d4a61289bf755027cd078f4)

14 years agos3:web/swat: use strtoll() instead of atoi/atol/atoll
Stefan Metzmacher [Fri, 5 Aug 2011 17:48:38 +0000 (19:48 +0200)] 
s3:web/swat: use strtoll() instead of atoi/atol/atoll

This is more portable, as we have a strtoll replacement
in lib/replace.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Aug  6 11:55:45 CEST 2011 on sn-devel-104
(cherry picked from commit a6be0820d09b3f3eabfbb5f4356add303aa8a494)

Fix bug #8347 (CVE-2011-2522 regression for HP-UX, AIX and OSF).
(cherry picked from commit be41d88e55237214e5a27f7bd8d8c15e27d31579)

14 years agoWHATSNEW: Update release notes.
Karolin Seeger [Sun, 7 Aug 2011 19:22:46 +0000 (21:22 +0200)] 
WHATSNEW: Update release notes.

Karolin
(cherry picked from commit d6f841bb3e465e7f05a886eafcb54f8d53b54327)

14 years agos3: Fix smb2 handling error returns from aio
Volker Lendecke [Tue, 2 Aug 2011 19:16:26 +0000 (21:16 +0200)] 
s3: Fix smb2 handling error returns from aio

Found when reading with aio_fork beyond the end of file.

Metze, Jeremy, please check!

Without this we get

[2011/08/02 21:02:54.082661,  0] lib/util.c:778(smb_panic_s3)
  PANIC (pid 2302): smbd/smb2_read.c:593: Type mismatch: name[NULL] expected[struct smbd_smb2_read_state]
[2011/08/02 21:02:54.094316,  0] lib/util.c:882(log_stack_trace)
  BACKTRACE: 23 stack frames:
   #0 bin/smbd(log_stack_trace+0x2d) [0xb72873d8]
   #1 bin/smbd(smb_panic_s3+0x7c) [0xb7287529]
   #2 bin/smbd(smb_panic+0x2f) [0xb7277e1f]
   #3 /root/git/s3-work/source3/bin/libtalloc.so.2 [0xb6c6bc48]
   #4 /root/git/s3-work/source3/bin/libtalloc.so.2 [0xb6c6ec79]
   #5 /root/git/s3-work/source3/bin/libtalloc.so.2(_talloc_get_type_abort+0x34) [0xb6c6ecb3]
   #6 bin/smbd [0xb6fbc405]
   #7 bin/smbd(_tevent_req_notify_callback+0x4a) [0xb729a85a]
   #8 bin/smbd [0xb729a888]
   #9 bin/smbd(_tevent_req_done+0x19) [0xb729aa73]
   #10 bin/smbd [0xb6fae517]
   #11 bin/smbd [0xb6fad258]
   #12 bin/smbd(smbd_aio_complete_aio_ex+0xf5) [0xb6fad6e8]
   #13 /root/git/inst/modules/vfs/aio_fork.so [0xb66d4992]
   #14 bin/smbd(run_events_poll+0x400) [0xb7297df2]
   #15 bin/smbd(smbd_process+0xd75) [0xb6f9d3a7]
   #16 bin/smbd [0xb756f07b]
   #17 bin/smbd(run_events_poll+0x400) [0xb7297df2]
   #18 bin/smbd [0xb7298254]
   #19 bin/smbd(_tevent_loop_once+0x9e) [0xb72986ac]
   #20 bin/smbd(main+0x185c) [0xb7570e59]
   #21 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb6b08455]
   #22 bin/smbd [0xb6f14e01]

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug  2 22:33:15 CEST 2011 on sn-devel-104
(cherry picked from commit 5068a0d14df8cc6f1b4517c64f4356abc6606b58)

Fix bug #8343 (SMB2 crash reading with aio_fork beyond the end of file).
(cherry picked from commit ad75107a33ff7e70d9939b80b3e7e06265ee030e)

14 years agoFix bug 7462 - Non-standard SA_RESETHAND is used in ...lib/tevent/tevent_signal.c
Jeremy Allison [Mon, 1 Aug 2011 18:49:10 +0000 (11:49 -0700)] 
Fix bug 7462 - Non-standard SA_RESETHAND is used in ...lib/tevent/tevent_signal.c

Make SA_RESETHAND conditional on its existance.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Aug  1 22:03:45 CEST 2011 on sn-devel-104
(cherry picked from commit 0c67efdd68b9808542c090b9fd9920e4e37d85d0)
(cherry picked from commit 4b4155c7235d8ec0c93324a782bc815ef08a7ba3)

14 years agoFix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri
Alban Browaeys [Mon, 1 Aug 2011 23:40:22 +0000 (16:40 -0700)] 
Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri

Fix null deref.
(cherry picked from commit cf0c36ab9a5129878b92a52d22aa814eaa737a4c)
(cherry picked from commit ca293af1f06891dfd13171d418047e4fa8c4fc14)

14 years agos3: dbwrap_ctdb.c: Fix bug #8303 #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issue
Björn Baumbach [Tue, 12 Jul 2011 15:32:55 +0000 (17:32 +0200)] 
s3: dbwrap_ctdb.c: Fix bug #8303 #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issue

Check for HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL instead of
CTDB_CONTROL_SCHEDULE_FOR_DELETION, which is an enum member and not a
define.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 18:56:30 CEST 2011 on sn-devel-104
(cherry picked from commit b807c58b655f1ffbf849f5de9eef66136bdb4a52)
(cherry picked from commit 3932178dd3a54723484e833cddf58ff68e7c3417)

14 years agoSecond part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id...
Jeremy Allison [Fri, 29 Jul 2011 18:17:03 +0000 (11:17 -0700)] 
Second part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id: bad message_id

Modify the credit granting algorithm to closer to what I believe
Windows does.

Split up max_credits into 1/16ths, and then scale
the requested credits by how many 16ths have been
currently granted. Less than 1/16th == grant all
requested (100%), scale down as more have been
granted. Never ask for less than 1 if the client
asked for at least 1.
(cherry picked from commit 3e854564315a7bdc5d9837526a813b2b858e0563)

14 years agoFirst part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id...
Jeremy Allison [Fri, 29 Jul 2011 18:16:51 +0000 (11:16 -0700)] 
First part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id: bad message_id

Set default max credits to 8192 now this has been documented in the
SMB2 spec.
(cherry picked from commit 9d579ed2398d7f88c9c02076e612eed877d1ec88)

14 years agos3:loadparm: fix the reload of the configuration: also reload activated registry...
Michael Adam [Fri, 22 Jul 2011 08:11:52 +0000 (10:11 +0200)] 
s3:loadparm: fix the reload of the configuration: also reload activated registry shares

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jul 22 16:53:49 CEST 2011 on sn-devel-104
(cherry picked from commit efbe1602bd014eada4811f336bdccbf4692d3807)

The last 2 patches address bug 8327 (config reload fails to reload shares from
registry).
(cherry picked from commit 254cc7ae23f2b0108bada37b6b59dd90ac198469)

14 years agos3:loadparm: add reload_registry_shares() - reload only those shares already loaded...
Michael Adam [Fri, 22 Jul 2011 08:10:43 +0000 (10:10 +0200)] 
s3:loadparm: add reload_registry_shares() - reload only those shares already loaded (cherry picked from commit ec113a58a4dc4e4f3ea03f7818eb312325f69482)
(cherry picked from commit cc3c8d10940ef5d5d0e636b0f9d46606d46b0dc7)

14 years agonbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdc
Andrew Bartlett [Wed, 27 Jul 2011 02:04:26 +0000 (12:04 +1000)] 
nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdc

This fixes WinXP joining a Samba3 domain, which was broken on hosts
with an even number of characters in the host name.  The alignment
requested in the structure was ignored because of the overall
NDR_NOALIGN set on the packet.

Andrew Bartlett

Fix bug #8326 (WinXP cannot join a Samba3 domain with a 'even' hostname).
(cherry picked from commit 24fe5fea8fb7839dcbcf39a346a31c9e90e7beb9)

14 years agoFix bug #8324 - smbclient cannot list directories from a big-endian machine.
Jeremy Allison [Tue, 26 Jul 2011 22:16:29 +0000 (15:16 -0700)] 
Fix bug #8324 - smbclient cannot list directories from a big-endian machine.

Two uses of the setup array are not being correctly byte-swapped to little
endian.
(cherry picked from commit 146549d7250fefb365675154f0916c37e56faa5d)

14 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

Fix bug #8329 (a code file was accidentially commited).
(cherry picked from commit 0f9a24b7dc9aaae6145ec409191fc16b07c601a8)

14 years agos3:idmap_tdb2: remove the undocumented option of the silly name "tdb:idmap2.tdb"
Michael Adam [Fri, 24 Jun 2011 08:15:02 +0000 (10:15 +0200)] 
s3:idmap_tdb2: remove the undocumented option of the silly name "tdb:idmap2.tdb"

In ancient times, when ctdb had not support for persistent databases and
tdb2 was introduced as a two-layer solution and it was more important than
today to be able to change the location of the permanent database file
because it had to reside on shared storage.

But these were times when idmap_tdb2 was not even officially released.
Nowadays, with ctdb handling the persistent idmap2.tdb database, the path
is stripped anyways, so this undocumented option has become unnecessary
and is hence removed.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jul 27 05:37:57 CEST 2011 on sn-devel-104
(cherry picked from commit 3276060da4e7d495bd5cf5cbf7237e64d948ee77)

The last 10 patches address
bug #8328 (final cleanup of idmap_tdb2 code and docs needed for release).
(cherry picked from commit 742b8c3c14ec8708eb5bfe5e7960c1c93ec0096c)

14 years agos3:idmap_tdb2: remove a legacy comment (cherry picked from commit 67cd2f9d867fad1f7df...
Michael Adam [Thu, 9 Jun 2011 11:36:54 +0000 (13:36 +0200)] 
s3:idmap_tdb2: remove a legacy comment (cherry picked from commit 67cd2f9d867fad1f7df2d6a6a5cdb723336ac495)
(cherry picked from commit 55019ced08d235a3ba9ae27b06379fcb827f9b28)

14 years agos3:idmap_tdb2: remove legacy comment (cherry picked from commit 4b5ada3d27198b49771ac...
Michael Adam [Thu, 9 Jun 2011 11:35:21 +0000 (13:35 +0200)] 
s3:idmap_tdb2: remove legacy comment (cherry picked from commit 4b5ada3d27198b49771acb70ae979087235be783)
(cherry picked from commit 4369aeb41c2fafd6a1e0baff5cbb05d223e869ab)

14 years agos3:idmap_tdb2: remove superfluous initialization with bogus comment (cherry picked...
Michael Adam [Thu, 9 Jun 2011 11:34:04 +0000 (13:34 +0200)] 
s3:idmap_tdb2: remove superfluous initialization with bogus comment (cherry picked from commit 551185573899b6e608863f833633d40ae04458d8)
(cherry picked from commit 5a5b069166d5f224526f6cae049fa14cf35c426a)

14 years agos3:idmap_tdb2: fix a legacy comment that does not apply any more (cherry picked from...
Michael Adam [Thu, 9 Jun 2011 11:07:54 +0000 (13:07 +0200)] 
s3:idmap_tdb2: fix a legacy comment that does not apply any more (cherry picked from commit 7d3dc2164b3929c642127659593e69fc865a6184)
(cherry picked from commit 7f56b6269792300237193b69541f73fb32a986b3)

14 years agos3:doc: add an example with idmap script to the idmap_tdb2 manpage (cherry picked...
Michael Adam [Fri, 24 Jun 2011 09:38:05 +0000 (11:38 +0200)] 
s3:doc: add an example with idmap script to the idmap_tdb2 manpage (cherry picked from commit 86973eee43605a3680fb51470a81ea9ca7f1b515)
(cherry picked from commit 2abe73e5eed10af4ee030449322ddbc4c7054c08)

14 years agos3:docs: remove legacy text from the example in the idmap_tdb2 manpage (cherry picked...
Michael Adam [Fri, 24 Jun 2011 09:36:33 +0000 (11:36 +0200)] 
s3:docs: remove legacy text from the example in the idmap_tdb2 manpage (cherry picked from commit 2f253c2791ccb2421f26f563e3983ee950da1d05)
(cherry picked from commit 66216f6325f33c2a1d7c3e114754efc78d61aae2)

14 years agos3:doc: clarify the idmap script section in the idmap_tdb2 manpage (cherry picked...
Michael Adam [Fri, 24 Jun 2011 09:35:51 +0000 (11:35 +0200)] 
s3:doc: clarify the idmap script section in the idmap_tdb2 manpage (cherry picked from commit 4daab85ae60f2821a1d9d98f1edff6a318e8e3c1)
(cherry picked from commit 29e39194aaa15c44178b16a4abc5583f5ff4688f)

14 years agos3:docs:idmap_tdb2: update the documentation of idmap script
Michael Adam [Fri, 24 Jun 2011 08:59:04 +0000 (10:59 +0200)] 
s3:docs:idmap_tdb2: update the documentation of idmap script

to reflect the new variant "idmap config * : script" of configuring the idmap script
(cherry picked from commit 2aa19b4aeb9de43a0e2b94ad1202f2068b29c710)
(cherry picked from commit 22b9dc3f66c6786a962d7cb462b372fb955a199e)

14 years agos3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * : script...
Michael Adam [Tue, 7 Jun 2011 16:00:36 +0000 (18:00 +0200)] 
s3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * : script" instead

With this patch, "idmap config * : script" will override "idmap : script".
If "idmap : script" is present, a deprecation warning will be printed in any
case. If "idmap config * : script" is not set, then the value of "idmap :script"
will be used for backwards compatibility.
(cherry picked from commit b6c82f18f17cdded771d285930566c1d104686aa)
(cherry picked from commit 7812ce547973a0ad5a69c64e8e708e1b9f3a8687)

14 years agoWHATSNEW: Start release notes for 3.6.0.
Karolin Seeger [Tue, 26 Jul 2011 20:40:15 +0000 (22:40 +0200)] 
WHATSNEW: Start release notes for 3.6.0.

Karolin
(cherry picked from commit 5f9bc1433738002acd9a93946955494908af9c05)

14 years agoVERSION: Bump version up to 3.6.0.
Karolin Seeger [Tue, 26 Jul 2011 20:38:09 +0000 (22:38 +0200)] 
VERSION: Bump version up to 3.6.0.

Karolin
(cherry picked from commit ef152f60c2be5b51c042979ad29596309059af1d)

14 years agoWHATSNEW: Update changes since rc2. samba-3.6.0rc3
Karolin Seeger [Tue, 26 Jul 2011 20:06:04 +0000 (22:06 +0200)] 
WHATSNEW: Update changes since rc2.

Karolin
(cherry picked from commit 1a045c461ec74001596e9ccf8a676328216e547f)

14 years agos3:utils/net_afs fix compiler warnings
Christian Ambach [Fri, 15 Jul 2011 13:44:36 +0000 (15:44 +0200)] 
s3:utils/net_afs fix compiler warnings

this also fixes the usage displays of net afs
(cherry picked from commit 7738d8b89bcf2b43d65f1bf4599a688cb4143768)