[SCM] Samba Shared Repository - branch v3-4-stable updated

2012-04-10 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  9123504 rerun 'make samba3-idl'
   via  afaa5f6 pidl/NDR/Parser: also do range checks on the array size
   via  04355f6 pidl/NDR/Parser: do array range validation in 
ParseArrayPullGetLength()
   via  d84758a pidl/NDR/Parser: use helper variables for array size and 
length
   via  3e89dbf pidl/NDR/Parser: remember if we already know the array 
length
   via  586c3fa pidl/NDR/Parser: use ParseArrayPullGetLength() to get the 
number of array elements (bug #8815 / CVE-2012-1182)
   via  eb8240e pidl/NDR/Parser: split off ParseArrayPullGetSize() and 
ParseArrayPullGetLength()
   via  102e995 pidl/NDR/Parser: simplify logic in DeclareArrayVariables*()
   via  45245f1 pidl/NDR/Parser: declare all union helper variables in 
ParseUnionPull()
   via  b48e41c pidl:NDR/Parser: fix range() for arrays
   via  dd5faa1 pidl: allow foo being on the wire after [length_is(foo)] 
uint8 *buffer
   via  75aeb61 pidl: add support for [string] on fixed size arrays.
   via  0cc91c9 WHATSNEW: Prepare release notes for 3.4.16.
  from  fcd2aeb WHATSNEW: Start release notes for 3.4.16.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 9123504f2b6f9af458510721416cb25993959a31
Author: Stefan Metzmacher 
Date:   Thu Mar 15 18:51:29 2012 +0100

rerun 'make samba3-idl'

metze

The last 12 patches address bug #8815 (PIDL based autogenerated code allows
overwriting beyond of allocated array; CVE-2012-1182).

commit afaa5f66a8686d5f4e371b66e846249a30e1495f
Author: Stefan Metzmacher 
Date:   Thu Mar 15 17:03:05 2012 +0100

pidl/NDR/Parser: also do range checks on the array size

metze

commit 04355f68753aeb85655b7cbd8677899db0c97764
Author: Stefan Metzmacher 
Date:   Thu Mar 15 13:14:48 2012 +0100

pidl/NDR/Parser: do array range validation in ParseArrayPullGetLength()

metze

commit d84758a5c8ce428ac5a3a8cb2e5b8a0e0662ac27
Author: Stefan Metzmacher 
Date:   Thu Mar 15 13:13:20 2012 +0100

pidl/NDR/Parser: use helper variables for array size and length

metze

commit 3e89dbfa0dd0c8cd4bcec8ea868a401f9b132aa3
Author: Stefan Metzmacher 
Date:   Thu Mar 15 15:07:08 2012 +0100

pidl/NDR/Parser: remember if we already know the array length

metze

commit 586c3fab85cde3bd6a5141fbba3bb5fcb6b67ab5
Author: Stefan Metzmacher 
Date:   Thu Mar 15 13:07:47 2012 +0100

pidl/NDR/Parser: use ParseArrayPullGetLength() to get the number of array 
elements (bug #8815 / CVE-2012-1182)

An anonymous researcher and Brian Gorenc (HP DVLabs) working
with HP's Zero Day Initiative program have found this and notified us.

metze

commit eb8240ecb0d82a8f9b3b7c7d317c57f1aff74296
Author: Stefan Metzmacher 
Date:   Thu Mar 15 13:05:39 2012 +0100

pidl/NDR/Parser: split off ParseArrayPullGetSize() and 
ParseArrayPullGetLength()

metze

commit 102e9956316ac2b440bb75eb039b184a2886
Author: Stefan Metzmacher 
Date:   Thu Mar 15 13:12:04 2012 +0100

pidl/NDR/Parser: simplify logic in DeclareArrayVariables*()

metze

commit 45245f10c3bd476bcb49be25bc56bb7811b85d3c
Author: Stefan Metzmacher 
Date:   Thu Mar 15 13:09:51 2012 +0100

pidl/NDR/Parser: declare all union helper variables in ParseUnionPull()

metze

commit b48e41cb5541bec34333f94fc21bcd6c47018869
Author: Stefan Metzmacher 
Date:   Tue Sep 21 05:41:37 2010 +0200

pidl:NDR/Parser: fix range() for arrays

metze
(cherry picked from commit bea4948acb4bbee2fbf886adeb53edbc84de96da)

commit dd5faa13873fbdd92fa4ddd82dc69d34a73e4d1f
Author: Stefan Metzmacher 
Date:   Mon Jul 27 17:34:37 2009 +0200

pidl: allow foo being on the wire after [length_is(foo)] uint8 *buffer

metze
(cherry picked from commit 92791ce9a8439ac06a22afdbeb0d0fc66c32cb31)

commit 75aeb61c38efe28503991834fb5181537cdffc68
Author: Stefan Metzmacher 
Date:   Mon Jul 27 15:52:16 2009 +0200

pidl: add support for [string] on fixed size arrays.

midl also supports this:

struct {
long l1;
[string] wchar_t str[16];
long l2;
};

Where the wire size of str is encoded like a length_is() header:
4-byte offset == 0;
4-byte array length;

The strings are zero terminated.

metze
(cherry picked from commit 7ccc9a6ef563cc855752b4e74152420b9be5af43)

commit 0cc91c98f6d311a92aa308e9fcbac252c96d590d
Author: Karolin Seeger 
Date:   Sat Apr 7 16:24:33 2012 +0200

WHATSNEW: Prepare release notes for 3.4.16.

Karolin

---

Summary of changes:
 WHATSNEW.txt |   14 +-
 librpc/gen_ndr/ndr_dfs.c |  840 
 librpc/gen_ndr/ndr_drsblobs.c|  156 ++-
 librpc/gen_ndr/ndr_drsuapi.c |  971 

[SCM] Samba Shared Repository - branch v3-4-stable updated

2012-04-10 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  e93e5bd WHATSNEW: Fix typo.
   via  de125e2 WHATSNEW: Start release notes for Samba 3.4.17.
   via  5a68f1e8 VERSION: Bump version up to 3.4.17.
  from  9123504 rerun 'make samba3-idl'

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit e93e5bdb41fb28f1af5e3b072ddfd2552e58fd0c
Author: Karolin Seeger 
Date:   Tue Apr 10 20:33:06 2012 +0200

WHATSNEW: Fix typo.

Karolin

commit de125e2aef6f9b465736fa5c9fac6286d7ed6a16
Author: Karolin Seeger 
Date:   Tue Apr 10 20:32:16 2012 +0200

WHATSNEW: Start release notes for Samba 3.4.17.

Karolin

commit 5a68f1e8255318f3383b04ebc32ddd6e715cd54a
Author: Karolin Seeger 
Date:   Tue Apr 10 20:30:09 2012 +0200

VERSION: Bump version up to 3.4.17.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   47 ---
 source3/VERSION |2 +-
 2 files changed, 45 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index dd400e0..41685fc 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,47 @@
==
+   Release Notes for Samba 3.4.17
+  , 2012
+   ==
+
+
+This is a security release in order to address
+CVE- ().
+
+o  
+
+Changes since 3.4.16
+
+
+
+o   Stefan Metzmacher 
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.16
-  April 10, 2011
+  April 10, 2012
==
 
 
@@ -42,8 +83,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.15
diff --git a/source3/VERSION b/source3/VERSION
index 756104f..5c569c6 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=16
+SAMBA_VERSION_RELEASE=17
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2012-04-30 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  55045f5 Fix self granting privileges in security=ads.
   via  a78242b WHATSNEW: Release notes 3.4.17.
  from  e93e5bd WHATSNEW: Fix typo.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 55045f52181e5448c2aeefabde047128158d7c2e
Author: Jeremy Allison 
Date:   Tue Apr 17 16:39:00 2012 -0700

Fix self granting privileges in security=ads.

CVE-2012-2111

commit a78242b544ab1a7b486856b87824050deca661dc
Author: Karolin Seeger 
Date:   Sat Apr 28 18:58:03 2012 +0200

WHATSNEW: Release notes 3.4.17.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   15 ++---
 source3/rpc_server/srv_lsa_nt.c |   42 +++---
 2 files changed, 49 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 41685fc..4495fb8 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,19 +1,26 @@
==
Release Notes for Samba 3.4.17
-  , 2012
+  April 30, 2012
==
 
 
 This is a security release in order to address
-CVE- ().
+CVE-2012-2111 (Incorrect permission checks when granting/removing
+privileges can compromise file server security).
+
+o  CVE-2012-2111:
+   Samba 3.4.x to 3.6.4 are affected by a
+   vulnerability that allows arbitrary users
+   to modify privileges on a file server.
 
-o  
 
 Changes since 3.4.16
 
 
 
-o   Stefan Metzmacher 
+o   Jeremy Allison 
+* Fix  incorrect permission checks when granting/removing
+  privileges (CVE-2012-2111).
 
 
 ##
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index f187432..a405dd2 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -1579,6 +1579,15 @@ NTSTATUS _lsa_CreateAccount(pipes_struct *p,
 {
struct lsa_info *handle;
struct lsa_info *info;
+   uint32 des_access = r->in.access_mask;
+   uint32 acc_granted;
+   uint32 owner_access = (LSA_ACCOUNT_ALL_ACCESS &
+   ~(LSA_ACCOUNT_ADJUST_PRIVILEGES|
+   LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS|
+   DELETE_ACCESS));
+   SEC_DESC *psd = NULL;
+   size_t sd_size;
+   NTSTATUS status;
 
/* find the connection policy handle. */
if (!find_policy_by_hnd(p, r->in.handle, (void **)(void *)&handle))
@@ -1600,6 +1609,27 @@ NTSTATUS _lsa_CreateAccount(pipes_struct *p,
if ( is_privileged_sid( r->in.sid ) )
return NT_STATUS_OBJECT_NAME_COLLISION;
 
+   /* Work out max allowed. */
+   map_max_allowed_access(p->server_info->ptok, &des_access);
+
+   /* map the generic bits to the lsa policy ones */
+   se_map_generic(&des_access, &lsa_policy_mapping);
+
+   /* get the generic lsa policy SD until we store it */
+   status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size, 
&lsa_policy_mapping,
+   r->in.sid, owner_access);
+   if (!NT_STATUS_IS_OK(status)) {
+   return status;
+   }
+
+   status = access_check_object(psd, p->server_info->ptok,
+   NULL, 0, des_access,
+   &acc_granted, "_lsa_CreateAccont" );
+
+   if (!NT_STATUS_IS_OK(status)) {
+   return status;
+   }
+
/* associate the user/group SID with the (unique) handle. */
 
info = TALLOC_ZERO_P(p->mem_ctx, struct lsa_info);
@@ -1608,7 +1638,7 @@ NTSTATUS _lsa_CreateAccount(pipes_struct *p,
}
 
info->sid = *r->in.sid;
-   info->access = r->in.access_mask;
+   info->access = acc_granted;
info->type = LSA_HANDLE_ACCOUNT_TYPE;
 
/* get a (unique) handle.  open a policy on it. */
@@ -1631,6 +1661,10 @@ NTSTATUS _lsa_OpenAccount(pipes_struct *p,
size_t sd_size;
uint32_t des_access = r->in.access_mask;
uint32_t acc_granted;
+   uint32_t owner_access = (LSA_ACCOUNT_ALL_ACCESS &
+   ~(LSA_ACCOUNT_ADJUST_PRIVILEGES|
+   LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS|
+   STD_RIGHT_DELETE_ACCESS));
NTSTATUS status;
 
/* find the connection policy handle. */
@@ -1653,7 +1687,7 @@ NTSTATUS _lsa_OpenAccount(pipes_struct *p,
/* get the generic lsa account SD until we store it */
status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size,
&lsa_account_mapping,
-   r->in.sid, LSA_ACCOUNT_ALL_ACCESS);
+   r->in.sid, owner_access);
if (!NT_STATUS_IS_OK(status)) 

[SCM] Samba Shared Repository - branch v3-4-stable updated

2012-04-30 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  4c0ff85 WHATSNEW: Start release notes for 3.4.18.
   via  195943b VERSION: Bump version number up to 3.4.18.
  from  55045f5 Fix self granting privileges in security=ads.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 4c0ff855799ffd2067768869f379d2d2e3d3b514
Author: Karolin Seeger 
Date:   Mon Apr 30 20:53:59 2012 +0200

WHATSNEW: Start release notes for 3.4.18.

Karolin

commit 195943b7bf95e4a85795f86dda0cf71170c7c2de
Author: Karolin Seeger 
Date:   Mon Apr 30 20:51:55 2012 +0200

VERSION: Bump version number up to 3.4.18.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   46 --
 source3/VERSION |2 +-
 2 files changed, 45 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 4495fb8..4283231 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,46 @@
==
+   Release Notes for Samba 3.4.18
+  , 2012
+   ==
+
+
+This is a security release in order to address
+CVE-2012- ().
+
+o  CVE-2012-:
+
+
+Changes since 3.4.17
+
+
+
+o   Jeremy Allison 
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.17
   April 30, 2012
==
@@ -43,8 +85,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.16
diff --git a/source3/VERSION b/source3/VERSION
index 5c569c6..7a625bf 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=17
+SAMBA_VERSION_RELEASE=18
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2009-10-22 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  470f322... WHATSNEW: Update changes since 3.4.2.
  from  1b5efd6... s3:docs: Add info about how to obtain cifs module in 
cifs mount helper manpage (cherry picked from commit 
a224392649ffb81dc1d67f41a01dd983b76d513b)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 470f32243f0f02d3b1078f6ffeb126bdbda7b05d
Author: Karolin Seeger 
Date:   Thu Oct 22 16:22:10 2009 +0200

WHATSNEW: Update changes since 3.4.2.

Karolin
(cherry picked from commit 8e55d149ab4de1a769a8a720e6f432476e719055)

---

Summary of changes:
 WHATSNEW.txt |   88 -
 1 files changed, 86 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 27c3496..9f302aa 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@
=
Release Notes for Samba 3.4.3
- , 2009
+October , 2009
=
 
 
@@ -8,7 +8,8 @@ This is the latest stable release of Samba 3.4.
 
 Major enhancements in Samba 3.4.3 include:
 
-   o
+   o Fix trust relationships to windows 2008 (2008 r2) (bug #6711).
+   o Fix file corruption using smbclient with NT4 server (bug #6606).
 
 
 ##
@@ -19,6 +20,89 @@ Changes since 3.4.2
 ---
 
 
+o   Jeremy Allison 
+* BUG 6529: Offline files conflict with Vista and Office 2003.
+* BUG 6726: SIVAL should have been an SVAL.
+* BUG 6769: Fix symlink unlink.
+* BUG 6774: smbd crashes if "aio write behind" is set.
+* BUG 6776: Fix core dump caused by running overlapping Byte Lock test.
+* BUG 6781: Fix renaming subfolders in Explorer view.
+* BUG 6793: Fix Winbind crash with "INTERNAL ERROR: Signal 6".
+* BUG 6796: Deleting an event context on shutdown can cause smbd to crash.
+
+
+o   Günther Deschner 
+* BUG 6711: Fix trust relationships to windows 2008 (2008 r2).
+* BUG 6815: Fix Windows 2008 R2 SPNEGO negTokenTarg parsing failure.
+
+
+o   Olaf Flebbe 
+* BUG 6772: Allow outstanding_aio_calls to be decremented.
+* BUG 6804: Fix hpux compiler issue.
+* BUG 6805: Correctly handle aio_error() and errno.
+
+
+o   Björn Jacke 
+* BUG 6704: Fix syntax error in avahi configure test.
+* BUG 6728: BSD needs sys/sysctl.h included to build properly.
+* BUG 6824: Fix avahi activation.
+* QNX doesn't know uint - replace with uint_t.
+
+
+o   Andrew Klosterman 
+* BUG 6690: Fix wrong error check in profile.
+
+
+o   Marc Aurele La France 
+* BUG 6707: Fix an occasional segfault in config file parsing.
+
+
+o   Jeff Layton 
+* BUG 6810: Add support for finding alternate credcaches to cifs.upcall.
+
+
+o   Volker Lendecke 
+* BUG 6606: Fix file corruption using smbclient with NT4 server.
+* BUG 6703: Allow smbstatus as non-root.
+* BUG 6731: Fix reading beyond the end of a named stream in xattr_streams.
+* BUG 6765: Add a "hidden" parameter "share:fake_fscaps".
+* BUG 6793: Fix segfault in winbindd_pam_auth.
+* BUG 6797: Fix a memleak in libwbclient.
+* BUG 6807: Fix a segfault in "net rpc trustdom list" for long domain 
names.
+* Fix an uninitialized variable.
+* Only ever handle one event after a select call.
+
+
+o   Derrell Lipman 
+* BUG 6532: Fix domain enumeration if master browser has space in name.
+
+
+o   Stefan Metzmacher 
+* BUG 6711: Fix trust relationships to windows 2008 (2008 r2).
+
+
+o   Buchan Milne 
+* BUG 6791: Fix linking order in cifs.upcall.
+
+
+o   Lars Müller 
+* BUG 6710: Adjust regex to match variable names including underscores.
+* Conditional install of the cifs.upcall man page.
+
+
+o   Shirish Pargaonkar 
+* BUG 4675: mount.cifs: Do not attempt to update /etc/mtab if it is
+  a symbolic link.
+
+
+o   Simo Sorce 
+* BUG 6764: Fix timeval calculation.
+
+
+o   Bo Yang 
+* BUG 6735: Don't overwrite password in pam_winbind, subsequent pam modules
+  might use the old password and new password.
+* BUG 6811: Fix reference to freed memory in pam_winbind.
 
 
 ##


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2009-10-26 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  b42a0db... s3:docs: Public is not a synonym for access based 
shareenum.
   via  10bd0b5... s3: Fix crash in pam_winbind, another reference to freed 
memory.
   via  00c42f09.. Fix bug 6829 - smbclient does not show special 
characters properly. All successful calls to cli_session_setup() *must* be 
followed by calls to cli_init_creds() to stash the credentials we successfully 
connected with. There were 2 codepaths where this was missing. This caused 
smbclient to be unable to open the \srvsvc pipe to do an RPC netserverenum, and 
cause it to fall back to a RAP netserverenum, which uses DOS codepage 
conversion rather than the full UCS2 of RPC, so the returned characters were 
not correct (unless the DOS codepage was set correctly). Phew. That was fun to 
track down :-). Includes logic simplification in libsmb_server.c Jeremy. 
(cherry picked from commit 587ca743bf1491e97c984ce4bec5a9bd0a1ae69a)
   via  6cbf9e8... Fix bug 6828 - infinite timeout occurs when byte lock 
held outside of samba Jeremy. (cherry picked from commit 
a572c28ca3daa199d78fc340819c5c9ff53a3ed6)
   via  4cdb4ae... s3: Don't fail authentication when one or some group of 
require-membership-of is invalid.
  from  470f322... WHATSNEW: Update changes since 3.4.2.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit b42a0dbc996d8e40b4893b11445435a781de4afa
Author: Karolin Seeger 
Date:   Mon Oct 26 10:14:51 2009 +0100

s3:docs: Public is not a synonym for access based shareenum.

Fix build warning.

Karolin
(cherry picked from commit 35dc481289c28a77f354dd76193d6298de32c66d)
(cherry picked from commit 7601427a2db1263b0192c1a78d8bacb7eb0b74da)
(cherry picked from commit d6ecfb23cfc841ad0bfe8ae677ddbbba7fd36f31)

commit 10bd0b5e0dcc25f4e6803ca3507b3b09a85f378c
Author: Bo Yang 
Date:   Sat Oct 24 09:20:00 2009 +0800

s3: Fix crash in pam_winbind, another reference to freed memory.

Fix bug #6840.

Signed-off-by: Bo Yang 
(cherry picked from commit b9a3f1dd85d168c15df846dba525f4f882d1acf8)
(cherry picked from commit a0fbf067011ae50d63c6ed2a79f1ff00c2ce2d11)

commit 00c42f0981a10144dc78b86336f5d5177780a4bd
Author: Jeremy Allison 
Date:   Thu Oct 22 15:30:47 2009 -0700

Fix bug 6829 - smbclient does not show special characters properly. All 
successful calls to cli_session_setup() *must* be followed by calls to 
cli_init_creds() to stash the credentials we successfully connected with. There 
were 2 codepaths where this was missing. This caused smbclient to be unable to 
open the \srvsvc pipe to do an RPC netserverenum, and cause it to fall back to 
a RAP netserverenum, which uses DOS codepage conversion rather than the full 
UCS2 of RPC, so the returned characters were not correct (unless the DOS 
codepage was set correctly). Phew. That was fun to track down :-). Includes 
logic simplification in libsmb_server.c Jeremy.
(cherry picked from commit 587ca743bf1491e97c984ce4bec5a9bd0a1ae69a)

commit 6cbf9e806644021aef4ad0d1d97c97e1e972e18e
Author: Jeremy Allison 
Date:   Tue Oct 20 18:10:30 2009 -0700

Fix bug 6828 - infinite timeout occurs when byte lock held outside of samba 
Jeremy.
(cherry picked from commit a572c28ca3daa199d78fc340819c5c9ff53a3ed6)

commit 4cdb4ae29289ef17ad21871f989f18983bc75d36
Author: Bo Yang 
Date:   Thu Oct 15 06:23:48 2009 +0800

s3: Don't fail authentication when one or some group of 
require-membership-of is invalid.

Signed-off-by: Bo Yang 
(cherry picked from commit 31f1a36901b5b8959dc51401c09c114829b50392)

Fix bug #6826.
(cherry picked from commit f383e5f549f9f2075a064ba3d88fa9b34c5e3389)

---

Summary of changes:
 .../smbdotconf/security/accessbasedshareenum.xml   |1 -
 nsswitch/pam_winbind.c |   35 +---
 source3/libsmb/clidfs.c|9 +
 source3/libsmb/libsmb_server.c |8 
 source3/smbd/blocking.c|   26 ++
 5 files changed, 65 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/smbdotconf/security/accessbasedshareenum.xml 
b/docs-xml/smbdotconf/security/accessbasedshareenum.xml
index c2977c4..8b94648 100644
--- a/docs-xml/smbdotconf/security/accessbasedshareenum.xml
+++ b/docs-xml/smbdotconf/security/accessbasedshareenum.xml
@@ -3,7 +3,6 @@
  context="S"
  basic="1" advanced="1" developer="1"
 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc";>
- public
  
  If this parameter is yes for a
 service, then the share hosted by the service will only be visible
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 132d637..ec05f75 100644

[SCM] Samba Shared Repository - branch v3-4-stable updated

2009-10-26 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  4e475de... WHATSNEW: Update release notes.
  from  b42a0db... s3:docs: Public is not a synonym for access based 
shareenum.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 4e475de9c1c2ed5a094a556310fcbfe955b4c884
Author: Karolin Seeger 
Date:   Mon Oct 26 12:02:40 2009 +0100

WHATSNEW: Update release notes.

Karolin
(cherry picked from commit 5158bdcc222cb38b7cf4939e09f6d0fbb7868de2)

---

Summary of changes:
 WHATSNEW.txt |   11 ++-
 1 files changed, 10 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 9f302aa..eef1c15 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@
=
Release Notes for Samba 3.4.3
-October , 2009
+October 29, 2009
=
 
 
@@ -29,6 +29,8 @@ o   Jeremy Allison 
 * BUG 6781: Fix renaming subfolders in Explorer view.
 * BUG 6793: Fix Winbind crash with "INTERNAL ERROR: Signal 6".
 * BUG 6796: Deleting an event context on shutdown can cause smbd to crash.
+* BUG 6828: Fix infinite timeout when byte lock held outside of Samba.
+* BUG 6829: Fix displaying of multibyte characters in smbclient.
 
 
 o   Günther Deschner 
@@ -95,6 +97,10 @@ o   Shirish Pargaonkar 
   a symbolic link.
 
 
+o   Karolin Seeger 
+* Fix warning occuring when building the manpages.
+
+
 o   Simo Sorce 
 * BUG 6764: Fix timeval calculation.
 
@@ -103,6 +109,9 @@ o   Bo Yang 
 * BUG 6735: Don't overwrite password in pam_winbind, subsequent pam modules
   might use the old password and new password.
 * BUG 6811: Fix reference to freed memory in pam_winbind.
+* BUG 6826: Don't fail authentication when one or some group of
+  require-membership-of is invalid.
+* BUG 6840: Fix crash in pam_winbind.
 
 
 ##


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2009-10-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  8cd146c... WHATSNEW: Complete release notes.
  from  4e475de... WHATSNEW: Update release notes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 8cd146c8be065464c0fb702abe5295c6a51c55ca
Author: Karolin Seeger 
Date:   Thu Oct 29 08:45:36 2009 +0100

WHATSNEW: Complete release notes.

Karolin
(cherry picked from commit 508ef0261c56a6d93257d4e2b4cb917cb8bd10bb)

---

Summary of changes:
 WHATSNEW.txt |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index eef1c15..ca66189 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -10,6 +10,7 @@ Major enhancements in Samba 3.4.3 include:
 
o Fix trust relationships to windows 2008 (2008 r2) (bug #6711).
o Fix file corruption using smbclient with NT4 server (bug #6606).
+   o Fix Windows 7 share access (which defaults to NTLMv2) (bug #6680).
 
 
 ##


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-01-04 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  656624f... WHATSNEW: Update changes.
   via  2ca6165... Prevent NULL dereference if group has no members
  from  ce98fae... WHATSNEW: Update changes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 656624f2d643567451f8c7f1f9bb91a6262148fa
Author: Karolin Seeger 
Date:   Mon Jan 4 13:59:21 2010 +0100

WHATSNEW: Update changes.

Karolin
(cherry picked from commit 945b2d1982d4e47aed2552a29e522b3c03b931f4)

commit 2ca6165c786b30f6bd6667a5517e43ea39f79875
Author: Jim McDonough 
Date:   Wed Dec 30 15:04:55 2009 -0500

Prevent NULL dereference if group has no members

Fix bug #7014 (domain mode winbind crashes retriveing empty group members).
(cherry picked from commit 7ea471ba8db84b4fb2f02672e59a9f2a9932b4fa)

---

Summary of changes:
 WHATSNEW.txt|2 ++
 source3/winbindd/winbindd_rpc.c |8 
 2 files changed, 6 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 129cd3f..18d0d31 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -10,6 +10,7 @@ Major enhancements in Samba 3.4.4 include:
 
o Fix interdomain trust relationships with Win2008R2 (bug #6697).
o Fix Winbind crashes when queried from nss (bug #6889).
+   o Fix Winbind crash when retrieving empty group members (bug #7014).
o Fix "UID range full" error in Winbind (bug #6901).
o Fix multiple LDAP servers in "idmap backend" and "idmap alloc
  backend" (bug #6910).
@@ -66,6 +67,7 @@ o   Volker Lendecke 
 
 o   Jim McDonough 
 * BUG 6967: Fix 'net ads join' with OU.
+* BUG 7014: Fix Winbind crash when retrieving empty group members.
 
 
 o   Andrew Tridgell 
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index f176fb3..aa8a5c8 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -789,16 +789,16 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain 
*domain,
 if (!NT_STATUS_IS_OK(result))
return result;
 
-   *num_names = rids->count;
-   rid_mem = rids->rids;
-
-   if (!*num_names) {
+   if (!rids || !rids->count) {
names = NULL;
name_types = NULL;
sid_mem = NULL;
return NT_STATUS_OK;
}
 
+   *num_names = rids->count;
+   rid_mem = rids->rids;
+
 /* Step #2: Convert list of rids into list of usernames.  Do this
in bunches of ~1000 to avoid crashing NT4.  It looks like there
is a buffer overflow or something like that lurking around


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-01-18 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  6ac4141... WHATSNEW: Update changes.
   via  04922a5... s3: Fix a crash in libsmbclient used against the 
OpenSolaris CIFS server
   via  724d642... Fix bug 7045 - Bad (non memory copying) interfaces in 
smbc_set calls.
   via  7eff7ca... WHATSNEW: Update changes since 3.4.4.
   via  53a601f... s3-libsmbclient: Fix crash bug in SMBC_parse_path().
   via  41b5680... docs: add -K option to the pdbedit manpage.
   via  56ca077... Fix bug #7036 - net rpc getsid fails in hardened windows 
environments.
   via  8b5a4f6... Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV) 
(cherry picked from commit ca847952054f5bbde1d40ad4260589b6fcc9721d) (cherry 
picked from commit 62bed0de7f6dbde183c3002253008941c4b88b3f)
   via  dc92cbb... smbd: Fix opening the quota magic file
   via  5eec352... Re-fix bug 5202 - cannot change ACLs on writable file 
with "dos filemode=yes"
   via  ed27534... Second part of the fix for bug #7020 - smbd using 2G 
memory.
   via  bb064b9... Fix bug #7020 - smbd using 2G memory.
   via  e68c574... WHATSNEW: Start release notes for 3.4.5.
   via  3b05073... VERSION: Raise version number up to 3.4.5.
  from  656624f... WHATSNEW: Update changes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 6ac41410868711200442413dad6461771cda977b
Author: Karolin Seeger 
Date:   Mon Jan 18 12:37:16 2010 +0100

WHATSNEW: Update changes.

Karolin
(cherry picked from commit fb7af5cfcf4f8c45e4c56f85a82eb93647068c8b)

commit 04922a546878687f6684b403f4fd250c03033e9d
Author: Volker Lendecke 
Date:   Sat Jan 16 13:31:44 2010 +0100

s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server

A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in
totalentries, but the array in ctr only contains 15 entries. Look at the 
right
delimiter for walking the array.

Fix bug #7046 (libsmbclient crash against OpenSolaris CIFS server).
(cherry picked from commit 734446bb3a8984ec805c73e06e553312b46e4094)

commit 724d6423c961e01745128dbc58c7946f1e36b043
Author: Jeremy Allison 
Date:   Fri Jan 15 17:49:56 2010 -0800

Fix bug 7045 - Bad (non memory copying) interfaces in smbc_set calls.

In smbc_free_context libsmbclient just called free() on the string options
so it assumes the callers have malloced them before setting them via 
smbc_set
calls.

Change to correctly malloc/free string options to the library.
Protect against SMB_STRDUP of null.

Contains 2d41b1ab78639abe4ae030ff482573f464564dd7 and
f85b6ee90b88c7f7b2a92c8a5f3e2ebe59c1087b from master.

Jeremy
(cherry picked from commit 1d9dc38aec417c8ccc9fa34d32015ee57d877ba9)

commit 7eff7ca9c099e887bbedc15ed973e83a0ab47712
Author: Karolin Seeger 
Date:   Fri Jan 15 15:26:20 2010 +0100

WHATSNEW: Update changes since 3.4.4.

Karolin
(cherry picked from commit b8ff43eedef4315595e6b4c4467e8e2d8d19ffc4)

commit 53a601ff30fa7b6cf2014b1b09a9736ea9b36399
Author: Günther Deschner 
Date:   Thu Jan 14 19:34:26 2010 +0100

s3-libsmbclient: Fix crash bug in SMBC_parse_path().

Patch from Tim Waugh .
This resolves https://bugzilla.redhat.com/show_bug.cgi?id=552658

LIBSMBCLIENT-OPENDIR torture test checks this as well.

Guenther
(cherry picked from commit e635b0074c55e0376495abe940355aa7b04f0b70)

Fix bug #7043 (SIGSEGV in "SMBC_parse_path").
(cherry picked from commit 01009416998219a27268211a3ae26d7b3ab157f8)

commit 41b56802df244a45bae188e186323f86c2a38531
Author: Michael Adam 
Date:   Tue Jan 12 08:39:36 2010 +0100

docs: add -K option to the pdbedit manpage.

Thanks to Oota Toshiya  for pointing this out!

Michael

Fix bug #7041.
(cherry picked from commit 918045b22b1607acf51c40d8c8765862f3400a1d)

commit 56ca0778fb492e60ec64307f06a8ec84b5889561
Author: Jeremy Allison 
Date:   Thu Jan 14 15:39:30 2010 -0800

Fix bug #7036 - net rpc getsid fails in hardened windows environments.

Fix suggested by dave.daughe...@centrify.com.
(cherry picked from commit 6653cc43233381a941cdd85550f04b087fe880ff)
(cherry picked from commit 59b46630ac205bdfe409c0c8b60dc5f5ddad5cf1)

commit 8b5a4f62106616431ee32cc85cd5186c704dbc44
Author: SASAJIMA Toshihiro 
Date:   Tue Jan 12 21:43:23 2010 -0800

Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV) (cherry picked from 
commit ca847952054f5bbde1d40ad4260589b6fcc9721d)
(cherry picked from commit 62bed0de7f6dbde183c3002253008941c4b88b3f)

commit dc92cbbe3a1c26e6e98794ff9ce6e7bbdcceedd8
Author: Stefan Metzmacher 
Date:   Mon Dec 21 16:26:34 2009 +0100

smbd: Fix opening the quota magic file

This fixes bug #6642 and bug #6919.

metze
(cherry picked from commit 7fd0767c6abdc9f4c45

[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-02-17 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  34d5071... WHATSNEW: Update changes since 3.4.5.
   via  45b2e94... cifs.upcall: allocate a talloc context for 
smb_krb5_unparse_name
   via  27b8ae5... s3-docs: Add missing para end tag.
   via  f57eeba... spoolss: disable GetPrinterDriver level 101 (as called 
by XP).
   via  c02c05d... s3-docs: fix eventlogadm manpage typo.
   via  c4607c0... Fixes issue with preexec scripts creating a share 
directory, and problems if a smb.conf reload turns wide links back on after a 
connection is establised.
   via  e6f9d3c... s3: Fix typo found by jhell  (cherry 
picked from commit 271a4c60dbec0d001dc55df58de8e54274137853) (cherry picked 
from commit eb390b8f917f52eb28f46f39a19abdc717051f3d) (cherry picked from 
commit f8dbb021393edf9d8394b5b7adf03c3432257ce7)
   via  6f807f5... s3-spoolss: implement spoolss_EnumJobs level 3.
   via  7b6b5c4... s3:passdb: only use gid_to_sid() result if the result is 
a group of our local sam
   via  2c08182... s3:pdb_ldap: don't search for the users primary group, 
if we already know it
   via  adaaf2c... s3:pdb_ldap: optimize ldapsam_alias_memberships() and 
cache ldap searches.
   via  9cae496... s3:pdb_ldap: try to build the full unix_pw structure 
with ldapsam:trusted support
   via  c19ee2b... s3:passdb: speed up pdb_get_group_sid()
   via  bece99d... s3: Make pdb_copy_sam_account also copy the group sid
   via  35752c0... s3: shortcut gid_to_sid when "ldapsam:trusted = yes"
   via  b9ec2da... s3:is_trusted_domain: shortcut if domain name == 
global_sam_name
   via  07019c3... s3:is_trusted_domain: shortcut if domain name is NULL or 
empty
   via  17ef5e9... s3: shortcut uid_to_sid when "ldapsam:trusted = yes"
   via  ba734d2... s3:smbd: also fill the memcache with sid<->id mappings 
in ldapsam_sid_to_id()
   via  a635050... s3:smbd: make idmap cache persistent for 
"ldapsam:trusted".
   via  12f4e9a... Fix large paged search
   via  a50dc30... 
=?utf-8?q?=D1=953:ldap:=20search=20for=20account=20policies=20in=20objectclass=20sambaDomain,=20not=20*
   via  d416973... s3:ldap: don't search when no values where found (cherry 
picked from commit 70063522065ab3e5a21fb11db0097b808aa11100)
   via  9206eb8... Fix bug #7122 - Reading a large browselist fails (server 
returns invalid values in subsequent SMBtrans replies)
   via  f030e76... Fix off-by-one error in working out the limit of the 
NetServerEnum comment.
   via  5ea0fbb... s3:smbd: use StrCaseCmp() instead of strcasecmp
   via  f364e84... s3:smbd: Fix really ugly bool vs. int bug!!!
   via  7948c58... s3:libsmb: fix NetServerEnum3 rap calls.
   via  f7c5a16... s3:smbd: implement api_RNetServerEnum3
   via  fdc1887... util: added binsearch.h for binary array searches
   via  dddb1c4... s3:smbd: add/improve some DEBUG messages in 
api_RNetServerEnum2()
   via  8e336a0... s3:smbd: rename api_RNetServerEnum => api_RNetServerEnum2
   via  c0fa8a3... Missed one check on the memcpy for bug #7063.
   via  17a37d5... Second part of fix for bug 7063 - Samba 3.4.5 on ubuntu 
8.04 64 bit - Core dumps.
   via  ae430b8... Fix bug 7104 - "wide links" and "unix extensions" are 
incompatible.
   via  799f1d9... Fix bug 7063 - Samba 3.4.5 on ubuntu 8.04 64 bit - Core 
dumps.
   via  fc6616e... s3: Fix an uninitialized variable reference
   via  4d8fb15... s3: Fix malformed require_membership_of_sid.
   via  91a38a7... s3: normalize "Changing password for" msg IDs and STRs
   via  42a78fb... s3:libsmb: don't reuse the callers stype variable in 
cli_NetServerEnum()
   via  2614774... Add cross option to samba_cv_linux_getgrouplist_ok
   via  fff94aa... s3/smbd: Fix string buffer overflow causing heap 
corruption
   via  b5c8ef8... s3: Simplify the code a bit: Catch (len==0) early
   via  fb5f17d... Fix bug 7081 - vfs_expand_msdfs doesn't work correctly 
(with fix identified)
   via  afbf11a... Fix bug #7072 - Accounts can't be unlocked from ldap.
   via  c81c109... Fix bug #7067 - Linux asynchronous IO (aio) can cause 
smbd to fail to respond to a read or write.
   via  389c94a... Do not segfault in pdb_search_destructor if no real 
search was started (cherry picked from commit 
d07464b21fe652e205f5eb2c74d12495bab100ce)
   via  3b330fe... s3-docs: Adapt version in man ldbrename.
   via  21a797c... s3/docs: Add missing meta data to man ldbrename.
   via  8e2eece... s3: Fix bug 7052: "DFS broken on AIX (maybe others)" 
(cherry picked from commit c531d00abdb19ff6ba4c60ebdcc8319949c6) (cherry 
picked from commit f21796955e7aa2e84a1c810612f2fdee2bde611c) (cherry picked 
from commit 28b3cf328312a26cd72bbc54f3283bc46b51bc32)
   via  2e75a6a... s3-docs: Fix typos.
   via  90b0ff5... s3:pdb_ldap: restore Samba 3.0.x behavior and use the 
first "uid" value.
   via  35aa00b... s3:smbldap: add s

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-01-22 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  247949c WHATSNEW: Add major enhancements.
   via  2cda481 WHATSNEW: Update changes since 3.4.9.
   via  18412f6 WHATSNEW: Start to add changes since 3.4.9.
   via  efb89c2 s3-rpcclient: Fix bug #7880: cmd_spoolss_deletedriver() 
returned without checking all architectures.
   via  0e1aec4 s3-dns Don't use DELEG_FLAG in DNS update, Windows 2008R2 
does not like it (cherry picked from commit 
280caa6b3bb1199939f9349ea5a436a491c81791)
   via  aaf6e34 s3-dns Don't use SEQUENCE_FLAG in DNS update, Windows 
2008R2 does not like it
   via  94fd3a5 WHATSNEW: Start release notes for Samba 3.4.10.
   via  4717c6f VERSION: Bump version number.
   via  5702565 s3-nmbd: Fix bug #7875
   via  0b3aaa3 s3:lib/netapi: don't set SAMR_FIELD_FULL_NAME if we just 
want to set the account name (bug #7896)
   via  b73822f s3: Fix bug 7066 -- wbcAuthenticateEx gives unix times
   via  8096bb2 ѕ3/configue: set Tru64 cc's PIC switch right (none)
   via  4559441 Fix bug #7892 - open_file_fchmod() leaves a stale lock. 
(cherry picked from commit 023aa6f4aae29ba22b3d42c815027ba6a66f8ee2)
   via  133b474 s3: Use smbsock_any_connect in winbind
   via  efa34c0 s3: Retry *SMBSERVER in nb_connect (cherry picked from 
commit ee2534c18b5afa609ff17d9da7ea10bcf7654fc6)
   via  03e02ad s3: Add smbsock_any_connect (cherry picked from commit 
198b6d673787ee40c0ac389ece99cee1844dd585)
   via  607c00d s3: Add an async smbsock_connect
   via  14e272c v3-4-test: Pull in tevent_req_poll_ntstatus from master 
(cherry picked from commit 9b79de1553cfa57d24d1ac0316b814933ef3d33d)
   via  88ce2c7 s3: Add async cli_session_request
   via  b2a1f5a v3-4-test: Pull in read_smb_send from master (cherry picked 
from commit 02c4649674d3bd0f54e71910f11d6aff2cdb6c9d)
   via  f338111 s3: Add some const to name_mangle() (cherry picked from 
commit 56c760ab41b9b4cb9680d873b8f9955be21434f4)
   via  7943955 s3: Make winbind recover from a signing error
   via  fc80176 s3: Stop using the write cache after an oplock break
   via  e3e35fa Fix bug 7636 - winbind internal error, backtrace.
   via  8863dce s3-printing: fix BUG 7280 - auto printers not loading with 
registry config (cherry picked from commit 
9c3537b6d8b2ea36265d3a69f7e90278cb86dbfb)
   via  bd20f12 Fix bug 7590 - offline login fails because winbind deletes 
cache on every startup.
   via  97f779d rerun: make samba3-idl
   via  00c0580 pidl: Samba3/ClientNDR - Correctly copy arrays, if 
r.out.size < r.in.size.
   via  6dc20e5 Fix bug #7617 - smbd coredump due to uninitialized 
variables in the performance counter code.
   via  4447ae9 s3-winbind: Fix Bug #7568: Make sure cm_connect_lsa_tcp 
does not reset the secure channel.
   via  0c10994 s3-libsmb: Fix bug #7577.
   via  2a1568f librpc: split out a separate GUID_from_ndr_blob() function
   via  d3a6a07 s3: Fix bug 7336: Enable idmap_passdb module build as 
shared (cherry picked from commit 8c0fbc410798512b7a4b7db73bcb24cde6fa7849) 
(cherry picked from commit b4803af11525823ea508d0ca4e58402d55901194) (cherry 
picked from commit 1b22e942aa869d51dc9e50b74c44ece004c30947)
   via  a5fff72 s3-librpc: Fixed GUID_from_data_blob() with length of 32.
   via  f280494 s3-printing: Fix Bug #7541, %D in "printer admin" causing 
smbd crash.
   via  bf6dbcc s3-docs: Add missing whitespace.
   via  4297ef9 s3-docs: Fix some of ntlm_auth ntlm-server-1 protocol 
documentation.
   via  1fc9f14 s3: Fix EnumDomainAliases when no aliases are in LDAP
   via  3633fad s3:pdb_ldap: fix bug 7507 - init_sam_from_ldap stores group 
in sid2uid cache (cherry picked from commit 
ba809ecb8ab217e4376bf75d2300e146b62b88eb) (cherry picked from commit 
cc740fb5eb56a0875703753d4a116d2fe33ec186) (cherry picked from commit 
b206d75ca5ba04a866a22dfca5b7441fb49078d8)
   via  da6259b s3-netdomjoin-gui: Fix Bug #7500. Fix 'not a string 
literal' warning in netdomjoin-gui.
   via  81f4c22 s3-kerberos: temporary fix for ipv6 in print_kdc_line().
   via  80ad2c9 s3-kerberos: pass down kdc_name to 
create_local_private_krb5_conf_for_domain().
   via  1f3cea4 s3-winbind: make the getpeername() checks in 
cm_prepare_connection IPv6 aware.
   via  4d084a8 s3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.
   via  450c5be s3-docs: Move -D option to the right paragraph in man 
winbindd.
   via  5c2b44d work around AIX6.1 name space pollution rename mod_name to 
module_name
   via  10d8bc3 s3-spoolss: Fix _spoolss_EnumPrinters servername handling.
   via  6022a74 s3-spoolss: in spoolss_EnumPrinters r->in.server is a 
*unique* pointer!
   via  3fc63a6 s3-net: Fix Bug #7417. 'net rpc user password' can set the 
wrong password.
  from  bfe7b2c WHATSNEW: Update release date.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log --

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-01-22 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  8dde27b WHATSNEW: Start release notes for Samba 3.4.11.
   via  6ebc313 VERSION: Raise version number up to 3.4.11.
  from  247949c WHATSNEW: Add major enhancements.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 8dde27b777293a820b23843b2b363c3585349e98
Author: Karolin Seeger 
Date:   Sat Jan 22 19:43:40 2011 +0100

WHATSNEW: Start release notes for Samba 3.4.11.

Karolin
(cherry picked from commit 716426b31f24923e94099e99580ae7750eb5e498)

commit 6ebc31365acbbcfe0f4aa7d5963517042b23154e
Author: Karolin Seeger 
Date:   Sat Jan 22 19:41:28 2011 +0100

VERSION: Raise version number up to 3.4.11.

Karolin
(cherry picked from commit fa8af888f7c701ec95febdb90c57aee1e418ad2e)

---

Summary of changes:
 WHATSNEW.txt|   44 ++--
 source3/VERSION |2 +-
 2 files changed, 43 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 6023e8c..49753a5 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,44 @@
==
+   Release Notes for Samba 3.4.11
+ January , 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.11 include:
+
+   o
+
+Changes since 3.4.10
+
+
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.10
  January 22, 2011
==
@@ -104,8 +144,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
=
Release Notes for Samba 3.4.9
diff --git a/source3/VERSION b/source3/VERSION
index ad6e361..2f5fdf3 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=10
+SAMBA_VERSION_RELEASE=11
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-01-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  127a16b WHATSNEW: Add changes since 3.4.10.
   via  d682729 s3: Fix connecting to port-139 only servers
  from  8dde27b WHATSNEW: Start release notes for Samba 3.4.11.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 127a16ba26373460033eceb4e012faa9cb1930f0
Author: Karolin Seeger 
Date:   Sun Jan 23 19:54:47 2011 +0100

WHATSNEW: Add changes since 3.4.10.

Karolin
(cherry picked from commit bcdfa183c1de202f64805942041dd182f6c013ea)

commit d682729a6cc1cf852798b7927a9ab436e140c668
Author: Volker Lendecke 
Date:   Sat Jan 22 16:22:42 2011 +0100

s3: Fix connecting to port-139 only servers

When the TCP RST came before the 5 msecs timeout kicked in, we
viewed this as final, as state->req_139 was not set yet.

Fix bug introduced by a fix for bug #7881 (winbind flaky against w2k8).
(cherry picked from commit f2a19b87725f9318e983dff6358a3eee721bff08)
(cherry picked from commit 569be63e727e69e7e52ec39f40e60903c6826614)

---

Summary of changes:
 WHATSNEW.txt |   10 ++
 source3/libsmb/smbsock_connect.c |8 +---
 2 files changed, 11 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 49753a5..e531d60 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,18 +1,20 @@
==
Release Notes for Samba 3.4.11
- January , 2011
+ January 12, 2011
==
 
 
-This is the latest stable release of Samba 3.4.
+This is the latest stable release of Samba 3.4. It addresses the following
+issue introduced with Samba 3.4.10:
 
-Major enhancements in Samba 3.4.11 include:
+   o Fix connecting to port-139 only servers (bug 7881).
 
-   o
 
 Changes since 3.4.10
 
 
+o   Volker Lendecke 
+* BUG 7881: Fix connecting to port-139 only servers.
 
 
 ##
diff --git a/source3/libsmb/smbsock_connect.c b/source3/libsmb/smbsock_connect.c
index 8ab12c5..b6c1c3c 100644
--- a/source3/libsmb/smbsock_connect.c
+++ b/source3/libsmb/smbsock_connect.c
@@ -221,12 +221,14 @@ struct tevent_req *smbsock_connect_send(TALLOC_CTX 
*mem_ctx,
/*
 * After 5 msecs, fire the 139 request
 */
-   subreq = tevent_wakeup_send(state, ev, timeval_current_ofs(0, 5000));
-   if (tevent_req_nomem(subreq, req)) {
+   state->req_139 = tevent_wakeup_send(
+   state, ev, timeval_current_ofs(0, 5000));
+   if (tevent_req_nomem(state->req_139, req)) {
TALLOC_FREE(state->req_445);
return tevent_req_post(req, ev);
}
-   tevent_req_set_callback(subreq, smbsock_connect_do_139, req);
+   tevent_req_set_callback(state->req_139, smbsock_connect_do_139,
+   req);
return req;
 }
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-01-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  a7aab33 WHATSNEW: Fix typo.
  from  127a16b WHATSNEW: Add changes since 3.4.10.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit a7aab3330f8bac43c86fdf3770daa0c42828a29c
Author: Karolin Seeger 
Date:   Sun Jan 23 20:14:52 2011 +0100

WHATSNEW: Fix typo.

Karolin
(cherry picked from commit dff57d78ee0c5528c67a5a86bb356e9729107b11)

---

Summary of changes:
 WHATSNEW.txt |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index e531d60..74a3d36 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@
==
Release Notes for Samba 3.4.11
- January 12, 2011
+ January 23 2011
==
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-02-28 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  2aa648e WHATSNEW: Fix typo.
   via  8da98df VERSION: Bump version number up to 3.4.12.
   via  da47859 WHATSNEW: Prepare 3.4.12 release notes.
   via  43babef Fix denial of service - memory corruption.
  from  a7aab33 WHATSNEW: Fix typo.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 2aa648e4e9c530a4c9e8d1389fa16e775ac91e54
Author: Karolin Seeger 
Date:   Sun Feb 27 18:44:10 2011 +0100

WHATSNEW: Fix typo.

Karolin

commit 8da98df066bcfc8a47a83615788a55206075ad2b
Author: Karolin Seeger 
Date:   Sun Feb 27 18:21:38 2011 +0100

VERSION: Bump version number up to 3.4.12.

Karolin

commit da478595190a4a6634b6fc1654fcac58c73e66de
Author: Karolin Seeger 
Date:   Sun Feb 27 18:20:42 2011 +0100

WHATSNEW: Prepare 3.4.12 release notes.

Karolin

commit 43babef991feedbe2acb77d27254d302ab107fa8
Author: Jeremy Allison 
Date:   Sun Feb 27 18:16:20 2011 +0100

Fix denial of service - memory corruption.

CVE-2011-0719

Fix bug #7949 (DoS in Winbind and smbd with many file descriptors open).

All current released versions of Samba are vulnerable to
a denial of service caused by memory corruption. Range
checks on file descriptors being used in the FD_SET macro
were not present allowing stack corruption. This can cause
the Samba code to crash or to loop attempting to select
on a bad file descriptor set.

A connection to a file share, or a local account is needed
to exploit this problem, either authenticated or unauthenticated
(guest connection).

Currently we do not believe this flaw is exploitable
beyond a crash or causing the code to loop, but on the
advice of our security reviewers we are releasing fixes
in case an exploit is discovered at a later date.

---

Summary of changes:
 WHATSNEW.txt |   53 -
 lib/tevent/tevent_select.c   |   10 +++
 lib/tevent/tevent_standard.c |5 +++
 nsswitch/wb_common.c |   17 
 source3/VERSION  |2 +-
 source3/client/client.c  |4 ++-
 source3/client/dnsbrowse.c   |   11 
 source3/lib/events.c |8 +
 source3/lib/packet.c |5 +++
 source3/lib/readline.c   |5 +++
 source3/lib/select.c |   12 
 source3/lib/util_sock.c  |   11 ++-
 source3/lib/wbclient.c   |9 +-
 source3/libaddns/dnssock.c   |5 +++
 source3/libads/cldap.c   |5 +++
 source3/libsmb/nmblib.c  |5 +++
 source3/nmbd/nmbd_packets.c  |   24 +++-
 source3/utils/smbfilter.c|8 -
 source3/winbindd/winbindd.c  |6 
 source3/winbindd/winbindd_dual.c |7 +
 20 files changed, 201 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 74a3d36..d22bc1f 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,53 @@
==
+   Release Notes for Samba 3.4.12
+February 28, 2011
+   ==
+
+
+This is a security release in order to address CVE-2011-0719.
+
+
+o  CVE-2011-0719:
+   All current released versions of Samba are vulnerable to
+   a denial of service caused by memory corruption. Range
+   checks on file descriptors being used in the FD_SET macro
+   were not present allowing stack corruption. This can cause
+   the Samba code to crash or to loop attempting to select
+   on a bad file descriptor set.
+
+
+Changes since 3.4.11
+
+
+
+o   Jeremy Allison 
+* BUG 7949: Fix DoS in Winbind and smbd with many file descriptors open.
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
   

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-02-28 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  c32b64f WHATSNEW: Start 3.4.13 release notes.
   via  7afb216 VERSION: Bump version number up to 3.4.13.
  from  2aa648e WHATSNEW: Fix typo.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit c32b64f22e0ed14d686cb88554e618f2d63acebe
Author: Karolin Seeger 
Date:   Mon Feb 28 14:51:37 2011 +0100

WHATSNEW: Start 3.4.13 release notes.

Karolin

commit 7afb216d1d25c1269dcf63f845bebde9a989caa2
Author: Karolin Seeger 
Date:   Mon Feb 28 14:49:44 2011 +0100

VERSION: Bump version number up to 3.4.13.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   46 --
 source3/VERSION |2 +-
 2 files changed, 45 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index d22bc1f..1ae912a 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,46 @@
==
+   Release Notes for Samba 3.4.13
+, 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+
+o  
+
+
+Changes since 3.4.12
+
+
+
+o   Jeremy Allison 
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.12
 February 28, 2011
==
@@ -44,8 +86,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.11
diff --git a/source3/VERSION b/source3/VERSION
index 955d0cd..dab9b4a 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=12
+SAMBA_VERSION_RELEASE=13
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-04-21 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  e1a17c8 WHATSNEW: Update changes since 3.4.12.
   via  4a7df93 s3: Fix bug 8099 - setpwent() actually does endpwent() on 
FreeBSD (cherry picked from commit 2167ac2cd42c9ed5aaae0086dbd27e29d1d77686) 
(cherry picked from commit fd387cd0bf186a94b64e8c2085c943992629e5af)
   via  17ba461 WHATSNEW: Prepare 3.4.13 release notes.
   via  69da1d2 s3-cli_pipe: fix timeout in rpc_pipe_open_tcp_port().
   via  4bcf42d Allow NULL queue to writev_send
  from  c32b64f WHATSNEW: Start 3.4.13 release notes.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit e1a17c8cbc0a619d0f0a34e65559bb6a2081dd97
Author: Karolin Seeger 
Date:   Wed Apr 20 20:51:26 2011 +0200

WHATSNEW: Update changes since 3.4.12.

Karolin
(cherry picked from commit b5e5510ea62af1df31b5f06c5cf1029217b648e1)

commit 4a7df93a2a1dd0ffd368529da9ed11129dc3af91
Author: Sergey Korsak 
Date:   Tue Apr 19 18:51:32 2011 +0200

s3: Fix bug 8099 - setpwent() actually does endpwent() on FreeBSD
(cherry picked from commit 2167ac2cd42c9ed5aaae0086dbd27e29d1d77686)
(cherry picked from commit fd387cd0bf186a94b64e8c2085c943992629e5af)

commit 17ba461da17272cf5b1c7dcba9c393069d9974db
Author: Karolin Seeger 
Date:   Mon Apr 18 15:00:14 2011 +0200

WHATSNEW: Prepare 3.4.13 release notes.

Karolin
(cherry picked from commit 0517118cbfe7455ba288d6c59cb5ed7f22274b35)

commit 69da1d2d5e80ba5a8f1ef4e76890b5d3e7176a07
Author: Günther Deschner 
Date:   Wed Apr 13 17:41:36 2011 +0200

s3-cli_pipe: fix timeout in rpc_pipe_open_tcp_port().

Make sure we use a timeout of 60 seconds, not 60 milliseconds...

This prevented us from successfully using the ncacn_ip_tcp client in a lot 
of
places, I guess.

Guenther

Autobuild-User: Volker Lendecke 
Autobuild-Date: Wed Apr 13 18:59:19 CEST 2011 on sn-devel-104
(cherry picked from commit 4b3fe5247a6e16b1ad9f05269e9aa00e3120e36a)

Fix bug #8085 - incorrect timeout handling in ncacn_ip_tcp client code.
(cherry picked from commit d7d39c723e1855a3d18813e8a79fcca9770b0142)
(cherry picked from commit f7a175f47ee65c58363615541577db65d8b9fa76)

commit 4bcf42d4048d739b5309e3f3d4331dd66632e049
Author: Volker Lendecke 
Date:   Sun May 10 10:49:18 2009 +0200

Allow NULL queue to writev_send

Fix bug #8086 - null pointer reference crashes winbind.
(cherry picked from commit 7a801a842c7c6636c654489cb53bb8271c6927c8)

---

Summary of changes:
 WHATSNEW.txt   |   17 ++---
 lib/async_req/async_sock.c |   22 --
 nsswitch/winbind_nss_freebsd.c |8 
 source3/rpc_client/cli_pipe.c  |2 +-
 4 files changed, 35 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 1ae912a..d8900c4 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,20 +1,31 @@
==
Release Notes for Samba 3.4.13
-, 2011
+ April 21, 2011
==
 
 
 This is the latest stable release of Samba 3.4.
 
+Major enhancements in Samba 3.4.13 include:
 
-o  
+o  Fix Winbind crash caused by null pointer reference (bug #8086).
+o  Fix incorrect timeout handling in ncacn_ip_tcp client code (bug #8085).
 
 
 Changes since 3.4.12
 
 
 
-o   Jeremy Allison 
+o   Günther Deschner 
+* BUG 8085: Fix incorrect timeout handling in ncacn_ip_tcp client code.
+
+
+o   Volker Lendecke 
+* BUG 8086: Fix Winbind crash caused by null pointer reference.
+
+
+o   Sergey Korsak 
+* BUG 8099: setpwent() actually does endpwent() on FreeBSD.
 
 
 ##
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 39705f4..c428e3c 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -387,11 +387,11 @@ struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, 
struct tevent_context *ev,
   struct tevent_queue *queue, int fd,
   struct iovec *iov, int count)
 {
-   struct tevent_req *result;
+   struct tevent_req *req;
struct writev_state *state;
 
-   result = tevent_req_create(mem_ctx, &state, struct writev_state);
-   if (result == NULL) {
+   req = tevent_req_create(mem_ctx, &state, struct writev_state);
+   if (req == NULL) {
return NULL;
}
state->ev = ev;
@@ -404,12 +404,22 @@ struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, 
struct tevent_context *ev,
goto fail;
}
 
-   if (!tevent_queue_add(queue, ev, result, writev_trigger,

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-04-21 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  d4ae73b WHATSNEW: Start release notes for Samba 3.4.14.
   via  ffb29b1 VERSION: Bump version number up to 3.4.14.
  from  e1a17c8 WHATSNEW: Update changes since 3.4.12.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit d4ae73b58acc3e32031f23747e9a6990fc2d414e
Author: Karolin Seeger 
Date:   Thu Apr 21 10:08:19 2011 +0200

WHATSNEW: Start release notes for Samba 3.4.14.

Karolin
(cherry picked from commit 2c9a3dbdb18f8773754d2cc417c61f5dfd452008)

commit ffb29b14aa8818b365a358cc36cdb3a6e24dfb14
Author: Karolin Seeger 
Date:   Thu Apr 21 10:06:36 2011 +0200

VERSION: Bump version number up to 3.4.14.

Karolin
(cherry picked from commit 2c72a084ec5eb8d368e34962b39278eb3b2176c6)

---

Summary of changes:
 WHATSNEW.txt|   45 +++--
 source3/VERSION |2 +-
 2 files changed, 44 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index d8900c4..b14e254 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,45 @@
==
+   Release Notes for Samba 3.4.14
+ , 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.14 include:
+
+o 
+
+Changes since 3.4.13
+
+
+
+o  
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.13
  April 21, 2011
==
@@ -48,8 +89,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.12
diff --git a/source3/VERSION b/source3/VERSION
index dab9b4a..5770e04 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=13
+SAMBA_VERSION_RELEASE=14
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-09-14 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  bfe7b2c WHATSNEW: Update release date.
   via  48e67dc WHATSNEW: Fix typo.
   via  8072e7c WHATSNEW: Prepare release notes for Samba 3.4.9.
   via  df20a30 Fix bug #7669.
  from  7f51590 WHATSNEW: Start release notes for Samba 3.4.9.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit bfe7b2cbeda80570320f357337918b5d66ff8b77
Author: Karolin Seeger 
Date:   Thu Sep 9 16:23:21 2010 +0200

WHATSNEW: Update release date.

Karolin

commit 48e67dc84d206792afd0fed1fe9e848ad8675513
Author: Karolin Seeger 
Date:   Thu Sep 9 15:58:31 2010 +0200

WHATSNEW: Fix typo.

Karolin

commit 8072e7cc7eeb91de9c6ea26e23d72f96fa60f27e
Author: Karolin Seeger 
Date:   Thu Sep 9 15:52:37 2010 +0200

WHATSNEW: Prepare release notes for Samba 3.4.9.

Karolin

commit df20a300758bc12286820e31fcf573bdfc2147bc
Author: Jeremy Allison 
Date:   Thu Sep 9 15:48:23 2010 +0200

Fix bug #7669.

Fix bug #7669 (buffer overflow in sid_parse() in Samba3 and dom_sid_parse in
Samba4).

CVE-2010-3069:

===
Description
===

All current released versions of Samba are vulnerable to
a buffer overrun vulnerability. The sid_parse() function
(and related dom_sid_parse() function in the source4 code)
do not correctly check their input lengths when reading a
binary representation of a Windows SID (Security ID). This
allows a malicious client to send a sid that can overflow
the stack variable that is being used to store the SID in the
Samba smbd server.

A connection to a file share is needed to exploit this
vulnerability, either authenticated or unauthenticated
(guest connection).

---

Summary of changes:
 WHATSNEW.txt  |   22 ++
 libcli/security/dom_sid.c |4 
 libcli/security/dom_sid.h |4 
 source3/lib/util_sid.c|3 +++
 source3/libads/ldap.c |4 +++-
 source3/libsmb/cliquota.c |4 +++-
 source3/smbd/nttrans.c|   17 ++---
 7 files changed, 49 insertions(+), 9 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 385731f..5b25be3 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,19 +1,33 @@
=
Release Notes for Samba 3.4.9
-  , 2010
+September 14, 2010
=
 
 
-This is the latest stable release of Samba 3.4.
+This is a security release in order to address CVE-2010-3069.
+
 
-Major enhancements in Samba 3.4.9 include:
+o  CVE-2010-3069:
+   All current released versions of Samba are vulnerable to
+   a buffer overrun vulnerability. The sid_parse() function
+   (and related dom_sid_parse() function in the source4 code)
+   do not correctly check their input lengths when reading a
+   binary representation of a Windows SID (Security ID). This
+   allows a malicious client to send a sid that can overflow
+   the stack variable that is being used to store the SID in the
+   Samba smbd server.
 
-   o 
 
 Changes since 3.4.8
 ---
 
 
+o   Jeremy Allison 
+* BUG 7669: Fix for CVE-2010-3069.
+
+
+o   Andrew Bartlett 
+* BUG 7669: Fix for CVE-2010-3069.
 
 
 ##
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c
index 0c88900..350a14f 100644
--- a/libcli/security/dom_sid.c
+++ b/libcli/security/dom_sid.c
@@ -117,6 +117,10 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
if (sidstr[i] == '-') num_sub_auths++;
}
 
+   if (num_sub_auths > MAXSUBAUTHS) {
+   return false;
+   }
+
ret->sid_rev_num = rev;
ret->id_auth[0] = 0;
ret->id_auth[1] = 0;
diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h
index e892535..748e009 100644
--- a/libcli/security/dom_sid.h
+++ b/libcli/security/dom_sid.h
@@ -40,5 +40,9 @@ bool dom_sid_in_domain(const struct dom_sid *domain_sid,
   const struct dom_sid *sid);
 char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid);
 
+#ifndef MAXSUBAUTHS
+#define MAXSUBAUTHS 15 /* max sub authorities in a SID */
+#endif
+
 #endif /*_DOM_SID_H_*/
 
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 97284af..52e8448 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -408,6 +408,9 @@ bool sid_parse(const char *inbuf, size_t len, DOM_SID *sid)
 
sid->sid_rev_num = CVAL(inbuf, 0);
sid->num_auths = CVAL(inbuf, 1);
+   if (sid->num_auths > MAXSUBAUTHS) {
+   return false;
+   }
memcpy(sid->id_auth, inbuf+2, 

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-07-26 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  4078769 s3-swat: Fix typo.
   via  a492219 s3 swat: Create random nonce in CGI mode
   via  0b811f5 s3 swat: Add time component to XSRF token
   via  deb6647 s3 swat: Add XSRF protection to printer page
   via  e4e6195 s3 swat: Add XSRF protection to password page
   via  9839935 s3 swat: Add XSRF protection to shares page
   via  6ea5fac s3 swat: Add XSRF protection to globals page
   via  d499c09 s3 swat: Add XSRF protection to wizard page
   via  4b64b7e s3 swat: Add XSRF protection to wizard_params page
   via  b25d00e s3 swat: Add XSRF protection to viewconfig page
   via  8af2d4c s3 swat: Add XSRF protection to status page
   via  69ebd0e s3 swat: Add support for anti-XSRF token
   via  dffaf0e s3 swat: Allow getting the user's HTTP auth password
   via  05fa09b s3 swat: Fix possible XSS attack (bug #8289)
   via  315437d WHATSNEW: Update release notes.
  from  d4ae73b WHATSNEW: Start release notes for Samba 3.4.14.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 40787695a1a3200421c9409eef9e520b849ee3a1
Author: Karolin Seeger 
Date:   Sun Jul 24 21:09:38 2011 +0200

s3-swat: Fix typo.

Thanks to Simo for reporting!

Karolin

commit a4922192d9b95e79bb31c54ca820a9b876a1bbe9
Author: Kai Blin 
Date:   Tue Jul 12 08:08:24 2011 +0200

s3 swat: Create random nonce in CGI mode

In CGI mode, we don't get access to the user's password, which would
reduce the hash used so far to parameters an attacker can easily guess.
To work around this, read the nonce from secrets.tdb or generate one if
it's not there.
Also populate the C_user field so we can use that for token creation.

Signed-off-by: Kai Blin 

The last 12 patches address bug #8290 (CSRF vulnerability in SWAT).
This addresses CVE-2011-2522 (Cross-Site Request Forgery in SWAT).

commit 0b811f5b825637b2ecb0450d24dc6b3425ad05a8
Author: Kai Blin 
Date:   Sat Jul 9 09:52:07 2011 +0200

s3 swat: Add time component to XSRF token

Signed-off-by: Kai Blin 

commit deb66470413780c93656294a1dca40f8cc1bada8
Author: Kai Blin 
Date:   Fri Jul 8 15:06:13 2011 +0200

s3 swat: Add XSRF protection to printer page

Signed-off-by: Kai Blin 

commit e4e6195701d761326ad5f2dbb63aeb71b0dc7971
Author: Kai Blin 
Date:   Fri Jul 8 15:05:38 2011 +0200

s3 swat: Add XSRF protection to password page

Signed-off-by: Kai Blin 

commit 9839935c29ec0ab522994436e6e89939696409de
Author: Kai Blin 
Date:   Fri Jul 8 15:04:48 2011 +0200

s3 swat: Add XSRF protection to shares page

Signed-off-by: Kai Blin 

commit 6ea5fac27f2fef35ea12c24250948e00245aacee
Author: Kai Blin 
Date:   Fri Jul 8 15:04:12 2011 +0200

s3 swat: Add XSRF protection to globals page

Signed-off-by: Kai Blin 

commit d499c09fc7bf6d86e9694bc8dc60b96c80d94c35
Author: Kai Blin 
Date:   Fri Jul 8 15:03:44 2011 +0200

s3 swat: Add XSRF protection to wizard page

Signed-off-by: Kai Blin 

commit 4b64b7e57d729df996d073415f12c066b89f
Author: Kai Blin 
Date:   Fri Jul 8 15:03:15 2011 +0200

s3 swat: Add XSRF protection to wizard_params page

Signed-off-by: Kai Blin 

commit b25d00e3c1ff91e7ec5f56ec2ad0d6b3d635d1e3
Author: Kai Blin 
Date:   Fri Jul 8 15:02:53 2011 +0200

s3 swat: Add XSRF protection to viewconfig page

Signed-off-by: Kai Blin 

commit 8af2d4c60a9bad18ef1b37d4034f11c6008efcfa
Author: Kai Blin 
Date:   Fri Jul 8 12:58:53 2011 +0200

s3 swat: Add XSRF protection to status page

Signed-off-by: Kai Blin 

commit 69ebd0eee88b1b4b8e29a7620e01c8d9c89b452a
Author: Kai Blin 
Date:   Fri Jul 8 12:57:43 2011 +0200

s3 swat: Add support for anti-XSRF token

Signed-off-by: Kai Blin 

commit dffaf0ed0bb7f38c23f15b0b128a5eb39a55a813
Author: Kai Blin 
Date:   Fri Jul 8 12:56:21 2011 +0200

s3 swat: Allow getting the user's HTTP auth password

Signed-off-by: Kai Blin 

commit 05fa09be5a801baa5d35014e2f54b46c1ff5466b
Author: Kai Blin 
Date:   Thu Jul 7 10:03:33 2011 +0200

s3 swat: Fix possible XSS attack (bug #8289)

Nobuhiro Tsuji of NTT DATA SECURITY CORPORATION reported a possible XSS 
attack
against SWAT, the Samba Web Administration Tool. The attack uses reflection 
to
insert arbitrary content into the "change password" page.

This patch fixes the reflection issue by not printing user-specified 
content on
the website anymore.

Signed-off-by: Kai Blin 

commit 315437d3d5a503b2d17c8a01f0e2c088febb041a
Author: Karolin Seeger 
Date:   Sun Jul 24 21:24:27 2011 +0200

WHATSNEW: Update release notes.

Karolin

---

Summary of changes:
 WHATSNEW.txt |   27 ++--
 source3/web/cgi.c|   29 +++

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-07-26 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  999514b WHATSNEW: Start release notes for 3.4.15.
   via  eff1c77 VERSION: Bump version up to 3.4.15.
  from  4078769 s3-swat: Fix typo.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 999514b140c5f85497109da558d5e8630d59b57e
Author: Karolin Seeger 
Date:   Tue Jul 26 20:35:15 2011 +0200

WHATSNEW: Start release notes for 3.4.15.

Karolin

commit eff1c775066938267c44ab0bd25de99363c1d569
Author: Karolin Seeger 
Date:   Tue Jul 26 20:32:21 2011 +0200

VERSION: Bump version up to 3.4.15.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   45 +++--
 source3/VERSION |2 +-
 2 files changed, 44 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index b18c902..890d002 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,45 @@
==
+   Release Notes for Samba 3.4.15
+  , 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.15 include:
+
+
+Changes since 3.4.14
+
+
+
+o   
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.14
   July 26, 2011
==
@@ -53,8 +94,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.13
diff --git a/source3/VERSION b/source3/VERSION
index 5770e04..f678b11 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=14
+SAMBA_VERSION_RELEASE=15
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-08-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  cd6c0af WHATSNEW: Prepare release notes for 3.4.15.
   via  7f49539 s3/swat: use strlcat instead of strncat to fix build on old 
Linux distros
   via  8473536 s3:web/swat: use strtoll() instead of atoi/atol/atoll
   via  d919234 s3:nmbd_packets: return the used number of sockets in 
create_listen_fdset() (bug #8276)
   via  38ccc2d s3: increase the log level for missing PIDs on SIGCHLD
   via  39ec5c1 s3-libnet: fix bug #6364: Pull realm from supplied username 
on libnet join (cherry picked from commit 
9a172dcd2e7bf91d78885325bce7a19e937b48af)
   via  deb939d s3-printing: remove duplicate cups response processing code
   via  75d9ea6 s3-printing: use printcap IDL for IPC
   via  95fbe86 idl: define printcap IPC message format
   via  15942c9 s3-printing: an empty cups printer list is treated as an 
error
   via  4bfaf8c s3-printing: remove pcap_cache_loaded asserts
   via  004564c Revert "Revert "s3-printing: update parent smbd pcap cache""
   via  41792ec Revert "Revert "s3-printing: reload shares after pcap cache 
fill""
  from  999514b WHATSNEW: Start release notes for 3.4.15.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit cd6c0af7aad6f92f2415f9e11c23f1b36ab077e9
Author: Karolin Seeger 
Date:   Thu Aug 18 21:39:52 2011 +0200

WHATSNEW: Prepare release notes for 3.4.15.

Karolin
(cherry picked from commit 3777f31f377e97e09d6cbe9c65c4c4b79b637da2)

commit 7f49539a70767da0bf456efa22a8f2fe3bc2f366
Author: Björn Jacke 
Date:   Thu Aug 4 16:25:08 2011 +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 

Autobuild-User: Björn Jacke 
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)
(cherry picked from commit 552ccc6588b0744ae9b3731b1406749baea03d5a)
(cherry picked from commit b941edf9c20bd6a92aec2a62be5b830db1194ce8)

commit 84735368921211d4b29d3b80ea747f692a2f1f91
Author: Stefan Metzmacher 
Date:   Fri Aug 5 19:48:38 2011 +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 
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 ac5d8c0148e10a3a0af9e1dc0849bb6920c26ad7)

commit d9192349311c59e7ec5b58747fa8c393af5f9d3d
Author: Stefan Metzmacher 
Date:   Thu Jun 30 09:56:06 2011 +0200

s3:nmbd_packets: return the used number of sockets in create_listen_fdset() 
(bug #8276)

Fix bug #7949 (DoS in Winbind and smbd with many file descriptors open)
(commit feb3fcd0fa4bda0967b881315595d7702f4d1752) changed the bahavior,
so that we skipped some sockets.

This should work for v3-4-test.

metze
(cherry picked from commit 11b4dec29c9306531e73d5f4c12f89934dd538b4)

commit 38ccc2d665bb3f80fcb46a21b7646f3e0a09b7c9
Author: David Disseldorp 
Date:   Wed Feb 16 17:23:25 2011 +0100

s3: increase the log level for missing PIDs on SIGCHLD

Since the fix for bso#7836, the parent smbd is responsible for
maintaining an up-to-date printcap cache. It does this by forking a
child process to asynchronously fetch printcap data from CUPS.

When the child process exits after fetching all printcap data, the
parent smbd is sent SIGCHLD. This triggers smbd_sig_chld_handler() which
looks for the exited process PID on a "children" list.
Child smbd process PIDs are added to the "children" list to ensure
cleanup on unclean shutdown and log level change notification messages.

Printcap update process PIDs are not added to the list as they do not
maintain any state that requires cleanup, nor do they wait on tevent for
messages.

Autobuild-User: Volker Lendecke 
Autobuild-Date: Thu Feb 17 11:11:45 CET 2011 on sn-devel-104
(cherry picked from commit 9c12232f1ae36e00d04114ad73edd8ba3c2c6a5c)

Fix bug #8269 (smbd spams log with "Could not find child X -- ignoring"
messages).
(cherry picked from commit ba118ac287d49267dd2f346d4ddd2e590ebbe653)
(cherry picked from commit c943af7ff13c64343e5246b27a7416627bffd365)

commit 39ec5c1a7c4074586b47a3abafaa331dfaab93df
Author: Jim McDonough 
Date:   Thu May 26 20:30:33 2011 +0200

s3

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-08-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  fcd2aeb WHATSNEW: Start release notes for 3.4.16.
   via  65fb0a0 VERSION: Bump version up to 3.4.16.
  from  cd6c0af WHATSNEW: Prepare release notes for 3.4.15.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit fcd2aeb3cba750b115377df37b9be2fc66afa323
Author: Karolin Seeger 
Date:   Tue Aug 23 20:21:23 2011 +0200

WHATSNEW: Start release notes for 3.4.16.

Karolin
(cherry picked from commit 6f4316c93105165505bd8975530e01c8e50fb9c0)

commit 65fb0a038b26e76e2f65b8336c3a719eb211d36a
Author: Karolin Seeger 
Date:   Tue Aug 23 20:19:39 2011 +0200

VERSION: Bump version up to 3.4.16.

Karolin
(cherry picked from commit 4573fbed636e114d21f6efbb3204ae09dfc9c0c2)

---

Summary of changes:
 WHATSNEW.txt|   43 +--
 source3/VERSION |2 +-
 2 files changed, 42 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 4f86dc5..44819e0 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,43 @@
==
+   Release Notes for Samba 3.4.16
+  , 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+
+Changes since 3.4.15
+
+
+
+o   
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.15
   August 23, 2011
==
@@ -51,8 +90,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.14
diff --git a/source3/VERSION b/source3/VERSION
index f678b11..756104f 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=15
+SAMBA_VERSION_RELEASE=16
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-02-22 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  64bf3f9... WHATSNEW: Update changes since 3.4.5.
   via  ce2cc2a... librpc/ndr: don't overwrite the content in 
ndr_push_relative_ptr2_end()
   via  8f0bf27... spoolss: use ndr_push_spoolss_PrinterInfo2 
hand-marshalled version (moves devmode relative pointer down to sd).
   via  52ca1fc... spoolss: add spoolss_security_descriptor.
   via  b2e2187... s3: re-run make samba3-idl.
   via  6403c71... security: make two bitmaps public.
   via  424b229... spoolss: make two bitmaps public.
   via  d05a2fa... spoolss: make all security descriptors and devicemodes 4 
byte aligned and add missing subcontexts.
   via  9bdbef0... spoolss: set NDR_RELATIVE_REVERSE flag for various 
unions that have relative pointers.
   via  8f1cbd0... ndr_spoolss_buf: use LIBNDR_FLAG_NO_NDR_SIZE in 
NDR_SPOOLSS_SIZE_*
   via  1a7af3c... spoolss: use subcontext in NDR_SPOOLSS_PUSH_ENUM_OUT 
macro.
   via  a328122... libndr: fix ndr_size_* calculation with relative reverse 
buffers
   via  dd467c0... libndr: for now align reverse relative pointers to 2 
bytes by default.
   via  fdaeec9... libndr: implement LIBNDR_RELATIVE_REVERSE handling
   via  3ee3d4d... libndr: store a subcontext buffer size in 
ndr_push_subcontext_start.
   via  6b50cd6... libndr: give an error when 
ndr_push_relative_ptr2_start()/_end() is used with the RELATIVE_REVERSE flag
   via  dec87d0... libndr: add LIBNDR_FLAG_NO_RELATIVE_REVERSE so that 
relative reverse processing can be disabled for single structure elements.
   via  f587a0f... libndr: add LIBNDR_FLAG_RELATIVE_REVERSE flag.
   via  c1d2213... libndr: change subcontext buffer allocation to allocate 
on subcontext_start.
   via  a122b5f... librpc/ndr: make ndr_push_relative_ptr2() static
   via  2e6013d... librpc/ndr_krb5pac: use 
ndr_push_relative_ptr2_start()/_end()
   via  82f600e... librpc/ndr_drsblobs: use 
ndr_push_relative_ptr2_start()/_end()
   via  aa9650e... spoolss: fix relative pointers in 
ndr_push_spoolss_DriverInfo101.
   via  fd826a9... s3: re-run make full_idl.
   via  0e8111d... pidl: use ndr_push_relative_ptr2_start and 
ndr_push_relative_ptr2_end.
   via  0877733... libndr: add ndr_push_relative_ptr2_start and 
ndr_push_relative_ptr2_end.
   via  678672b... Fix bug #7154 - mangling method = hash can crash storing 
a name not containing a '.'
   via  cf78912... Fix bug #7155 - valgrind Conditional jump or move 
depends on uninitialised value(s) error when "mangling method = hash"
   via  615a5e8... Fix bug #6557 - Do not work VFS full_audit
  from  34d5071... WHATSNEW: Update changes since 3.4.5.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 64bf3f967c996abea8f8a1436863fa866179b3dd
Author: Karolin Seeger 
Date:   Mon Feb 22 15:57:46 2010 +0100

WHATSNEW: Update changes since 3.4.5.

Karolin
(cherry picked from commit 7b195c33584ed1c8125c174518fe8e3cd5337ded)

commit ce2cc2a615b684cd997fb970ba3eea72c943d921
Author: Stefan Metzmacher 
Date:   Fri Feb 19 08:11:24 2010 +0100

librpc/ndr: don't overwrite the content in ndr_push_relative_ptr2_end()

metze
(cherry picked from commit 76aa37f653fec2d511921768381db7da661750cb)

The last 25 patches address bug #6888 (REGRESSION: printing support for 64 
bit
windows clients broken).
(cherry picked from commit 58b089f2176e564bf5563fbffa034cd22525ed6e)

commit 8f0bf2747e3b711931d968c0f5004d99bb5b05e3
Author: Günther Deschner 
Date:   Sat Feb 13 03:45:25 2010 +0100

spoolss: use ndr_push_spoolss_PrinterInfo2 hand-marshalled version (moves 
devmode relative pointer down to sd).

Guenther
(cherry picked from commit 31a097560efddfabf31c4cc54e683603ee24521f)

commit 52ca1fc349f4b6ab92f96fce9aaae07768d86641
Author: Günther Deschner 
Date:   Tue Feb 16 02:48:01 2010 +0100

spoolss: add spoolss_security_descriptor.

Guenther
(cherry picked from commit 18564787e2f169cac26d361201c1a954b7e263b7)

commit b2e2187b7523332cd35c2d8c3b8e67135c00be46
Author: Günther Deschner 
Date:   Tue Feb 9 16:47:32 2010 +0100

s3: re-run make samba3-idl.

Guenther
(cherry picked from commit d35eb81c50340ed2ac14cdb9965fd13876ea8e64)

commit 6403c717f43f32cb43591aba0ba8754450586d4e
Author: Günther Deschner 
Date:   Tue Feb 16 10:46:07 2010 +0100

security: make two bitmaps public.

Guenther
(cherry picked from commit f10a2d773d141f67319e19b45c40101bb9cb6cf4)
(cherry picked from commit b9748d59c09ffe9de7cbb953939cf89017dc8087)

commit 424b229085fc4521712d93a42fa867c0db01bc1e
Author: Günther Deschner 
Date:   Sat Feb 13 04:27:05 2010 +0100

spoolss: make two bitmaps public.

Guenther
(cherry picked from commit b64cd9857086f56e1e698ae34e51413b6414eb0b)

commit d05a2faf43dceacf519eeda0e618b

[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-02-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  d0e7cc3... WHATSNEW: Fix typo.
  from  64bf3f9... WHATSNEW: Update changes since 3.4.5.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit d0e7cc3b38de85ce33af1b9f056fd16f6b65c934
Author: Karolin Seeger 
Date:   Tue Feb 23 10:34:37 2010 +0100

WHATSNEW: Fix typo.

Karolin
(cherry picked from commit 7ca9130556239eca52ecf8586c19e77780851d93)

---

Summary of changes:
 WHATSNEW.txt |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 5e7271d..42341d0 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -52,7 +52,7 @@ o   Steven Danneman 
 o   Günther Deschner 
 * BUG 6888: Fix printing with 64 bit clients.
 * BUG 7130: Fix listing of printjobs in Windows 7.
-* BUG 7136: Sspoolss getprinterdriver2 level 101 marshalling is bad.
+* BUG 7136: Spoolss getprinterdriver2 level 101 marshalling is bad.
 
 
 o   William Jojo 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-03-08 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  49fc62c... Revert "Fix bug #7067 - Linux asynchronous IO (aio) can 
cause smbd to fail to respond to a read or write."
   via  bdad635... WHATSNEW: Prepare release notes for Samba 3.4.7.
   via  df5a563... WHATSNEW: Start release notes for Samba 3.4.7.
   via  d811847... VERSION: Raise version number up to 3.4.7.
  from  d0e7cc3... WHATSNEW: Fix typo.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 49fc62cc5d8bcb2ef246fa6505c99071b406c413
Author: Karolin Seeger 
Date:   Mon Mar 8 20:53:38 2010 +0100

Revert "Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail 
to respond to a read or write."

This reverts commit c81c109a6ce83741bb5149a51ceb4ab30855e9f9.

This fixes bug #7222 (All users have full rigths on all 
shares)(CVE-2010-0728).

commit bdad63514f345a10774dade1746072312ed140c1
Author: Karolin Seeger 
Date:   Mon Mar 8 20:52:56 2010 +0100

WHATSNEW: Prepare release notes for Samba 3.4.7.

Karolin

commit df5a5630a795f57a71d3b9e0f68ba104bc289982
Author: Karolin Seeger 
Date:   Wed Feb 24 16:08:26 2010 +0100

WHATSNEW: Start release notes for Samba 3.4.7.

Karolin
(cherry picked from commit c8f888a6cc67e603ba04510f5504596b67d8)

commit d811847bbd8badf5c343417b453a527de3f06bbe
Author: Karolin Seeger 
Date:   Wed Feb 24 16:06:32 2010 +0100

VERSION: Raise version number up to 3.4.7.

Karolin
(cherry picked from commit b280381ed338920b1746d0b2b7cd6ea6eb1f92b9)

---

Summary of changes:
 WHATSNEW.txt  |   54 +++-
 source3/VERSION   |2 +-
 source3/include/smb.h |3 +-
 source3/lib/system.c  |   65 +++--
 source3/smbd/server.c |8 --
 5 files changed, 58 insertions(+), 74 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 42341d0..80589c7 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,54 @@
=
+   Release Notes for Samba 3.4.7
+   March 8, 2010
+   =
+
+
+This is a security release in order to address CVE-2010-0728.
+
+
+o  CVE-2010-0728:
+   In Samba releases 3.5.0, 3.4.6 and 3.3.11, new code
+   was added to fix a problem with Linux asynchronous IO handling.
+   This code introduced a bad security flaw on Linux platforms if the
+   binaries were built on Linux platforms with libcap support.
+   The flaw caused all smbd processes to inherit CAP_DAC_OVERRIDE
+   capabilities, allowing all file system access to be allowed
+   even when permissions should have denied access.
+
+
+Changes since 3.5.0
+---
+
+
+o   Jeremy Allison 
+* BUG 7222: Fix for CVE-2010-0728.
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   =
Release Notes for Samba 3.4.6
 February 24, 2010
=
@@ -109,8 +159,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
=
Release Notes for Samba 3.4.5
diff --git a/source3/VERSION b/source3/VERSION
index 7133dfb..f40ac81 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=6
+SAMBA_VERSION_RELEASE=7
 
 
 # Bug fix releases use a letter for the patch revision #
diff --git a/source3/include/smb.h b/source3/include/smb.h
i

[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-03-09 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  8a08b80... WHATSNEW: Start release notes for Samba 3.4.8.
   via  25b982b... VERSION: Raise version number up to 3.4.8.
  from  49fc62c... Revert "Fix bug #7067 - Linux asynchronous IO (aio) can 
cause smbd to fail to respond to a read or write."

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 8a08b8009f4941e40bbf2e25517a913fb2e36b09
Author: Karolin Seeger 
Date:   Tue Mar 9 10:42:40 2010 +0100

WHATSNEW: Start release notes for Samba 3.4.8.

Karolin
(cherry picked from commit cf679452b32de243cea61349f93e661f61ba4988)

commit 25b982be4633edb7d42b72cba127eb71edc9584e
Author: Karolin Seeger 
Date:   Tue Mar 9 10:39:40 2010 +0100

VERSION: Raise version number up to 3.4.8.

Karolin
(cherry picked from commit 16f92f795d8403988919f0890445acffa249e29a)

---

Summary of changes:
 WHATSNEW.txt|   49 ++---
 source3/VERSION |2 +-
 2 files changed, 47 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 80589c7..9a61578 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,47 @@
=
+   Release Notes for Samba 3.4.8
+   , 2010
+   =
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.6 include:
+
+o 
+
+
+Changes since 3.4.7
+---
+
+
+o 
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   =
Release Notes for Samba 3.4.7
March 8, 2010
=
@@ -17,7 +60,7 @@ o  CVE-2010-0728:
even when permissions should have denied access.
 
 
-Changes since 3.5.0
+Changes since 3.4.6
 ---
 
 
@@ -45,8 +88,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
=
Release Notes for Samba 3.4.6
diff --git a/source3/VERSION b/source3/VERSION
index f40ac81..c134d2c 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=7
+SAMBA_VERSION_RELEASE=8
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-05-10 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  db4f786... WHATSNEW: Update changes since 3.4.7.
  from  5d75869... s3:winbind: Fix bug 5626

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit db4f7867aacf386c7c76ddcefd86e5d1e800ddbe
Author: Karolin Seeger 
Date:   Mon May 10 14:55:44 2010 +0200

WHATSNEW: Update changes since 3.4.7.

Karolin
(cherry picked from commit d95ce71d5f450283b0fed52dd10c3995f682a690)

---

Summary of changes:
 WHATSNEW.txt |   78 +-
 1 files changed, 77 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 0599a09..0e6a324 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -8,16 +8,92 @@ This is the latest stable release of Samba 3.4.
 
 Major enhancements in Samba 3.4.8 include:
 
-o 
+   o Fix Winbind reconnection to it's own domain (bug #7295).
+   o Fix an uninitialized variable read in smbd (bug #7254).
+   o Fix smbd crash with CUPS printers and no [printers] share defined
+ (bug #7297).
+   o Fix NULL pointer dereference in smbd (bug #7229).
 
 
 Changes since 3.4.7
 ---
 
 
+o   Michael Adam 
+* BUG 7231: Fix automatic building of vfs_tsmsm if gpfs and dmapi are
+  present.
+
+
+o   Jeremy Allison 
+* BUG 7159: Fix handling of bad server data returns in client 
rpc_transport.
+* BUG 7255: Fix "printer admin" functionality.
+* BUG 7288: Fix SMB job IDs in CUPS job names.
+* BUG 7297: Fix smbd crash with CUPS printers and no [printers] share
+  defined.
+* BUG 7310: Fix DOS attribute inconsistency with MS Office.
+
+
+o   Kai Blin 
+* BUG 7290: Fix core dump in 'ntlm_auth'.
+
+
+o   Günther Deschner 
+* BUG 6727: Fix printing issues.
+* BUG 7176: Fix incorrect format of device mode strings.
+* BUG 7256: Fix value-needed calculation in_spoolss_EnumPrinterData().
+* BUG 7277: Fix exporting printers via 'cupsaddsmb' command.
+
+
+o   Björn Jacke 
+* BUG 7352: Fix different definitions of TIME_T_MAX.
+
+
+o   Michael Karcher 
+* BUG 7269: Fix job management commands for CUPS queues.
+
+
+o   Jeff Layton 
+* BUG 6853: Fix race condition in mount.cifs that allows user to replace
+  mountpoint with a symlink.
+
+
 o   Volker Lendecke 
+* BUG 5198: Fix parsing of the gecos field.
+* BUG 5626: Fix build on AIX.
+* BUG 7229: Fix NULL pointer dereference in smbd.
 * BUG 7254: Fix an uninitialized variable read in smbd found by Laurent
   Gaffié from Stratsec.
+* BUG 7326: Fix writing with vfs_full_audit.
+
+
+o   Derrell Lipman 
+* BUG 7345: Fix incomplete description of function return values in
+  libsmbclient.h.
+
+
+o   Jim McDonough 
+* BUG 7378:  Display an error on 'net conf import' failures.
+
+
+o   Roel van Meer 
+* BUG 6814: Fix valgrind warning.
+
+
+o   Stefan Metzmacher 
+* BUG 7159: Fix handling of bad server data returns in client 
rpc_transport.
+* BUG 7170: Never mark external domains as internal.
+* BUG 7295: Fix Winbind reconnection to it's own domain.
+* BUG 7316: Make sure we don't try rpc requests against unaccessable
+  domains.
+* BUG 7317: Fix problems with SIGCHLD handling in Winbind.
+
+
+o   SATOH Fumiyasu 
+* BUG 1206: Fix segfault in vfs_netatalk.
+
+
+o   Bo Yang 
+* BUG 7206: Fix duplicate signal handler.
 
 
 ##


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2010-05-11 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  7f51590... WHATSNEW: Start release notes for Samba 3.4.9.
   via  a1c015d... VERSION: Bump version up to 3.4.9.
  from  db4f786... WHATSNEW: Update changes since 3.4.7.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 7f5159099bab7f9cd65d489f8a7577afe9aef032
Author: Karolin Seeger 
Date:   Tue May 11 14:40:39 2010 +0200

WHATSNEW: Start release notes for Samba 3.4.9.

Karolin
(cherry picked from commit 1d441b897b3aa2e8c55001b57fd50622a36c266e)

commit a1c015d42d321357874c1bc9b90e6d85b054d79c
Author: Karolin Seeger 
Date:   Tue May 11 14:38:38 2010 +0200

VERSION: Bump version up to 3.4.9.

Karolin
(cherry picked from commit de8118220224160f9f6a05112aa578500b11d1d5)

---

Summary of changes:
 WHATSNEW.txt|   45 +++--
 source3/VERSION |2 +-
 2 files changed, 44 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 0e6a324..385731f 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,45 @@
=
+   Release Notes for Samba 3.4.9
+  , 2010
+   =
+
+
+This is the latest stable release of Samba 3.4.
+
+Major enhancements in Samba 3.4.9 include:
+
+   o 
+
+Changes since 3.4.8
+---
+
+
+
+
+##
+Reporting bugs & Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   =
Release Notes for Samba 3.4.8
   May 11, 2010
=
@@ -116,8 +157,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
=
Release Notes for Samba 3.4.7
diff --git a/source3/VERSION b/source3/VERSION
index c134d2c..da08a5c 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=8
+SAMBA_VERSION_RELEASE=9
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-306-gf81dc7b

2009-04-08 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  f81dc7b84ea8a2a0c7a586cba793b8292b869711 (commit)
   via  f960008c0c1f5bb23655aed8fed5faef86432cfb (commit)
  from  e5136e984922570ce9992c642c340dd3e937fc4e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit f81dc7b84ea8a2a0c7a586cba793b8292b869711
Author: Karolin Seeger 
Date:   Wed Apr 8 19:28:52 2009 +0200

VERSION: Set version to 3.4.0pre1.

Karolin

commit f960008c0c1f5bb23655aed8fed5faef86432cfb
Author: Karolin Seeger 
Date:   Wed Apr 8 19:26:54 2009 +0200

VERSION: Adapt version number.

Karolin
(cherry picked from commit 480bc0b1a8f7dd65c0c8c25545c09936efe78075)

---

Summary of changes:
 source3/VERSION |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/VERSION b/source3/VERSION
index 180d04e..1326b45 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -46,7 +46,7 @@ SAMBA_VERSION_REVISION=
 # e.g. SAMBA_VERSION_PRE_RELEASE=1 #
 #  ->  "2.2.9pre1" #
 
-SAMBA_VERSION_PRE_RELEASE=
+SAMBA_VERSION_PRE_RELEASE=1
 
 
 # For 'rc' releases the version will be#
@@ -68,7 +68,7 @@ SAMBA_VERSION_RC_RELEASE=
 # e.g. SAMBA_VERSION_IS_SVN_SNAPSHOT=yes   #
 #  ->  "3.0.0-SVN-build-199"   #
 
-SAMBA_VERSION_IS_GIT_SNAPSHOT=yes
+SAMBA_VERSION_IS_GIT_SNAPSHOT=
 
 
 # This can be set by vendors if they want...   #
@@ -84,7 +84,7 @@ SAMBA_VERSION_IS_GIT_SNAPSHOT=yes
 #   SAMBA_VERSION_VENDOR_FUNCTION  #
 #  #
 
-SAMBA_VERSION_VENDOR_SUFFIX="devel"
+SAMBA_VERSION_VENDOR_SUFFIX=
 SAMBA_VERSION_VENDOR_PATCH=
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-754-g8a342f1

2009-04-15 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  8a342f1ceadb2d5387f3a4767e978ab4f493af29 (commit)
   via  1f52a50169cd20e3255f52e0533f74706709eb09 (commit)
   via  8dc9b345d66e76866124af66f92ffeb941f81224 (commit)
  from  556c3b3a13e3ec4c8032b6ea35a116a30f3232d3 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 8a342f1ceadb2d5387f3a4767e978ab4f493af29
Author: Karolin Seeger 
Date:   Wed Apr 15 09:52:23 2009 +0200

s3/configure: Disable the automatic merged build.

Karolin
(cherry picked from commit 3b028d8609d29de2610d1c91d3098aa6002b90c4)

commit 1f52a50169cd20e3255f52e0533f74706709eb09
Author: Karolin Seeger 
Date:   Wed Apr 15 09:51:45 2009 +0200

s3/WHATSNEW: Add some more Franky specific stuff.

Karolin
(cherry picked from commit 4d5306d047674676fe8f4e788cac88def055841a)

commit 8dc9b345d66e76866124af66f92ffeb941f81224
Author: Karolin Seeger 
Date:   Wed Apr 15 09:27:02 2009 +0200

s3/WHATSNEW: Add reference to Franky.

Karolin
(cherry picked from commit 0df89b9a991adf692b26f2c5e50d0ed90e244849)

---

Summary of changes:
 WHATSNEW.txt |   26 ++
 source3/configure.in |7 ---
 2 files changed, 30 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 066f718..569bba2 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -3,17 +3,42 @@
 
=
 
+
 This is the first preview release of Samba 3.4.  This is *not*
 intended for production environments and is designed for testing
 purposes only.  Please report any defects via the Samba bug reporting
 system at https://bugzilla.samba.org/.
 
+
 Major enhancements in Samba 3.4.0 include:
+--
+
+General changes:
+o Samba4 and Samba3 sources are included in the tarball
 
 Authentication Changes:
 o Changed the way smbd handles untrusted domain names given during user
   authentication
 
+
+General Changes
+===
+
+On the way towards a standalone Samba AD domain controller, Samba3 and Samba4
+branches can be built as "merged" build. That's why Samba3 and Samba4 sources
+are included in the tarball. The merged build is possible in Samba 3.4.0, but
+disabled by default. To learn more about the merged build,
+please see http://wiki.samba.org/index.php/Franky.
+
+According to this one, there is no "source" directory included in the tarball 
at
+all. Samba3 sources are located in "source3", Samba4 sources are located in
+"source4". The libraries have been moved to the toplevel directory.
+
+To build plain Samba3, please change to "source3" and start the build as usual.
+To build Samba4 as well, please use the "--enable-merged-build" configure
+option.
+
+
 Authentication Changes
 ==
 
@@ -32,6 +57,7 @@ on smbd to always pass through bogus names to the DC for 
verification.  A new
 parameter "map untrusted to domain" can be enabled to revert to the legacy
 behavior.
 
+
 ##
 Reporting bugs & Development Discussion
 ###
diff --git a/source3/configure.in b/source3/configure.in
index 2025527..33b45a1 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -6380,9 +6380,10 @@ if test x$enable_merged_build = xauto; then
AC_MSG_RESULT([$merged_build_possible])
 
# Enable merged build automatically if possible, when in developer mode
-   if test "x$developer" = xyes; then
-   enable_merged_build=$merged_build_possible
-   fi
+   # Don't enable  merged build automatically in 3.4.0.
+   #if test "x$developer" = xyes; then
+   #   enable_merged_build=$merged_build_possible
+   #fi
 fi
 
 if test x$enable_merged_build = xyes; then


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-756-g1bf2ab8

2009-04-15 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  1bf2ab835011ec58652cd45bdb5fe82010d3360a (commit)
   via  b43208f9d906fc8684a95e7dabe574c6c16d90b5 (commit)
  from  8a342f1ceadb2d5387f3a4767e978ab4f493af29 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 1bf2ab835011ec58652cd45bdb5fe82010d3360a
Author: Karolin Seeger 
Date:   Wed Apr 15 10:11:22 2009 +0200

s3/WHATSNEW: Add Günther's spools conversion.

Karolin
(cherry picked from commit d8de3f43ef4d4e399c4c55fd9738539f0ff97145)

commit b43208f9d906fc8684a95e7dabe574c6c16d90b5
Author: Volker Lendecke 
Date:   Wed Apr 15 09:51:20 2009 +0200

Remove the so-far unused lua-stuff for the 3.4 release
(cherry picked from commit 0349dad1633cd9574e0d8c7d2054e4c7dd0fdc21)

---

Summary of changes:
 WHATSNEW.txt |   13 +
 source3/Makefile.in  |  100 +-
 source3/configure.in |1 -
 source3/lua-5.1.4/COPYRIGHT  |   34 -
 source3/lua-5.1.4/HISTORY|  183 -
 source3/lua-5.1.4/INSTALL|   99 -
 source3/lua-5.1.4/Makefile   |  128 -
 source3/lua-5.1.4/README |   37 -
 source3/lua-5.1.4/doc/amazon.gif |  Bin 797 -> 0 bytes
 source3/lua-5.1.4/doc/contents.html  |  499 --
 source3/lua-5.1.4/doc/cover.png  |  Bin 3305 -> 0 bytes
 source3/lua-5.1.4/doc/logo.gif   |  Bin 4232 -> 0 bytes
 source3/lua-5.1.4/doc/lua.css|   40 -
 source3/lua-5.1.4/doc/lua.html   |  172 -
 source3/lua-5.1.4/doc/luac.html  |  145 -
 source3/lua-5.1.4/doc/manual.css |   12 -
 source3/lua-5.1.4/doc/manual.html| 8800 --
 source3/lua-5.1.4/doc/readme.html|   40 -
 source3/lua-5.1.4/etc/Makefile   |   44 -
 source3/lua-5.1.4/etc/README |   36 -
 source3/lua-5.1.4/etc/all.c  |   38 -
 source3/lua-5.1.4/etc/lua.hpp|9 -
 source3/lua-5.1.4/etc/lua.ico|  Bin 1078 -> 0 bytes
 source3/lua-5.1.4/etc/luavs.bat  |   28 -
 source3/lua-5.1.4/etc/min.c  |   39 -
 source3/lua-5.1.4/etc/noparser.c |   50 -
 source3/lua-5.1.4/etc/strict.lua |   40 -
 source3/lua-5.1.4/src/Makefile   |  182 -
 source3/lua-5.1.4/src/lapi.c | 1086 
 source3/lua-5.1.4/src/lapi.h |   16 -
 source3/lua-5.1.4/src/lauxlib.c  |  651 ---
 source3/lua-5.1.4/src/lauxlib.h  |  172 -
 source3/lua-5.1.4/src/lbaselib.c |  652 ---
 source3/lua-5.1.4/src/lcode.c|  838 ---
 source3/lua-5.1.4/src/lcode.h|   76 -
 source3/lua-5.1.4/src/ldblib.c   |  396 --
 source3/lua-5.1.4/src/ldebug.c   |  637 ---
 source3/lua-5.1.4/src/ldebug.h   |   33 -
 source3/lua-5.1.4/src/ldo.c  |  516 --
 source3/lua-5.1.4/src/ldo.h  |   56 -
 source3/lua-5.1.4/src/ldump.c|  164 -
 source3/lua-5.1.4/src/lfunc.c|  173 -
 source3/lua-5.1.4/src/lfunc.h|   34 -
 source3/lua-5.1.4/src/lgc.c  |  710 ---
 source3/lua-5.1.4/src/lgc.h  |  110 -
 source3/lua-5.1.4/src/linit.c|   37 -
 source3/lua-5.1.4/src/liolib.c   |  552 --
 source3/lua-5.1.4/src/llex.c |  460 --
 source3/lua-5.1.4/src/llex.h |   81 -
 source3/lua-5.1.4/src/llimits.h  |  128 -
 source3/lua-5.1.4/src/lmathlib.c |  262 -
 source3/lua-5.1.4/src/lmem.c |   85 -
 source3/lua-5.1.4/src/lmem.h |   48 -
 source3/lua-5.1.4/src/loadlib.c  |  665 ---
 source3/lua-5.1.4/src/lobject.c  |  214 -
 source3/lua-5.1.4/src/lobject.h  |  380 --
 source3/lua-5.1.4/src/lopcodes.c |  101 -
 source3/lua-5.1.4/src/lopcodes.h |  268 -
 source3/lua-5.1.4/src/loslib.c   |  242 -
 source3/lua-5.1.4/src/lparser.c  | 1339 -
 source3/lua-5.1.4/src/lparser.h  |   82 -
 source3/lua-5.1.4/src/lstate.c   |  213 -
 source3/lua-5.1.4/src/lstate.h   |  168 -
 source3/lua-5.1.4/src/lstring.c  |  110 -
 source3/lua-5.1.4/src/lstring.h  |   31 -
 source3/lua-5.1.4/src/lstrlib.c  |  868 ---
 source3/lua-5.1.4/src/ltable.c   |  588 --
 source3/lua-5.1.4/src/ltable.h   |   40 -
 source3/lua-5.1.4/src/ltablib.c  |  286 -
 source3/lua-5.1.4/src/ltm.c  |   74 -
 source3/lua-5.1.4/src/ltm.h  |   54 -
 source3/lua-5.1.4/src/lua.c  |  391 --
 source3/lua-5.1.4/src/lua.h  |  388 --
 source3/lua-5.1.4/src/luac.c |  200 -
 source3/lua-5.1.4/src/luaconf.h  |  762 ---
 source3/lua-5.1.4/src/lualib.h   |   53 -
 source3/lua-5.1.4/src/lundump.c  |  227 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-759-gafcc2d0

2009-04-15 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  afcc2d0962a6f2a867d9022b30635707af3bafce (commit)
   via  c678209b56417af6724ae913eada396baf63a88a (commit)
   via  e96296b652fcee430519825b1c5259b4429bad1e (commit)
  from  1bf2ab835011ec58652cd45bdb5fe82010d3360a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit afcc2d0962a6f2a867d9022b30635707af3bafce
Author: Karolin Seeger 
Date:   Wed Apr 15 11:05:22 2009 +0200

s3/WHATSNEW: Rewording.

Karolin
(cherry picked from commit db49a0cf2c9b9b108ec10d9b962026032910f4e4)

commit c678209b56417af6724ae913eada396baf63a88a
Author: Karolin Seeger 
Date:   Wed Apr 15 10:49:07 2009 +0200

s3/WHATSNEW: Add tevent to the list of internal changes.

Karolin
(cherry picked from commit 83a9cbece9d1f3141c4f6bf7586a80f0eae6e37f)

commit e96296b652fcee430519825b1c5259b4429bad1e
Author: Karolin Seeger 
Date:   Wed Apr 15 10:20:07 2009 +0200

s3/WHATSNEW: Correct description.

Karolin
(cherry picked from commit 459aa55885edc03707d58eedd15bd54227729bee)

---

Summary of changes:
 WHATSNEW.txt |   12 
 1 files changed, 8 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index edfb98a..2cd22c1 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -21,7 +21,9 @@ o Changed the way smbd handles untrusted domain names given 
during user
   authentication
 
 Internal changes:
-o The spoolss subsystem has been converted to IDL.
+o The ntsvcs, svcctl, eventlog and spoolss subsystems have been converted
+  to IDL.
+o Samba3 and Samba4 do now share a common tevent library.
 
 
 General Changes
@@ -64,12 +66,14 @@ behavior.
 Internal Changes
 
 
-The spoolss subsystem has been converted to IDL. So Günther Deschner finally
-corrected one of the biggest mistakes in the development of Samba:
-Hand-marshalled RPC stubs.
+The ntsvcs, svcctl, eventlog and spoolss subsystems have been converted to IDL.
+So Günther Deschner finally corrected one of the biggest mistakes in the
+development of Samba: Hand-marshalled RPC stubs.
 
 Thanks a lot! :-)
 
+Samba3 and Samba4 do now share a common tevent library for fd and timer events.
+
 
 ##
 Reporting bugs & Development Discussion


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-825-g5c89bbd

2009-04-28 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  5c89bbd6b53d4a3ab7b84f906ecc7ad8a95b3183 (commit)
   via  ea99b6854632c66bef81500e4d6c388351802d48 (commit)
   via  bec6191ffa9ed1d860001689b8f46bd785ed932b (commit)
   via  035f4efa9943e4b9cb3ecbc239e3fa579a5cfdd2 (commit)
   via  9af9a660b376e09a800719861d7379ed75507705 (commit)
   via  7bc900deed605ec1afa9804df222f282f79b42bb (commit)
   via  7e30a445b840bfa0ceb47f4c03812744ee69e78a (commit)
   via  8d6692a2d7cce1ebddc8b69a315c847ac6668d6f (commit)
   via  2bf4ec443a1fafab6507a81b2597ad3160f61ca1 (commit)
   via  b7305e3955e8be75fffa1f9bde2f56259464270d (commit)
   via  ac408e406812f7e50372a2819d13c64f936d5c91 (commit)
   via  cbef68847e7eef7d44bf24c7c4a460e715c67ff1 (commit)
   via  6045bbc6dbc4437826a7f0f6661215e95773206d (commit)
   via  e5f46c2e032f0c043483ff13b6296a207a89bfa3 (commit)
   via  c78cddd72296a1e3230bab03b6843672aa10e22b (commit)
   via  7372ce3715157a9efbd7ca1550cbc8850ce48305 (commit)
   via  09125185cd0b23c678de9c039e08424f43e7a596 (commit)
   via  bcd4aafacf01a54ffab6501656c09e76f67264e7 (commit)
   via  76b850f3be7ef66cd911f65e91cfa565828ddb9b (commit)
   via  84dbdb56a5e90bef55a9b30722da5f13e2ceb534 (commit)
   via  030f9b5c7fd6bfc4cfd791b3b8fc573e39a89dcd (commit)
   via  cb48d313e097af81600dfc8fda5ee71bc47aa2c7 (commit)
   via  de195ef0717ed7b724a12d69acfd841e268bcaa9 (commit)
   via  3384209e617a9a4806ae2b984600578930228bae (commit)
   via  4c716b59adfc68ee36ea12f08cc41cf3be2ec542 (commit)
   via  fe02a9842dacecb0532e4c419789dc82ed053661 (commit)
   via  01b1eff630bb07553a2eadb82df5246b3f70b3b7 (commit)
   via  799716eacaaf96eb71f4bf3628d2c1c983ae7f1e (commit)
   via  e92e7afaf765257ce9fb26940d6df1102439873a (commit)
   via  2f97df10048314763c44ee701dff5654981159bd (commit)
   via  6bc7610fe57bd8430d5f2fc62791cfc313f6596d (commit)
   via  3cda976563a1ec5b1f9d02d6f7187cd579246b5b (commit)
   via  70e0f5a5f625ff63e76152663f1cc8f71430e3dc (commit)
   via  25557ed661cd29ab5e237d8f9789bf84adcf35a0 (commit)
   via  8eb8219bcd0a03a4f9300a2d79a428f95b0f2a4f (commit)
   via  07fdba31c1c125c441044f257ecc3b7b91b4b7f4 (commit)
   via  87d9bc7653c612f7739a9ade7f1698071687c048 (commit)
   via  ce42bf82955ca4cf5995b09afecb85cbca56eedd (commit)
   via  4a7791c10200857c58772ee44866e58c3c96e0f5 (commit)
   via  d4de0514d687ec1369e3072f9c9fe84c46cb9258 (commit)
   via  39efa93479c724cce8a339e46238b560d9003f10 (commit)
   via  e64e99f210c4bdbc6fba2039dd78751bb76a3673 (commit)
   via  fe2e574b60840e8f8710fa7ac3b27c82b10785db (commit)
   via  83d81d9a9d3ecd4d0f0516c7c3fec8000b0ddd01 (commit)
   via  34c45b1bd54cad2389d4eae920bdf2d4c4e15fb0 (commit)
   via  01204bf445aa982ad2716cbe90980bc5c31556f6 (commit)
   via  343ff932ab3f98c8ec1c57109c54fdcf17630de4 (commit)
   via  38223c681c0574b92604afbac2e4134b1bb4969e (commit)
   via  8f980f4f73bcf54ade3008a13b0e8d6a1980e52b (commit)
   via  e3bb5ed7641081f14d828f459e43e64fbaa0d9c4 (commit)
   via  675e2e81f51f65566bdeedf53cf1e060f3fe606b (commit)
   via  137cff8b597950dd7b7e75c3ae5f08583a1eb544 (commit)
   via  0772ce864713a343c36b532597ec5078f7c55890 (commit)
   via  0f7eb7b95d4a72b02312a33970775be575580fb0 (commit)
   via  55351d1a2d32737783c66ba2f767423de360277e (commit)
   via  0b0737d6516a42bf4c4a48a633a504bf9dd39bb7 (commit)
   via  801fc31d363c1ab9f016bbe2dc8e0bbebbabcbd3 (commit)
   via  8839c4fd40d44b825996f4cee68d4d43f1097973 (commit)
   via  e61e8f4c785248512c71f8e0a2002627037cb879 (commit)
   via  7ed136453a7a46e99cb7af5c9c4dc4b82feb6a45 (commit)
   via  311ba6b1a67d448bc58c7f3db7d0180a1e83aa46 (commit)
   via  40c07e69252a3ce80533ff1d82841ed9fec49df9 (commit)
   via  dfa1d2b5cea954a36fe1c9d323db76e51d35f376 (commit)
   via  1bc31651748bb785d08f8d92df4d8439e42f383f (commit)
   via  c61db17779388cb3b11db1d030e251b393462309 (commit)
   via  c9dfce75b2dbd13e9c8aa140c51803b7f3ca6a49 (commit)
  from  afcc2d0962a6f2a867d9022b30635707af3bafce (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 5c89bbd6b53d4a3ab7b84f906ecc7ad8a95b3183
Author: Michael Adam 
Date:   Tue Apr 28 12:18:23 2009 +0200

pm_process():raise level of debug message

Michael
(cherry picked from commit 664da577f931dfd47573d3d77a95afb573fba855)
(cherry picked from commit caa1f05420191d934c2ea1c2acaa75702c8e5c2e)

commit ea99b6854632c66bef81500e4d6c388351802d48
Author: Michael Adam 
Date:   Mon Apr 27 18:10:14 2009 +0200

s3:loadparm: prevent infinite include nesting.

This introduces a hard coded MAX_INCLUDE_DEPTH of 100.
When this is exceeded, handle_include (and hence lp_load) fails.

One could of course implement a more intelli

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-836-g7084334

2009-04-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  7084334171746f6698c02037b9d71a5466d23f2f (commit)
   via  80c20a1cd287edd945dd3d9e5783824a613b3c41 (commit)
   via  8a3db2f6d5c3e2909888dc467d1034d688fb0620 (commit)
   via  be297520dabf9e9877a7375f54b503388df4ebb1 (commit)
   via  ce3abef6d4fa6441af9ba8a9104d9d44439109d3 (commit)
   via  6728bc093237aa45605daec5a2daf42e5f888fda (commit)
   via  c417aa473fb37022d45b87ae9931b46d67a2bbfd (commit)
   via  f29ab6bbb7309ce25df6a68d64d443bd54533411 (commit)
   via  6950d7b0302a70bc62ff1eeb3cf16e220523d1c7 (commit)
   via  1d1786bdb58569ea710740f45aca61119ecfa8ae (commit)
   via  49fdd2055ca6f68fd32f69e5dd3ee3ce047cc2cb (commit)
  from  5c89bbd6b53d4a3ab7b84f906ecc7ad8a95b3183 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 7084334171746f6698c02037b9d71a5466d23f2f
Author: Karolin Seeger 
Date:   Wed Apr 29 12:45:39 2009 +0200

WHATSNEW: Update WHATSNEW.

Karolin
(cherry picked from commit 245b859dfb0e1de4c453cf9de97e6d50b163daa4)

commit 80c20a1cd287edd945dd3d9e5783824a613b3c41
Author: Karolin Seeger 
Date:   Wed Apr 29 12:38:28 2009 +0200

s3/docs: Remove documentation of "use kerberos keytab".

This parameter has been removed with d96248a9b4655.

Karolin
(cherry picked from commit b6eab68c20f0914cb946f05ebae2faba67f32806)
(cherry picked from commit 644d45ef4878e396fe62918e35e7103465eeb971)

commit 8a3db2f6d5c3e2909888dc467d1034d688fb0620
Author: Günther Deschner 
Date:   Tue Apr 14 00:01:03 2009 +0200

s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 6.

Guenther
(cherry picked from commit 6900d61d369961e0c11e590ccdc102169f21cef3)
(cherry picked from commit 41dae8256c9557ae7a00b1282a0eb05d4f36)

commit be297520dabf9e9877a7375f54b503388df4ebb1
Author: Günther Deschner 
Date:   Tue Apr 14 00:00:37 2009 +0200

s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 5.

Guenther
(cherry picked from commit 5e563ee508d0b3cc87d72ad52d777946ee0537b1)
(cherry picked from commit c3f1cbd26792928970b6a60d82746719fea688d7)

commit ce3abef6d4fa6441af9ba8a9104d9d44439109d3
Author: Günther Deschner 
Date:   Mon Apr 13 23:58:59 2009 +0200

s3-spoolss: add support for _spoolss_EnumPrinterDrivers() level 4.

Guenther
(cherry picked from commit d76837f6da2cf735d2b18c97f3b46ae2f04b750d)
(cherry picked from commit d845a971ee32c8e9adb4717abe546355eb7153c9)

commit 6728bc093237aa45605daec5a2daf42e5f888fda
Author: Günther Deschner 
Date:   Wed Apr 29 11:46:43 2009 +0200

s3-docs: document "net eventlog" in net manpage.

Guenther
(cherry picked from commit 664ff081cadd29a1e750b349ecb23e8402d977cb)
(cherry picked from commit 65d4acdb1b7f9cd78d38c23a00267688dc156da6)

commit c417aa473fb37022d45b87ae9931b46d67a2bbfd
Author: Günther Deschner 
Date:   Wed Apr 29 11:46:12 2009 +0200

s3-net: make "net eventlog" help output a little more appropriate.

Guenther
(cherry picked from commit e89cc775e660183e7126bcfa8fb37496074cf5a1)
(cherry picked from commit e26efbd2c8a49012383032fef07cddec76561aa3)

commit f29ab6bbb7309ce25df6a68d64d443bd54533411
Author: Michael Adam 
Date:   Wed Apr 29 01:49:53 2009 +0200

s3:smbd/service: switch load_registry_service/shares to use loadparm 
routines

instead of reading the registry directly with tdb and activating the
configure options by hand.

This eliminates the need for repeating checks done in loadparm.
For instance it disables registry shares without path in the server
as is the case with text based shares.

Michael
(cherry picked from commit 077bcc11257697b243916fbb02cd72b3a122b9ba)
(cherry picked from commit 502bfe9352d36ee909d7210a9d0ec0b6c7db5149)

commit 6950d7b0302a70bc62ff1eeb3cf16e220523d1c7
Author: Michael Adam 
Date:   Wed Apr 29 01:31:03 2009 +0200

s3:loadparm: refactor process_registry_service out or 
process_registry_globals

Michael
(cherry picked from commit fb3b6576127ce837ac711e87c293d1f4cf97473c)
(cherry picked from commit 480af4e0ead10241aa94f4095c7fa580240fec00)

commit 1d1786bdb58569ea710740f45aca61119ecfa8ae
Author: Günther Deschner 
Date:   Wed Apr 29 01:55:09 2009 +0200

samr: fix samr_ConnectVersion enum which is 32bit not 16bit.

Volker, please check.
Rafal, haven't we seen this in your tests at sambaxp as well ?

Guenther
(cherry picked from commit 67ca76c288eb095ae59e98927317d51c96c89551)
(cherry picked from commit 59e75824e81ffb6d05e624a5344123c585998904)

commit 49fdd2055ca6f68fd32f69e5dd3ee3ce047cc2cb
Author: Günther Deschner 
Date:   Wed Apr 29 01:49:26 2009 +0200

svcctl: Fix IDL for svcctl_StartServiceW().

Guenther
(cherry picked from commit a23fb4663df11b237e94683510d282c286bbeed6)

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-840-gf2db08f

2009-04-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  f2db08fca586f626646653855171c45c30be7933 (commit)
   via  a983e988806c747f8c27fec493d6372b52f43743 (commit)
   via  53b724da1d23a015bd6f4f406c5a9a249bc920f6 (commit)
   via  90017b070d0f2148a5bb9c2cc73d77b3b4f2dd36 (commit)
  from  7084334171746f6698c02037b9d71a5466d23f2f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit f2db08fca586f626646653855171c45c30be7933
Author: Karolin Seeger 
Date:   Wed Apr 29 14:44:59 2009 +0200

WHATSNEW: Correct WHATSNEW.

Karolin
(cherry picked from commit 83c7d8697a8df92ff1592af9c382f483354eeb0f)

commit a983e988806c747f8c27fec493d6372b52f43743
Author: Günther Deschner 
Date:   Wed Apr 29 14:29:25 2009 +0200

s3-test: make it possible to find the built vlp in "make test".

Guenther
(cherry picked from commit 3316ae9d75dfe6c7a960938c9503367880510079)
(cherry picked from commit 0146649cf95ad27a583057df300fe5712b89e806)

commit 53b724da1d23a015bd6f4f406c5a9a249bc920f6
Author: Jelmer Vernooij 
Date:   Wed Apr 22 23:54:10 2009 +0200

Specify explicit path to vlp, for those not having vlp in $PATH.
(cherry picked from commit 79177c1d36e125b08aa4d6e0e42e9a97f625b3c8)
(cherry picked from commit f51a4b95b472496f58759dae75ff1369324c0a29)

commit 90017b070d0f2148a5bb9c2cc73d77b3b4f2dd36
Author: Karolin Seeger 
Date:   Wed Apr 29 14:12:01 2009 +0200

s3/docs: Fix serveral typos.

This fixes bug #4315.
Thanks to Felipe Augusto van de Wiel !

Karolin
(cherry picked from commit 3422b9c546cdd262bd747e1e737c2b6479b4d21e)
(cherry picked from commit 3da62734fffa99cde1084beeb69e94a7bc623dde)

---

Summary of changes:
 WHATSNEW.txt |   13 ++---
 docs-xml/Samba3-HOWTO/TOSHARG-Passdb.xml |   10 +-
 selftest/target/Samba3.pm|   10 +-
 source3/script/tests/selftest.sh |   10 +-
 4 files changed, 29 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index b13fef7..14c4f53 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -21,8 +21,8 @@ o Changed the way smbd handles untrusted domain names given 
during user
   authentication.
 
 Printing Changes:
-o Support for Windows Vista Printer Change Notification has been added.
-o Various fixes for Samba spoolss print server.
+o Various fixes including printer change notificiation for Samba spoolss
+  print servers.
 
 Internal changes:
 o The remaining hand-marshalled DCE/RPC services (ntsvcs, svcctl, eventlog
@@ -72,11 +72,10 @@ behavior.
 Printing Changes
 
 
-Support for Windows Vista Printer Change Notification has been added to Samba.
-
-The spoolss was replaced by autogenerated code based on PIDL. That fixes
-several printing issues on Samba print servers and will stabilize the printing
-functionality generally.
+The spoolss subsystem was replaced by autogenerated code based on PIDL. That 
fixes
+several printing issues including printer change notificiation on Samba print
+servers and will stabilize the printing functionality generally.
+The support for spoolss printing with Windows Vista has been improved.
 
 
 Internal Changes
diff --git a/docs-xml/Samba3-HOWTO/TOSHARG-Passdb.xml 
b/docs-xml/Samba3-HOWTO/TOSHARG-Passdb.xml
index 957abbf..8659437 100644
--- a/docs-xml/Samba3-HOWTO/TOSHARG-Passdb.xml
+++ b/docs-xml/Samba3-HOWTO/TOSHARG-Passdb.xml
@@ -757,7 +757,7 @@ Samba-3 introduces a number of new password backend 
capabilities.
 trust accounts
The POSIX and sambaSamAccount components of computer (machine) 
accounts are both used by Samba.
Thus, machine accounts are treated inside Samba in the same way 
that Windows NT4/200X treats
-   them. A user account and a machine account are 
indistinquishable from each other, except that
+   them. A user account and a machine account are 
indistinguishable from each other, except that
the machine account ends in a $ character, as do trust accounts.

 
@@ -1050,7 +1050,7 @@ is being added to the net toolset (see 

 lookups
The first problem is that all lookups must be performed 
sequentially. Given that
-   there are approximately two lookups per domain logon (one 
during intial logon validation
+   there are approximately two lookups per domain logon (one 
during initial logon validation
and one for a session connection setup, such as when mapping a 
network drive or printer), this
is a performance bottleneck for large sites. What is needed is 
an indexed approach
such as that used in databases.
@@ -2626,7 +2626,7 @@ sambaNTPassword: 878D8014606CDA29677A44EFA1353FC7
 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-4-0-0alpha7-842-g2118880

2009-04-30 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  21188807b56319b3eca0d410d3859fa5cdbede54 (commit)
   via  c21b12544c7b62a220f9b8fdb1a77bcc0585ed4e (commit)
  from  f2db08fca586f626646653855171c45c30be7933 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 21188807b56319b3eca0d410d3859fa5cdbede54
Author: Karolin Seeger 
Date:   Thu Apr 30 09:33:43 2009 +0200

WHATSNEW: Add new net service subcommands to the WHATSNEW.

Karolin
(cherry picked from commit b7c4a63d034f8c33b3a4857cae41270bd55e270f)

commit c21b12544c7b62a220f9b8fdb1a77bcc0585ed4e
Author: Karolin Seeger 
Date:   Thu Apr 30 09:27:43 2009 +0200

WHATSNEW: Add some WHATSNEW improvements.

Karolin
(cherry picked from commit b59f79fd262b9dbb97db90e8cafe7642fd6b6317)

---

Summary of changes:
 WHATSNEW.txt |   68 +-
 1 files changed, 67 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 14c4f53..64ffe3f 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -30,6 +30,7 @@ o The remaining hand-marshalled DCE/RPC services (ntsvcs, 
svcctl, eventlog
 o Samba3 and Samba4 do now share a common tevent library.
 o The code has been cleaned up and the major basic interfaces are shared with
   Samba4 now.
+o An asynchronous API has been added.
 
 
 General Changes
@@ -95,6 +96,8 @@ interfaces now. That is why the libraries were moved to the 
toplevel directory.
 That is one of the first steps to share code and minimize the gap between
 these two versions.
 
+An asynchronous API has been added.
+
 
 ##
 Changes
@@ -105,6 +108,7 @@ smb.conf changes
 
Parameter Name  Description Default
--  --- ---
+
access based share enumNew No
dedicated keytab file  New ""
kerberos methodNew default
@@ -117,7 +121,69 @@ smb.conf changes
 New [sub]commands
 -
 
-   net eventlog
+   net eventlogImport/dump/export native win32 
eventlog files.
+   net rpc service create  Create a new service.
+   net rpc service delete  Delete an existing service.
+
+
+New configure options
+-
+
+--enable-external-libtallocEnable external talloc
+--enable-merged-build  Build Samba 4 as well
+--enable-gnutlsTurn on gnutls support
+--with-statedir=DIRWhere to put persistent state files
+--with-cachedir=DIRWhere to put temporary cache files
+--with-ncalprcdir=DIR  Where to put ncalrpc sockets
+--with-selftest-shrdir=DIR The share directory that make test will be run
+   against
+--with-selftest-custom-conf=PATH
+   An optional custom smb.conf that is included in
+   the server smb.conf during make test
+--with-wbclientUse external wbclient
+--with-included-popt   Use bundled popt library, not from system
+--with-libiconv=BASEDIRUse libiconv in BASEDIR/lib and 
BASEDIR/include
+--with-sqlite3 SQLITE3 backend support
+--with-pthreadsInclude pthreads
+--with-setproctitleSearch for setproctitle support
+
+
+Commit Highlights
+=
+
+
+o   Steven Danneman 
+* Change the way smbd handles untrusted domain names given during user
+  authentication.
+
+
+o   Guenther Deschner 
+* Replace the hand-marshalled DCE/RPC services ntsvcs, svcctl, eventlog
+  and spoolss by autogenerated code based on PIDL.
+* Fix several printing issues and improve support for printer change
+  notificiations.
+* Add 'net eventlog'.
+
+
+o   Volker Lendecke 
+* Add asynchronous API.
+
+
+o   Stefan Metzmacher 
+* Make Samba3 and Samba4 share a tevent library.
+
+
+o   Dan Sledz 
+* Add two new parameters to control how we verify kerberos tickets.
+
+
+o   Danny Tylman 
+* Add 'net rpc service' subcommands 'create' and 'delete'.
+
+
+o   Jelmer Vernooij 
+* Make merged build possible.
+* Move common libraries to the shared lib/ directory.
 
 
 ##


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre1-233-g6f3a58d

2009-05-27 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  6f3a58dce40c7acd21f405e6eaf57e5c660a6678 (commit)
   via  92fc2b5c2f97bf966dcec4b95d8fafd514c199ec (commit)
   via  c216d96511ffb8ac4edfbf0c491a5ecccd7b63fb (commit)
   via  a0e356b5fe134f72d9c9a04914f4e7a4d4a8f9d0 (commit)
   via  84673c608acd8f9cb92d983990c9c0848819dbed (commit)
   via  9ff6c8d528f5d04dd9246645d1106718dbfdf6dc (commit)
  from  a03099aa862b1a0fa4eb89f9be875f9781c39fb1 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 6f3a58dce40c7acd21f405e6eaf57e5c660a6678
Author: Karolin Seeger 
Date:   Tue May 26 14:16:10 2009 +0200

s3/docs: Fix typo in man idmap_rid.

Karolin
(cherry picked from commit 73eaff7a395c9a7a0042f2c50f8817499b6cfdcd)
(cherry picked from commit b85c2cbcc57291ff88d8d490f548faa675b689be)

commit 92fc2b5c2f97bf966dcec4b95d8fafd514c199ec
Author: Steven Danneman 
Date:   Fri May 22 16:57:52 2009 -0700

s3/docs Add manpage for "map untrusted to domain" parameter

This fixes bug 6352.
(cherry picked from commit bf5fb8b58cb1813fdadabe8f96ef8af305d4d582)

commit c216d96511ffb8ac4edfbf0c491a5ecccd7b63fb
Author: Michael Adam 
Date:   Tue May 26 00:47:15 2009 +0200

s3:dbwrap_tool: add listkeys operation

Michael
(cherry picked from commit 714acfac013a46c3677c3eb72ad57db6d97c7d61)
(cherry picked from commit 816776d2f81c1ae90e52612af76aaafeaeb04598)

commit a0e356b5fe134f72d9c9a04914f4e7a4d4a8f9d0
Author: Michael Adam 
Date:   Tue May 26 00:26:39 2009 +0200

s3:dbwrap_tool: remove superfluous command mapping

Michael
(cherry picked from commit 11f07599006cf2ce6760095d07bfe22680c3744e)
(cherry picked from commit 53dfa79e07b22325c0f290b05d4b87dde0cbf3cb)

commit 84673c608acd8f9cb92d983990c9c0848819dbed
Author: Michael Adam 
Date:   Mon May 25 23:27:28 2009 +0200

s3:dbwrap_tool: add "erase" opearation

Michael
(cherry picked from commit dfe06d21bdc4c715e02c9f80c4bc7144a0d9ee59)
(cherry picked from commit 2e051ece16e7b18e9e82ef36f7d7e8e39d00e66d)

commit 9ff6c8d528f5d04dd9246645d1106718dbfdf6dc
Author: Björn Jacke 
Date:   Tue May 26 15:40:21 2009 +0200

s3:pam_smbpass: don't call openlog() or closelog() from pam_smbpass

Patch from Steve Langasek with tiny fixes by me to make it apply to master.
Also see Debian bug #434372 and bugzilla #4831.

Calling openlog() or closelog() inside a pam module is not good as these
functions are not stackable and no program won't re-do openlog() just 
because a
pam module might have called closelog().
(cherry picked from commit 5c34ea94bdf9e3efb6743e52dd3c0c0088cff7d8)

---

Summary of changes:
 docs-xml/manpages-3/idmap_rid.8.xml|2 +-
 .../smbdotconf/security/mapuntrustedtodomain.xml   |   33 +++
 source3/pam_smbpass/pam_smb_acct.c |   17 ++--
 source3/pam_smbpass/pam_smb_auth.c |   19 ++--
 source3/pam_smbpass/pam_smb_passwd.c   |   40 
 source3/pam_smbpass/support.c  |  102 ---
 source3/pam_smbpass/support.h  |6 +-
 source3/utils/dbwrap_tool.c|   92 --
 8 files changed, 223 insertions(+), 88 deletions(-)
 create mode 100644 docs-xml/smbdotconf/security/mapuntrustedtodomain.xml


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/idmap_rid.8.xml 
b/docs-xml/manpages-3/idmap_rid.8.xml
index f9030a1..3f6bb2e 100644
--- a/docs-xml/manpages-3/idmap_rid.8.xml
+++ b/docs-xml/manpages-3/idmap_rid.8.xml
@@ -66,7 +66,7 @@



-   Correspondingly, the formula for calculationg the RID for a
+   Correspondingly, the formula for calculating the RID for a
given Unix ID is this:

RID = ID + BASE_RID - LOW_RANGE_ID.
diff --git a/docs-xml/smbdotconf/security/mapuntrustedtodomain.xml 
b/docs-xml/smbdotconf/security/mapuntrustedtodomain.xml
new file mode 100644
index 000..bcf65e6
--- /dev/null
+++ b/docs-xml/smbdotconf/security/mapuntrustedtodomain.xml
@@ -0,0 +1,33 @@
+http://www.samba.org/samba/DTD/samba-doc";>
+
+
+If a client connects to smbd using an untrusted domain name, such as
+BOGUS\user, smbd replaces the BOGUS domain with it's SAM name before
+attempting to authenticate that user.  In the case where smbd is acting as
+a PDC this will be DOMAIN\user.  In the case where smbd is acting as a
+domain member server or a standalone server this will be WORKSTATION\user.
+
+
+
+In previous versions of Samba (pre 3.4), if smbd was acting as a domain
+member server, the BOGUS domain name would instead be replaced by the
+primary domain which smbd was a 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre1-241-g13174ad

2009-05-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  13174ada2f545c4e4f170c62a0f20eb24b52a866 (commit)
   via  dca252e98173422713bf1a72123844c516823ee6 (commit)
   via  89a287c07a2d373085b3ac591735dd111d393603 (commit)
   via  abcb6cbd2a08d584870cf3700bc3a5916a1afc3e (commit)
   via  befc85e5de8f827f1ef7c18c763f5b33d238fd45 (commit)
   via  a93117ed5016d93f5dabcd780d5882642c57c748 (commit)
   via  1f937c6a766d35b1d1f9fa52bbc4601eeeb9ebca (commit)
   via  ae42622ae88b286350d7333723e5878b1b22898e (commit)
  from  6f3a58dce40c7acd21f405e6eaf57e5c660a6678 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 13174ada2f545c4e4f170c62a0f20eb24b52a866
Author: Jeremy Allison 
Date:   Thu May 28 13:33:06 2009 -0700

Fix uninitialized variable use caught by valgrind.
Jeremy.
(cherry picked from commit 62d767d57fafd869ec956cbcc84e8c866c6d665b)

commit dca252e98173422713bf1a72123844c516823ee6
Author: Steven Danneman 
Date:   Wed May 27 17:14:49 2009 -0700

s3/auth map NULL domains to our global sam name

This is an addendum to d8c54fdd, which made make_user_info_map() match
Windows behavior by mapping untrusted domains given to smbd on the wire
with the users credentials to smbd's global sam name.

This fix was being circumvented in the case where the client passed
a NULL domain.  Vista clients do this.  In that case smbd was always
remapping the name to the machine workgroup.  The NULL domain case
should also be mapped to the global sam name.

Removing the code in this patch, causes us to fall down to the logic
added in d8c54fdd and properly map the domain.
(cherry picked from commit fbca26923915a70031f561b198cfe2cc0d9c3aa6)
(cherry picked from commit 22b9d9d28d9acd68a9bc492530fcd0a565ff0aa3)

commit 89a287c07a2d373085b3ac591735dd111d393603
Author: Michael Adam 
Date:   Wed May 27 19:25:44 2009 +0200

s3:idmap_ldap: filter out of range mappings in default idmap config

This fixes bug #6417

Michael
(cherry picked from commit e381c13b023f2b512b3f6aec133db9f323bc8132)
(cherry picked from commit 4ca03e3bb96518665c296ba2cf5aa1d91916897e)

commit abcb6cbd2a08d584870cf3700bc3a5916a1afc3e
Author: Michael Adam 
Date:   Wed May 27 19:26:32 2009 +0200

s3:idmap: fix a comment typo

Michael
(cherry picked from commit 3fe9859342c28fe9da7011fb18a5fb5de8b29fa6)
(cherry picked from commit df4a0fabff06ea31149aac45d6477564cf96179b)

commit befc85e5de8f827f1ef7c18c763f5b33d238fd45
Author: Michael Adam 
Date:   Wed May 27 19:24:03 2009 +0200

s3:idmap_tdb2: filter out of range mappings in default idmap config

This fixes bug #6416

Michael
(cherry picked from commit e12670a1053edf57af137026bd3fdb9fc7dfb0b2)
(cherry picked from commit b369902cddd55fab74ca6e0743e15e0f8cbfc4cc)

commit a93117ed5016d93f5dabcd780d5882642c57c748
Author: Michael Adam 
Date:   Wed May 27 19:12:28 2009 +0200

s3:idmap_tdb: filter out of range mappings in default idmap config

This fixes bug #6415

Michael
(cherry picked from commit 3d3f39838261ddc401053dadcc5bd8e6317a3a8e)
(cherry picked from commit 34500d59b6f35de2c3d273d3523708ec22df59ce)

commit 1f937c6a766d35b1d1f9fa52bbc4601eeeb9ebca
Author: Marc VanHeyningen 
Date:   Tue May 5 21:18:50 2009 +

s3: Allow child processes to exit gracefully if we are out of fds

When we run out of file descriptors for some reason, every new
connection forks a child that immediately panics causing smbd to
coredump.  This seems unnecessarily harsh; with this code change we
now catch that error and merely log a message about it and exit
without the core dump.

Signed-off-by: Tim Prouty 
(cherry picked from commit 1c8f9892010ce8cc754089b25313c6bc8e622165)

commit ae42622ae88b286350d7333723e5878b1b22898e
Author: Marc VanHeyningen 
Date:   Tue May 5 22:07:40 2009 +

s3: zero an uninitialized array

Invalid pointers were being dereferenced in lookup_sids causing
occasional seg faults.

Signed-off-by: Tim Prouty 
(cherry picked from commit 5afacc0a65e52e73e3887545c4e5e1ad44264b66)

---

Summary of changes:
 source3/auth/auth_util.c |   12 ++-
 source3/include/proto.h  |2 +-
 source3/lib/util.c   |   12 +++---
 source3/libsmb/clifile.c |2 +-
 source3/nmbd/asyncdns.c  |4 +-
 source3/nmbd/nmbd.c  |4 +-
 source3/passdb/lookup_sid.c  |5 ++-
 source3/printing/print_cups.c|4 +-
 source3/printing/printing.c  |5 ++-
 source3/smbd/server.c|   19 +++---
 source3/winbindd/idmap.c |2 +-
 source3/winbindd/idmap_ldap.c|   71 
 source3/winbi

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre1-244-gfd7aabd

2009-05-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  fd7aabde447d10f9fa0fe44a92431c61446d3df9 (commit)
   via  74cc64393b9eb52841f252dd387f332084fc083a (commit)
   via  5ed569018a16eea4308e9eba193bc5b1cf8a2bb2 (commit)
  from  13174ada2f545c4e4f170c62a0f20eb24b52a866 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit fd7aabde447d10f9fa0fe44a92431c61446d3df9
Author: Karolin Seeger 
Date:   Fri May 29 10:57:48 2009 +0200

s3/VERSION: Raise version number up to 3.4.0pre2.

Karolin
(cherry picked from commit 51610de47bb709739ba84075395f5409be5ebc5c)

commit 74cc64393b9eb52841f252dd387f332084fc083a
Author: Karolin Seeger 
Date:   Wed May 27 18:13:09 2009 +0200

s3/docs: Correct version number.

Karolin
(cherry picked from commit 136b885461b730cf226999b07d2198de8441ebc9)

commit 5ed569018a16eea4308e9eba193bc5b1cf8a2bb2
Author: Karolin Seeger 
Date:   Fri May 29 09:49:49 2009 +0200

s3/docs: Fix typo.

This fixes bug #4341.
Thanks to Michael Cartmell  for 
reporting!

Karolin
(cherry picked from commit 2228cc6a0f942b774bef7fb0b99009897fa4dff4)
(cherry picked from commit e1b1f14e0260395a8d452ea0a129bcc9bb3f98cc)

---

Summary of changes:
 docs-xml/Samba3-HOWTO/TOSHARG-VFS.xml |2 +-
 docs-xml/Samba3-HOWTO/index.xml   |2 +-
 source3/VERSION   |2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/Samba3-HOWTO/TOSHARG-VFS.xml 
b/docs-xml/Samba3-HOWTO/TOSHARG-VFS.xml
index b8bd327..91e9712 100644
--- a/docs-xml/Samba3-HOWTO/TOSHARG-VFS.xml
+++ b/docs-xml/Samba3-HOWTO/TOSHARG-VFS.xml
@@ -276,7 +276,7 @@ quotasettings:  gid nolimit = no
 

 logging
-   This auditing tool is more felxible than most people readily 
will recognize. There are a number of ways
+   This auditing tool is more flexible than most people will 
readily recognize. There are a number of ways
by which useful logging information can be recorded.

 
diff --git a/docs-xml/Samba3-HOWTO/index.xml b/docs-xml/Samba3-HOWTO/index.xml
index 87b0795..a0fb0fb 100644
--- a/docs-xml/Samba3-HOWTO/index.xml
+++ b/docs-xml/Samba3-HOWTO/index.xml
@@ -3,7 +3,7 @@
 
 http://www.w3.org/2003/XInclude";>
-The Official Samba 3.2.x HOWTO and Reference Guide
+The Official Samba 3.4.x HOWTO and Reference Guide
 
 

diff --git a/source3/VERSION b/source3/VERSION
index 1326b45..dbbe6cb 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -46,7 +46,7 @@ SAMBA_VERSION_REVISION=
 # e.g. SAMBA_VERSION_PRE_RELEASE=1 #
 #  ->  "2.2.9pre1" #
 
-SAMBA_VERSION_PRE_RELEASE=1
+SAMBA_VERSION_PRE_RELEASE=2
 
 
 # For 'rc' releases the version will be#


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre1-245-gf53577b

2009-05-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  f53577bc5588dc07ef31ec3e615dcc3bb7449b5a (commit)
  from  fd7aabde447d10f9fa0fe44a92431c61446d3df9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit f53577bc5588dc07ef31ec3e615dcc3bb7449b5a
Author: Karolin Seeger 
Date:   Fri May 29 14:42:03 2009 +0200

WHATSNEW: Update changes since 3.4.0pre1.

Karolin
(cherry picked from commit 7021008d5ed401d60b3b2d5f7fe6c78d63c3495b)

---

Summary of changes:
 WHATSNEW.txt |  116 ++
 1 files changed, 116 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 70fd7fc..7060d85 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -224,6 +224,122 @@ Changes since 3.4.0pre1
 ---
 
 
+o   Jeremy Allison 
+* BUG 6291: Fix 'force user'.
+* BUG 6313: ldapsam_update_sam_account() crashes while doing talloc_free on
+  malloced memory.
+* BUG 6315: Fix smbd crashes when doing vfs_full_audit on IPC$ close event.
+* BUG 6330: Fix DFS on AIX.
+* Fix a bunch of compiler warnings about wrong format types.
+* Fix the core of the SAMR access functions.
+* Fix SAMR server for winbindd access.
+
+
+o   Michael Adam 
+* BUG 4271: testparm should not print includes.
+* BUG 6292: Update config.guess from gnu.org.
+* BUG 6320: Handle registry config source in file_list.
+* BUG 6371: Unsuccessful 'net conf setparm' leaves empty share.
+* BUG 6387: Fix a crash bug in idmap_ldap_unixids_to_sids.
+* BUG 6415: Filter out of range mappings in default idmap config
+  (idmap_tdb).
+* BUG 6416: Filter out of range mappings in default idmap config
+  (idmap_tdb2).
+* BUG 6417: Filter out of range mappings in default idmap config
+  (idmap_ldap).
+* Add dbwrap_tool - a tdb tool that is CTDB-aware.
+* Hide "config backend" from swat.
+* Fix linking with --disable-shared-libs.
+
+
+o   Kai Blin 
+* BUG #6357: Use Samba default command line arguments in 'net'.
+
+
+o   Steven Danneman 
+* Fix issue with missing entries when enumerating directories.
+* Map NULL domains to our global sam name.
+
+
+o   Günther Deschner 
+* BUG 5859: Fix renaming of samr objects failed due to samr setuserinfo
+  access checks.
+* BUG 6099: Fix NETLOGON credential chain.
+* BUG 6253: Use correct value for password expiry calculation.
+* BUG 6309: Support remote unjoining of Windows 2003 or greater.
+* BUG 6340: Don't segfault when cleartext trustdom pwd could not be
+  retrieved.
+* BUG 6372: usermanager only displaying 1024 groups and aliases.
+* Fix driver upload for Xerox 4110 PS printer driver.
+* Add "net dom renamecomputer" to rename machines in a domain.
+* Inspect the correct computername string before enabling/disabling the
+  change button in netdomjoin-gui.
+* Fix join prompt dialog test in netdomjoin-gui.
+* Only gray out labels when not root and not connecting to remote
+  machines (netdomjoin-gui).
+* Allow to switch between workgroups/domains with the same name
+  (netdomjoin-gui).
+* Add NetShutdownInit and NetShutdownAbort.
+* Fix samr access checks.
+* Add a security model to LSA.
+
+
+o   Geza Gemes 
+* BUG 6136: New AFS syscall conventions.
+
+
+o   Ole Hansen 
+* BUG 6359: smbclient -L does not list workgroup for hosts with both IPv4
+  and IPv6 addresses
+
+
+o   Björn Jacke 
+* BUG 4831: Don't call openlog() or closelog() from pam_smbpass.
+* Also handle DirX return codes.
+
+
+o   Volker Lendecke 
+* BUG 5681: Do not limit the number of network interfaces.
+* BUG 6157: Fix handling of multi-value attribute "uid".
+* BUG 6302: Give the VFS a chance to read from 0-byte files.
+* BUG 6336: Fix segfault in 'net groupmap set'.
+* BUG 6361: Make --rcfile work in smbget.
+* Do not crash in ctdbd_traverse if ctdbd is not around.
+* Fix Coverity ID 897.
+* Fix a race condition in vfs_aio_fork with gpfs share modes.
+* Fix bug disclosed by lock8 torture test.
+* Fix a race condition in winbind leading to a panic.
+* Attempt to fix a Debian build problem.
+
+
+o   Jim McDonough 
+* Detect tight loop in tdb_find().
+
+
+o   Stefan Metzmacher 
+* BUG 2346: Fix posix ACLs when setting an ACL without explicit ACE for the
+  owner.
+
+
+o   Tim Prouty 
+* Fix chained sesssetupAndX/tconn messages.
+* Fix strict locking with chained reads.
+* Fix two bugs in sendfile.
+
+
+o   Slava Semushin 
+* Fix memory leak.
+* Fix file descriptor leak.
+
+
+o   Aravind Srinivasan 
+* Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.
+* Always allocate memory in dptr_Rea

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre1-255-g533457a

2009-06-01 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  533457a3a8cbabcc84af89a905c2513852a409b5 (commit)
   via  c840e6151842b35b8f5ba0946d3dec479f32cb43 (commit)
   via  9c4caffc7d64bac3cb2ac5c384ae92c9802327ee (commit)
   via  84a29259c04f192a3f989b5339ead71eda767136 (commit)
   via  838f852ce4d8a88cfafeddf841342692ef7e21a9 (commit)
   via  1ca97c39de40f607cdc572551353e2960e90de6e (commit)
   via  315ceca4930a380b05b9e9e10348fb698a7116f8 (commit)
   via  e7ce761c3f9c7873fbf636c5d5a5a3498e065770 (commit)
   via  e1499290f7fe20e6d2b966dbe2e03411c90348c4 (commit)
   via  f5288a78b8d1c7118a3d73c65dbcf915cc857c0e (commit)
  from  f53577bc5588dc07ef31ec3e615dcc3bb7449b5a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 533457a3a8cbabcc84af89a905c2513852a409b5
Author: Karolin Seeger 
Date:   Tue Jun 2 08:21:04 2009 +0200

s3/WHATSNEW: Mention new passdb backend default.

Karolin
(cherry picked from commit b1f7b6ebb9ea1ac53a83eca734e271e0a7137d0b)

commit c840e6151842b35b8f5ba0946d3dec479f32cb43
Author: Jeremy Allison 
Date:   Mon Jun 1 14:36:34 2009 -0700

Fix bug #6419 - smbclient -L 127.0.0.1" displays "netbios name" instead of 
"workgroup"
Unify the handling of the sessionsetup parsing so we don't get different
results when parsing a guest reply than an ntlmssp reply.
Jeremy.
(cherry picked from commit 736c4dddef28d53b55e58a6f62784f068e88dc01)

commit 9c4caffc7d64bac3cb2ac5c384ae92c9802327ee
Author: Björn Jacke 
Date:   Wed May 27 12:01:21 2009 +0200

s3: update manpage as to the new passdb backend default
(cherry picked from commit 83613fd2fa6d4c6e7d9eb9bdb60aac31a37bbcaf)

commit 84a29259c04f192a3f989b5339ead71eda767136
Author: Björn Jacke 
Date:   Mon May 25 14:55:04 2009 +0200

s3: make passdb backend defaults to tdbsam
(cherry picked from commit f15af8bf2def12eedd967b6e0e411f690be2f804)

commit 838f852ce4d8a88cfafeddf841342692ef7e21a9
Author: Jeremy Allison 
Date:   Sat May 30 13:28:03 2009 -0700

Fix bug #6421 - POSIX read-only open fails on read-only shares.
The change to smbd/trans2.c opens up
SETFILEINFO calls to POSIX_OPEN only. The change to first smbd/open.c 
closes 2
holes that would have been exposed by allowing POSIX_OPENS on readonly 
shares,
and their ability to set arbitrary flags permutations. The O_CREAT ->
O_CREAT|O_EXCL change removes an illegal combination (O_EXCL without 
O_CREAT)
that previously was being passed down to the open syscall.
Jeremy.
(cherry picked from commit d49ae9c87d182f32702a0b6a1cc2a2038f31d81d)

commit 1ca97c39de40f607cdc572551353e2960e90de6e
Author: Jeremy Allison 
Date:   Sat May 30 11:30:16 2009 +0200

Simplify the dropbox patch
(cherry picked from commit 0d32230c17dbfa5e790d2023ba655f109938ef28)

commit 315ceca4930a380b05b9e9e10348fb698a7116f8
Author: Volker Lendecke 
Date:   Wed May 13 15:46:35 2009 +0200

Re-Add the "dropbox" functionality with -wx rights on a directory
(cherry picked from commit 78aecba62195822f3edb6134548657cf7ba9037c)

commit e7ce761c3f9c7873fbf636c5d5a5a3498e065770
Author: Günther Deschner 
Date:   Fri May 29 13:15:27 2009 +0200

s3-netlogon: Fix _netr_LogonSamLogon{Ex} with validation level != 3.

Guenther
(cherry picked from commit 90b38906541de554e3964d96ed83a7c71b5ea05c)
(cherry picked from commit a8868d7fbf51e4706a7d2ee44a9066a8e1efcb4a)

commit e1499290f7fe20e6d2b966dbe2e03411c90348c4
Author: Günther Deschner 
Date:   Fri May 29 12:42:15 2009 +0200

s3-netlogon: return proper error code for unsupported validation class.

Guenther
(cherry picked from commit 65f86a644a8171a99c63b6cb32e01e22897174f6)
(cherry picked from commit 745f8d37fffe9d2ac2938101b08ff39ebf50c94c)

commit f5288a78b8d1c7118a3d73c65dbcf915cc857c0e
Author: Günther Deschner 
Date:   Fri May 29 12:41:41 2009 +0200

s3-rpc_server: increase max number of open policy handles per pipe to 2048.

Guenther
(cherry picked from commit 9bd8b0a15773d3d5c0649bfb49bb16acfb4bb5f1)
(cherry picked from commit aebc22c407c60588eabae324eb9cc06e73538dd4)

---

Summary of changes:
 WHATSNEW.txt   |   20 
 docs-xml/smbdotconf/security/passdbbackend.xml |8 --
 source3/libsmb/cliconnect.c|   29 +--
 source3/param/loadparm.c   |2 +-
 source3/rpc_server/srv_lsa_hnd.c   |2 +-
 source3/rpc_server/srv_netlog_nt.c |   13 +-
 source3/smbd/filename.c|   13 +++---
 source3/smbd/open.c|6 ++--
 source3/smbd/trans2.c  |   14 +++
 9 files changed, 81 insertions(+), 26 deletions(-)


Changese

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre1-263-g491c57d

2009-06-02 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  491c57da747527dc3c5638a007689b0b04645fb9 (commit)
   via  6f95595008bf6e6365ad372ad4b63566237df225 (commit)
   via  bc70ee9615790f7069848ff5c63c09796fcc1d83 (commit)
   via  260a746c8765bb63a2c9073a6dc17bc504003191 (commit)
   via  e9963e1c4ed5daaf02734af1e0fdf5c4c9c14804 (commit)
   via  f4cecbf117686830b542cd03c6a809cc1047d21c (commit)
   via  110b458d18c2760e9d6b1fe790eb23783e1dd510 (commit)
   via  da45972d859499da1296d5b915895d7d46015cb5 (commit)
  from  533457a3a8cbabcc84af89a905c2513852a409b5 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 491c57da747527dc3c5638a007689b0b04645fb9
Author: Karolin Seeger 
Date:   Tue Jun 2 09:28:49 2009 +0200

s3/WHATSNEW: Update changes since 3.4.0pre1.

Karolin
(cherry picked from commit 36b8bbb0328bbcccdc6e9fe99ae4933c916885da)

commit 6f95595008bf6e6365ad372ad4b63566237df225
Author: Kumar Thangavelu 
Date:   Fri May 29 11:27:38 2009 +0200

s3/getdcname: Fix 'net' crash.

'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.

Signed-off-by: Volker Lendecke 
(cherry picked from commit 795692bd9546b91647ea96cc43ebb5c8efc0aaf2)
(cherry picked from commit 1b401a1b5374d037757954bb023287fa57b1c9b9)

commit bc70ee9615790f7069848ff5c63c09796fcc1d83
Author: Günther Deschner 
Date:   Thu May 28 11:51:46 2009 +0200

nss_wrapper: fix nss_wrapper build for solaris.

Guenther
(cherry picked from commit 136b2a3eb21eda28e7a18547751ee20f097e7492)
(cherry picked from commit 0677a068dce0bd1cc76fc3ea13322e57b1d1c3af)

commit 260a746c8765bb63a2c9073a6dc17bc504003191
Author: Günther Deschner 
Date:   Thu May 28 10:53:53 2009 +0200

nss_wrapper: remove re-structuring leftovers (unused variables).

Guenther
(cherry picked from commit 37e4c92b383397a2c77db7e5d8adf2fa4a24d398)
(cherry picked from commit db2fa7179db37d5cb6475006b88ff648636ac602)

commit e9963e1c4ed5daaf02734af1e0fdf5c4c9c14804
Author: Günther Deschner 
Date:   Thu May 28 10:40:22 2009 +0200

s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user 
from group" script.

Guenther
(cherry picked from commit 7a5475f098c6a20f867adc081ca455e6c393755b)
(cherry picked from commit 1a129e79baac7c7ebbc63c9e077ede4b123cf390)

commit f4cecbf117686830b542cd03c6a809cc1047d21c
Author: Günther Deschner 
Date:   Thu May 28 10:39:37 2009 +0200

nss_wrapper: support member add and delete for groups in nss_wrapper.pl.

Guenther
(cherry picked from commit ebf8df35c9583619a012e85964f2ad5187a199fe)
(cherry picked from commit 0f93abf8222672e5f7c09fd0b55337de82e9569f)

commit 110b458d18c2760e9d6b1fe790eb23783e1dd510
Author: Günther Deschner 
Date:   Wed May 27 22:35:14 2009 +0200

nss_wrapper: split out passwd and group paths in nss_wrapper.pl.

Guenther
(cherry picked from commit 7bb9e08d7e75be88a9788563f053794554f680a8)
(cherry picked from commit 8bda8295ffc6fa9a9776f821b11075b6bac7a80d)

commit da45972d859499da1296d5b915895d7d46015cb5
Author: Günther Deschner 
Date:   Wed May 27 18:38:10 2009 +0200

nss_wrapper: restructure nwrap calls.

Guenther
(cherry picked from commit ec9a0917055d731aa95e2fea2045445f9945b74d)
(cherry picked from commit bf255ec2a81f2f44a9ef0379beaec0a51bbfb000)

---

Summary of changes:
 WHATSNEW.txt |5 +
 lib/nss_wrapper/nss_wrapper.c|  242 ++
 lib/nss_wrapper/nss_wrapper.pl   |  197 ++-
 selftest/target/Samba3.pm|   12 +-
 source3/libsmb/dsgetdcname.c |4 +-
 source3/script/tests/selftest.sh |   12 +-
 6 files changed, 353 insertions(+), 119 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 9809072..35e52c5 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -302,6 +302,7 @@ o   Günther Deschner 
 * Add NetShutdownInit and NetShutdownAbort.
 * Fix samr access checks.
 * Add a security model to LSA.
+* Fix nss_wrapper build for Solaris.
 
 
 o   Geza Gemes 
@@ -357,6 +358,10 @@ o   Aravind Srinivasan 
 * Always allocate memory in dptr_ReadDirName.
 
 
+o   Kumar Thangavelu 
+* Fix 'net' crash during domain join.
+
+
 o   Marc VanHeyningen 
 * Zero an uninitialized array.
 * Allow child processes to exit gracefully if we are out of fds.
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index da09083..1875dc3 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -771,14 +771,11 @@ static int nwrap_gr_copy_r(const struct group *src, 
struct group *dst,
 }

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-17-gb3a68b8

2009-06-11 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  b3a68b86b9e8a9b66fe540269c4abe9b5a71ab6b (commit)
   via  6c50b256262fd2f17a9aff44a42f97c2cbd5decd (commit)
   via  6af23dc0cc65bb91eb7b0c7e3b9ebd9bb4081552 (commit)
   via  fb31ca23e227385efcbd6a3e6fc737d5ff7cd2af (commit)
   via  b00d1f5f96883fd5429889f6472f212a84b8699b (commit)
   via  c757a2be81b82d3ecc4f31e13a6dcc407a5d5882 (commit)
   via  5f02e51a230bb8ab81d9bf7bfcd99334c82172ca (commit)
   via  784f18192ed30fb702c0f3797e15230a998072e2 (commit)
   via  ebbfa4ea102aa969b80a2c724bf6e8fe465865ca (commit)
   via  f053261c3f37ea80fd82110a9981bde57f03ee8a (commit)
   via  fb2cf8bde2527acd135b13d1aee83cd4086fa35e (commit)
   via  16a863322a740284db9f861f1a2fc3f1314d568b (commit)
   via  80c52c15b5ba3ea2641a50b4e5b86580d2d75e0e (commit)
   via  0e02eab5f63ead8296ba66260f6f204f0dc22fc2 (commit)
   via  3b8f3604d694c0407fedf5d0d184e00cb69b674f (commit)
   via  a9ea84a9db7ff3846b3960667255cc1281151983 (commit)
   via  5f90912c858d0b250e60bdb48288ac1635228eca (commit)
  from  491c57da747527dc3c5638a007689b0b04645fb9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit b3a68b86b9e8a9b66fe540269c4abe9b5a71ab6b
Author: Karolin Seeger 
Date:   Thu Jun 11 09:58:57 2009 +0200

WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit 524b090b12c51ad2748e2b635144c9d0fa89c350)

commit 6c50b256262fd2f17a9aff44a42f97c2cbd5decd
Author: Karolin Seeger 
Date:   Thu Jun 11 09:35:48 2009 +0200

VERSION: Raise version number up to 3.4.0rc1.

Karolin
(cherry picked from commit 0f68bd945ff797ffaa3fcc3a5722a4bc17639276)

commit 6af23dc0cc65bb91eb7b0c7e3b9ebd9bb4081552
Author: Günther Deschner 
Date:   Tue Jun 9 15:41:44 2009 +0200

s3-net: fix "net ads testjoin".

This always needs to use machine account credentials.
Fixes bug #6456.

Kai, please check.

Guenther

Signed-off-by: Kai Blin 
(cherry picked from commit f1d8ffab15d339f485b4cb2062167db026537b1f)

commit fb31ca23e227385efcbd6a3e6fc737d5ff7cd2af
Author: Karolin Seeger 
Date:   Wed Jun 10 08:39:35 2009 +0200

s3/docs: Fix typos.

Fix typos reported by OPC oota .
Thanks!

Karolin
(cherry picked from commit ad0d8032068fc9b920e205d3f5f923174101d777)
(cherry picked from commit b7d54f443ade79d3f2b71aa138fd5254754bb750)

commit b00d1f5f96883fd5429889f6472f212a84b8699b
Author: Günther Deschner 
Date:   Fri May 29 18:08:02 2009 +0200

s3-passdb: fix uninitialized variable in local_password_change().

Guenther
(cherry picked from commit ac1ee43a2a4efa54d3d236aad8b8d21e6aaf632c)

commit c757a2be81b82d3ecc4f31e13a6dcc407a5d5882
Author: Volker Lendecke 
Date:   Mon Jun 8 10:05:11 2009 +0200

Further fix for 6449

Thanks to TAKAHASHI Motonobu  for reporting!
(cherry picked from commit 4368df8c839612236951b4f16367ab178c91d42e)

commit 5f02e51a230bb8ab81d9bf7bfcd99334c82172ca
Author: Volker Lendecke 
Date:   Mon Jun 8 09:45:21 2009 +0200

Fix bug 6449

Thanks to TAKAHASHI Motonobu  for reporting!
(cherry picked from commit 022563dc7efb132293bff4ae9c5e21dcb3e1effc)

commit 784f18192ed30fb702c0f3797e15230a998072e2
Author: Karolin Seeger 
Date:   Sat Jun 6 15:56:47 2009 +0200

s3/docs: Fix example.

The 'ldap suffix' is not added automatically to the 'ldap admin dn'.
This fixes bug #5584.
Thanks to Stefan Bauer  for reporting!

Karolin
(cherry picked from commit 0fee798552038b730b0107540d6cfeb475803555)
(cherry picked from commit 629e7aa91a33a5428676d8f6eeac19ea9fec14d6)

commit ebbfa4ea102aa969b80a2c724bf6e8fe465865ca
Author: Karolin Seeger 
Date:   Sat Jun 6 15:10:08 2009 +0200

s3/passdb: Fix debug message: 'net setmaxrid' does not exist.

This is aiming bug #6351.

Karolin
(cherry picked from commit c94d1cd7b1dc3ff99ae5a1eb9058ed6015fb9749)
(cherry picked from commit c72f75afce0f0ba300ba12ccca61a650a6c1e73b)

commit f053261c3f37ea80fd82110a9981bde57f03ee8a
Author: Karolin Seeger 
Date:   Fri Jun 5 15:35:05 2009 +0200

s3/docs: Fix typo.

Karolin
(cherry picked from commit 613c8acbdd93210b40ec6fa48cbbf297a061b3cc)
(cherry picked from commit c84f1c7ac9da7e26f28cb233efe45614f0cedea3)

commit fb2cf8bde2527acd135b13d1aee83cd4086fa35e
Author: Björn Jacke 
Date:   Wed Jun 3 17:39:50 2009 +0200

s3:torture: fix password timestamp checks on NetBSD

The Open Group says:

"The useconds argument [of usleep] must be less than 1,000,000."

NetBSD takes this seriously. usleep of more than 99 are effectless.
(cherry picked from commit b3491df2f9db2c550845243975ddbf0a2f9658e6)
(cherry picked from commit 50f362e294d5a507d03fd54d1d976f40a935288f)

commit 16a863322a740284db9f861f1a2fc3f1314d

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-37-g119ba61

2009-06-17 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  119ba61a75a4da6066b4f62d9b4fb444aa37c38b (commit)
  from  f49af1fc7e04f53e0363aab50dd446191c6c0a6b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 119ba61a75a4da6066b4f62d9b4fb444aa37c38b
Author: Karolin Seeger 
Date:   Wed Jun 17 15:41:32 2009 +0200

WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit 86adaae8ea12a88e6f7e84de4c645f237730da1c)

---

Summary of changes:
 WHATSNEW.txt |   14 +-
 1 files changed, 13 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 02f33f3..a8c4afe 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@

Release Notes for Samba 3.4.0rc1
-   June 17, 2009
+   June 19, 2009

 
 
@@ -244,15 +244,27 @@ Changes since 3.4.0pre2
 ---
 
 
+o   Jeremy Allison 
+* BUG 6297: Owner of sticky directory cannot delete files created by
+  others.
+
+
 o   Günther Deschner 
 * BUG 5456: Fix "net ads testjoin".
+* BUG 6305: Correctly prompt for a password when a username was given.
+* BUG 6451: net/libnetapi user rename using wrong access bits.
 * BUG 6458: Fix uninitialized variable in local_password_change().
+* BUG 6465: Fix enumeration of empty aliases.
 
 
 o   Volker Lendecke 
 * BUG 6449: 'net rap user add' crashes without -C option.
 
 
+o   Andreas Schneider 
+* Improve pam_winbind documentation.
+
+
 o   Simo Sorce 
 * BUG 6081: Make it possible to change machine account sids.
 * BUG 6333: Consolidate create/delete account paths in pdbedit.


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-42-g3c6d8df

2009-06-18 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  3c6d8df7f6cb7cbc806218fc24f9dee069c63d18 (commit)
   via  09393cc0c3deaeda8eb86827ebec9171cffdc5a2 (commit)
   via  ffe520aab3191929816f9c5724d3b9e3da5a5e86 (commit)
   via  778c2ba4fa6e6541b8973dcd4bcbd91c8de1700a (commit)
   via  2241690802b995ae71dc6c28df786dd0da4e2e3a (commit)
  from  119ba61a75a4da6066b4f62d9b4fb444aa37c38b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 3c6d8df7f6cb7cbc806218fc24f9dee069c63d18
Author: Günther Deschner 
Date:   Fri Jun 19 01:52:11 2009 +0200

s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry 
calculation.

Based on patch from Blindauer Emmanuel .

Guenther
(cherry picked from commit e77355fec0f3b30cadcefc106c4f7957bf763c6b)

commit 09393cc0c3deaeda8eb86827ebec9171cffdc5a2
Author: Kai Blin 
Date:   Wed Jun 10 13:08:40 2009 +0200

Revert "net: Use samba default command line arguments."

This reverts commit c039bc15ba597d955d0ccbf5642388b0a03ba40b and dependent
commits 33c6ba805756739b7b4395bedb66ae00797cbcb1 and
ce18ba7e24b5578672d2f2ffaab97ef708421067.

While it certainly would be a nice to have feature, this has caused more
hassle than reasonable, e.g. in net commands that need to use the machine
account like net (ads|rpc) testjoin.

This un-fixes bug #6305.
(cherry picked from commit eadbd85b2797683b3a17a1919c4aea28d6519a01)

commit ffe520aab3191929816f9c5724d3b9e3da5a5e86
Author: Jeremy Allison 
Date:   Wed Jun 17 13:56:21 2009 -0700

Fix bug #6476 - more then 3000 smbd-zombies in memory
We weren't reaping children in the [x]inetd case.
Jeremy.
(cherry picked from commit 7d20e8f7f4d3d1a17b3817cea370304f2f437809)
(cherry picked from commit ec18e0f11eda8d25feb14c92cf7d90bda8d79269)

commit 778c2ba4fa6e6541b8973dcd4bcbd91c8de1700a
Author: Karolin Seeger 
Date:   Thu Jun 18 09:32:10 2009 +0200

s3/docs: Add documentation for 'net sam rights'.

This is part of a fix for bug #6328.

Karolin
(cherry picked from commit e912764a5e0c1f05f921667eb56ef58552de454b)
(cherry picked from commit a291e88019771bb2703bf9854483404a6ee8d622)

commit 2241690802b995ae71dc6c28df786dd0da4e2e3a
Author: David Markey 
Date:   Wed Jun 17 18:29:20 2009 +0200

s3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple 
rights.

David

Signed-off-by: Günther Deschner 
(cherry picked from commit 4d189ed0be01d71689731d315b53d8ba1d158be3)

---

Summary of changes:
 WHATSNEW.txt|   39 --
 docs-xml/manpages-3/net.8.xml   |   27 ++
 nsswitch/pam_winbind.c  |3 +-
 source3/smbd/server.c   |   12 
 source3/utils/net.c |   43 
 source3/utils/net.h |9 +++-
 source3/utils/net_ads.c |   82 +++---
 source3/utils/net_dom.c |8 +--
 source3/utils/net_help.c|1 -
 source3/utils/net_proto.h   |3 +
 source3/utils/net_rpc.c |   74 +-
 source3/utils/net_rpc_join.c|3 +-
 source3/utils/net_rpc_samsync.c |4 +-
 source3/utils/net_rpc_shell.c   |9 +--
 source3/utils/net_sam.c |   64 +--
 source3/utils/net_util.c|  109 --
 16 files changed, 287 insertions(+), 203 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index a8c4afe..108945a 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -35,9 +35,6 @@ o The code has been cleaned up and the major basic interfaces 
are shared with
   Samba4 now.
 o An asynchronous API has been added.
 
-net Command Changes:
-o Parameter syntax made more consistent.
-
 
 Configuration changes
 =
@@ -120,38 +117,6 @@ these two versions.
 An asynchronous API has been added.
 
 
-net Command Changes
-===
-
-The net command now accepts the common command line parameters most other Samba
-command line utilities use, with a couple of remaining differences:
-
--l still gives long output for net commands supporting the --long flag. This 
was
-more useful than the common --log-base parameter.
-
--i still tells net to read data from stdin (like --stdin) instead of toggling
-the common --scope flag.
-
--S still tells net the server to connect to (like --server) instead of
-negotiating the common --signing flag. As -S is probably used by most scripts
-doing net rpc commands, this would have been a high-impact change for little
-gain.
-
-This change was mainly done to unify the authentification options. Here, one
-flag changed it's meaning and one useful flag was added.
-
--N used to be the short version of --ntname. It now ma

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-43-gdc54b17

2009-06-18 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  dc54b178f683be3280569d70856780d4cd852126 (commit)
  from  3c6d8df7f6cb7cbc806218fc24f9dee069c63d18 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit dc54b178f683be3280569d70856780d4cd852126
Author: Karolin Seeger 
Date:   Fri Jun 19 08:57:02 2009 +0200

WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit cfd94239b89139b3c3ec4e2815f3e05217f0419a)

---

Summary of changes:
 WHATSNEW.txt |   12 
 1 files changed, 12 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 108945a..afc2f86 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -212,10 +212,13 @@ Changes since 3.4.0pre2
 o   Jeremy Allison 
 * BUG 6297: Owner of sticky directory cannot delete files created by
   others.
+* BUG 6476: Fix smbd-zombies in memory when using [x]inetd.
 
 
 o   Günther Deschner 
 * BUG 5456: Fix "net ads testjoin".
+* BUG 6253: Use correct value for password expiry calculation in
+  pam_winbind.
 * BUG 6305: Correctly prompt for a password when a username was given.
 * BUG 6451: net/libnetapi user rename using wrong access bits.
 * BUG 6458: Fix uninitialized variable in local_password_change().
@@ -226,6 +229,11 @@ o   Volker Lendecke 
 * BUG 6449: 'net rap user add' crashes without -C option.
 
 
+o   David Markey 
+* BUG 6328: Add support for multiple rights to
+  "net sam rights grant/revoke".
+
+
 o   Andreas Schneider 
 * Improve pam_winbind documentation.
 
@@ -235,6 +243,10 @@ o   Simo Sorce 
 * BUG 6333: Consolidate create/delete account paths in pdbedit.
 
 
+o   Jelmer Vernooij 
+* Remove outdated Debian package sources.
+
+
 Changes since 3.4.0pre1
 ---
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-44-g256b2c4

2009-06-19 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  256b2c4e2055170c726439e17f586eafa856965e (commit)
  from  dc54b178f683be3280569d70856780d4cd852126 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 256b2c4e2055170c726439e17f586eafa856965e
Author: Jeremy Allison 
Date:   Fri Jun 19 10:10:13 2009 +0200

Fix bug #6487: Missing DFS call in trans2 mkdir call.
(cherry picked from commit 1a0005e1c508cf3b170d1c7e43b94a47b2820506)

---

Summary of changes:
 source3/smbd/trans2.c |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 931b7df..40b4701 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -7159,6 +7159,21 @@ static void call_trans2mkdir(connection_struct *conn, 
struct smb_request *req,
 
DEBUG(3,("call_trans2mkdir : name = %s\n", directory));
 
+   status = resolve_dfspath(ctx,
+   conn,
+   req->flags2 & FLAGS2_DFS_PATHNAMES,
+   directory,
+   &directory);
+   if (!NT_STATUS_IS_OK(status)) {
+   if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) {
+   reply_botherror(req,
+   NT_STATUS_PATH_NOT_COVERED,
+   ERRSRV, ERRbadpath);
+   }
+   reply_nterror(req, status);
+   return;
+   }
+
status = unix_convert(ctx, conn, directory, False, &directory, NULL, 
&sbuf);
if (!NT_STATUS_IS_OK(status)) {
reply_nterror(req, status);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-45-geed5630

2009-06-19 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  eed5630c7ab918bb45de7131359af2173f9e0df2 (commit)
  from  256b2c4e2055170c726439e17f586eafa856965e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit eed5630c7ab918bb45de7131359af2173f9e0df2
Author: Volker Lendecke 
Date:   Thu Jun 18 11:45:57 2009 +0200

Fix bug 4699: Remove pidfile on clean shutdown
(cherry picked from commit 5a9ca3db032af5938e9709f3355a1f45b1e08d27)
(cherry picked from commit 9424e91ecdcf2e5dbdd06e9d97693dd193608324)

---

Summary of changes:
 source3/include/proto.h |1 +
 source3/lib/pidfile.c   |   26 ++
 source3/nmbd/nmbd.c |2 ++
 source3/smbd/server.c   |3 +++
 source3/winbindd/winbindd.c |4 
 5 files changed, 28 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/proto.h b/source3/include/proto.h
index b5c0608..18555bc 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -587,6 +587,7 @@ int nt_status_to_pam(NTSTATUS nt_status);
 
 pid_t pidfile_pid(const char *name);
 void pidfile_create(const char *program_name);
+void pidfile_unlink(void);
 
 /* The following definitions come from lib/popt_common.c  */
 
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c
index 3495dae..37b36af 100644
--- a/source3/lib/pidfile.c
+++ b/source3/lib/pidfile.c
@@ -25,6 +25,8 @@
 #define O_NONBLOCK
 #endif
 
+static char *pidFile_name = NULL;
+
 /* return the pid in a pidfile. return 0 if the process (or pidfile)
does not exist */
 pid_t pidfile_pid(const char *name)
@@ -88,7 +90,6 @@ void pidfile_create(const char *program_name)
charbuf[20];
const char*short_configfile;
char *name;
-   char *pidFile;
pid_t pid;
 
/* Add a suffix to the program name if this is a process with a
@@ -110,27 +111,28 @@ void pidfile_create(const char *program_name)
}
}
 
-   if (asprintf(&pidFile, "%s/%s.pid", lp_piddir(), name) == -1) {
+   if (asprintf(&pidFile_name, "%s/%s.pid", lp_piddir(), name) == -1) {
smb_panic("asprintf failed");
}
 
pid = pidfile_pid(name);
if (pid != 0) {
DEBUG(0,("ERROR: %s is already running. File %s exists and 
process id %d is running.\n", 
-name, pidFile, (int)pid));
+name, pidFile_name, (int)pid));
exit(1);
}
 
-   fd = sys_open(pidFile, O_NONBLOCK | O_CREAT | O_WRONLY | O_EXCL, 0644);
+   fd = sys_open(pidFile_name, O_NONBLOCK | O_CREAT | O_WRONLY | O_EXCL,
+ 0644);
if (fd == -1) {
-   DEBUG(0,("ERROR: can't open %s: Error was %s\n", pidFile, 
+   DEBUG(0,("ERROR: can't open %s: Error was %s\n", pidFile_name,
 strerror(errno)));
exit(1);
}
 
if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)==False) {
DEBUG(0,("ERROR: %s : fcntl lock of file %s failed. Error was 
%s\n",  
-  name, pidFile, strerror(errno)));
+name, pidFile_name, strerror(errno)));
exit(1);
}
 
@@ -138,10 +140,18 @@ void pidfile_create(const char *program_name)
slprintf(buf, sizeof(buf) - 1, "%u\n", (unsigned int) sys_getpid());
if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
DEBUG(0,("ERROR: can't write to file %s: %s\n", 
-pidFile, strerror(errno)));
+pidFile_name, strerror(errno)));
exit(1);
}
/* Leave pid file open & locked for the duration... */
SAFE_FREE(name);
-   SAFE_FREE(pidFile);
+}
+
+void pidfile_unlink(void)
+{
+   if (pidFile_name == NULL) {
+   return;
+   }
+   unlink(pidFile_name);
+   SAFE_FREE(pidFile_name);
 }
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 064242b..f31e7b1 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -82,6 +82,8 @@ static void terminate(void)
/* If there was an async dns child - kill it. */
kill_async_dns_child();
 
+   pidfile_unlink();
+
exit(0);
 }
 
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 30addaf..a6689b8 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -842,6 +842,9 @@ static void exit_server_common(enum server_exit_reason how,
} else {
DEBUG(3,("Server exit (%s)\n",
(reason ? reason : "normal exit")));
+   if (am_parent) {
+   pidfile_unlink();
+   }
}
 
/* if we had any open SMB connections when we exited then we
diff --git a/source3/winbindd/winbindd.c

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-46-gecff055

2009-06-19 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  ecff0553d84dc230ff31fa0ada3a7999c680267f (commit)
  from  eed5630c7ab918bb45de7131359af2173f9e0df2 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit ecff0553d84dc230ff31fa0ada3a7999c680267f
Author: Karolin Seeger 
Date:   Fri Jun 19 10:31:53 2009 +0200

WHATSNEW: Update changes since 3.4.0pre2.

Karolin
(cherry picked from commit 209452c60930542bf383a9fba8626da73e0e0861)

---

Summary of changes:
 WHATSNEW.txt |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index afc2f86..22a0461 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -213,6 +213,7 @@ o   Jeremy Allison 
 * BUG 6297: Owner of sticky directory cannot delete files created by
   others.
 * BUG 6476: Fix smbd-zombies in memory when using [x]inetd.
+* BUG 6487: Add missing DFS call in trans2 mkdir call.
 
 
 o   Günther Deschner 
@@ -226,6 +227,7 @@ o   Günther Deschner 
 
 
 o   Volker Lendecke 
+* BUG 4699: Remove pidfile on clean shutdown.
 * BUG 6449: 'net rap user add' crashes without -C option.
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0pre2-48-g4a868bb

2009-06-19 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  4a868bb77943106d88e1563c915b2a0c7216931b (commit)
   via  8345b7b319d2cde49768fb3d7410d5ed67061273 (commit)
  from  ecff0553d84dc230ff31fa0ada3a7999c680267f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 4a868bb77943106d88e1563c915b2a0c7216931b
Author: Karolin Seeger 
Date:   Fri Jun 19 11:02:07 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit 58e847f998087a33f0c80c2705ac2ce5b2807e75)

commit 8345b7b319d2cde49768fb3d7410d5ed67061273
Author: Jeremy Allison 
Date:   Fri Jun 19 11:00:41 2009 +0200

Bug 6488: acl_group_override() call in posix acls references an 
uninitialized
variable.
(cherry picked from commit 2c2894b4646567e3d92b9044a5059021def338f9)

---

Summary of changes:
 WHATSNEW.txt  |2 ++
 source3/smbd/posix_acls.c |   22 ++
 2 files changed, 12 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 22a0461..3eca6f0 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -214,6 +214,8 @@ o   Jeremy Allison 
   others.
 * BUG 6476: Fix smbd-zombies in memory when using [x]inetd.
 * BUG 6487: Add missing DFS call in trans2 mkdir call.
+* BUG 6488: acl_group_override() call in posix acls references an
+  uninitialized variable.
 
 
 o   Günther Deschner 
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 8d172e1..53bfaa1 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -2547,24 +2547,22 @@ static bool current_user_in_group(gid_t gid)
 /
 
 static bool acl_group_override(connection_struct *conn,
-   gid_t prim_gid,
+   SMB_STRUCT_STAT *psbuf,
const char *fname)
 {
-   SMB_STRUCT_STAT sbuf;
-
if ((errno != EPERM) && (errno != EACCES)) {
return false;
}
 
/* file primary group == user primary or supplementary group */
if (lp_acl_group_control(SNUM(conn)) &&
-   current_user_in_group(prim_gid)) {
+   current_user_in_group(psbuf->st_gid)) {
return true;
}
 
/* user has writeable permission */
if (lp_dos_filemode(SNUM(conn)) &&
-   can_write_to_file(conn, fname, &sbuf)) {
+   can_write_to_file(conn, fname, psbuf)) {
return true;
}
 
@@ -2575,7 +2573,7 @@ static bool acl_group_override(connection_struct *conn,
  Attempt to apply an ACL to a file or directory.
 /
 
-static bool set_canon_ace_list(files_struct *fsp, canon_ace *the_ace, bool 
default_ace, gid_t prim_gid, bool *pacl_set_support)
+static bool set_canon_ace_list(files_struct *fsp, canon_ace *the_ace, bool 
default_ace, SMB_STRUCT_STAT *psbuf, bool *pacl_set_support)
 {
connection_struct *conn = fsp->conn;
bool ret = False;
@@ -2754,7 +2752,7 @@ static bool set_canon_ace_list(files_struct *fsp, 
canon_ace *the_ace, bool defau
*pacl_set_support = False;
}
 
-   if (acl_group_override(conn, prim_gid, fsp->fsp_name)) {
+   if (acl_group_override(conn, psbuf, fsp->fsp_name)) {
int sret;
 
DEBUG(5,("set_canon_ace_list: acl group control 
on and current user in file %s primary group.\n",
@@ -2785,7 +2783,7 @@ static bool set_canon_ace_list(files_struct *fsp, 
canon_ace *the_ace, bool defau
*pacl_set_support = False;
}
 
-   if (acl_group_override(conn, prim_gid, fsp->fsp_name)) {
+   if (acl_group_override(conn, psbuf, fsp->fsp_name)) {
int sret;
 
DEBUG(5,("set_canon_ace_list: acl group control 
on and current user in file %s primary group.\n",
@@ -3785,7 +3783,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32 
security_info_sent, const SEC_DESC
if (set_acl_as_root) {
become_root();
}
-   ret = set_canon_ace_list(fsp, file_ace_list, False, 
sbuf.st_gid, &acl_set_support);
+   ret = set_canon_ace_list(fsp, file_ace_list, False, &sbuf, 
&acl_set_support);
if (set_acl_as_root) {
unbecome_root();
}
@@ -3802,7 +3800,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32 
security_info_sent, const SEC_DESC
if (se

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-6-gf8096d7

2009-06-27 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  f8096d726049660f7a72cc100feb718ae9320b47 (commit)
   via  dbdeb3331df694c1a9b8d9472ecc9fb07d26406e (commit)
   via  a3a7727358080381d3231d74b0514ecc29da667d (commit)
   via  413a3176301419d672503cdfc83a8b42388f7583 (commit)
   via  52ec2d9533a8ba5633cabd7f22c2d0e464f3ba60 (commit)
   via  495b5fab17b03c3f49cf1ce79bd682b82709b0a0 (commit)
  from  4a868bb77943106d88e1563c915b2a0c7216931b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit f8096d726049660f7a72cc100feb718ae9320b47
Author: Karolin Seeger 
Date:   Sat Jun 27 11:15:59 2009 +0200

s3/VERSION: Raise version number up to 3.4.0.

Karolin
(cherry picked from commit bb59901d6e4f7c03b815ac6afd297b4230031330)

commit dbdeb3331df694c1a9b8d9472ecc9fb07d26406e
Author: Karolin Seeger 
Date:   Sat Jun 27 11:11:04 2009 +0200

WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit 228d43ce016e56396f83ed4fb77b246c539bba79)

commit a3a7727358080381d3231d74b0514ecc29da667d
Author: Volker Lendecke 
Date:   Tue Jun 16 11:51:11 2009 +0200

s3/lanman: Workaround for KB932762.

This addresses bug #6498.
(cherry picked from commit a702dea5a86f22e0b7857b67447152a06b3bbea2)
(cherry picked from commit ed9d22f23789aa0b3c3c69aabcd398d52c95de5b)

commit 413a3176301419d672503cdfc83a8b42388f7583
Author: Michael Adam 
Date:   Fri Jun 26 14:09:10 2009 +0200

s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().

With the previous code, the cache can never have been hit at all.

Michael
(cherry picked from commit a4bc5bfa95be242fe1c8e0cd520a8f1e3d2a67f5)
(cherry picked from commit 410fa8258169bc9b4a61164cd893746d3e6abfae)

commit 52ec2d9533a8ba5633cabd7f22c2d0e464f3ba60
Author: Björn Jacke 
Date:   Sat Apr 4 11:21:01 2009 +0200

s3:configure: "test" only takes one "="
(cherry picked from commit ddd37c2b235eb03ddb438ebb2cdd14dd67f867f3)
(cherry picked from commit 35c8019db31ccb673498b32134944d8acac6ffa9)

commit 495b5fab17b03c3f49cf1ce79bd682b82709b0a0
Author: Karolin Seeger 
Date:   Fri Jun 19 15:23:22 2009 +0200

s3/docs: Fix typo.

This fixes bug #6412.
Thanks to Carsten Dumke  for reporting!

Karolin
(cherry picked from commit 4ad43a21344b43f1c9fe459165098bcab1695711)
(cherry picked from commit 84750d556d0a42b5d8b134308311e2cb9a533b58)

---

Summary of changes:
 WHATSNEW.txt   |   29 ++-
 .../smbdotconf/security/checkpasswordscript.xml|2 +-
 source3/VERSION|2 +-
 source3/configure.in   |2 +-
 source3/passdb/lookup_sid.c|2 +-
 source3/smbd/lanman.c  |1 +
 6 files changed, 26 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 3eca6f0..64959d5 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,13 +1,10 @@
-   
-   Release Notes for Samba 3.4.0rc1
-   June 19, 2009
-   
+   =
+   Release Notes for Samba 3.4.0
+  July 1, 2009
+   =
 
 
-This is the first release candidate of Samba 3.4.  This is *not*
-intended for production environments and is designed for testing
-purposes only.  Please report any defects via the Samba bug reporting
-system at https://bugzilla.samba.org/.
+This is the first stable release of Samba 3.4.
 
 
 Major enhancements in Samba 3.4.0 include:
@@ -205,6 +202,22 @@ o   Jelmer Vernooij 
 * Move common libraries to the shared lib/ directory.
 
 
+Changes since 3.4.0rc1
+--
+
+
+oMichael Adam 
+ * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache().
+
+
+oBjörn Jacke 
+ * BUG 6497: Fix calling of 'test' in configure.
+
+
+oVolker Lendecke 
+ * BUG 6498: Add workaround for MS KB932762.
+
+
 Changes since 3.4.0pre2
 ---
 
diff --git a/docs-xml/smbdotconf/security/checkpasswordscript.xml 
b/docs-xml/smbdotconf/security/checkpasswordscript.xml
index 152632c..1344997 100644
--- a/docs-xml/smbdotconf/security/checkpasswordscript.xml
+++ b/docs-xml/smbdotconf/security/checkpasswordscript.xml
@@ -18,5 +18,5 @@
 
 
 Disabled
-check password script = 
/usr/local/sbin/crackcheck
+/usr/local/sbin/crackcheck
 
diff --git a/source3/VERSION b/source3/VERSION
index a389343..ead30d0 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -56,7 +56,7 @@ SAMBA_VERSION_PRE_RELEASE=
 # e.g. 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-8-g3eac232

2009-06-27 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  3eac232fdcae51843110ba84cd1698c1ac4be8af (commit)
   via  654024cd4625c1797e2bb19c20033a3e29feccbc (commit)
  from  f8096d726049660f7a72cc100feb718ae9320b47 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 3eac232fdcae51843110ba84cd1698c1ac4be8af
Author: Karolin Seeger 
Date:   Sat Jun 27 11:47:06 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit 2fdd917894c3571a101ac6f9cafd63585bcb8d52)

commit 654024cd4625c1797e2bb19c20033a3e29feccbc
Author: Bo Yang 
Date:   Fri May 29 16:10:19 2009 +0800

s3: fix building of pam_smbpass.

Signed-off-by: Bo Yang 
Signed-off-by: Michael Adam 
(cherry picked from commit de4c8478e5f6de8c9207f15287b52cb383a903bf)

---

Summary of changes:
 WHATSNEW.txt  |9 -
 source3/pam_smbpass/support.c |   15 +++
 2 files changed, 23 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 64959d5..06177ca 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -218,6 +218,10 @@ oVolker Lendecke 
  * BUG 6498: Add workaround for MS KB932762.
 
 
+oBo Yang 
+ * BUG 6499: Fix building of pam_smbpass.
+
+
 Changes since 3.4.0pre2
 ---
 
@@ -335,10 +339,13 @@ o   Ole Hansen 
 
 
 o   Björn Jacke 
-* BUG 4831: Don't call openlog() or closelog() from pam_smbpass.
 * Also handle DirX return codes.
 
 
+o   Steve Langasek 
+* BUG 4831: Don't call openlog() or closelog() from pam_smbpass.
+
+
 o   Volker Lendecke 
 * BUG 5681: Do not limit the number of network interfaces.
 * BUG 6157: Fix handling of multi-value attribute "uid".
diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c
index 50a2a14..dabd57d 100644
--- a/source3/pam_smbpass/support.c
+++ b/source3/pam_smbpass/support.c
@@ -20,6 +20,21 @@
 
 #include "support.h"
 
+#if defined(HAVE_SECURITY_PAM_EXT_H)
+#include 
+#elif defined(HAVE_PAM_PAM_EXT_H)
+#include 
+#endif
+
+#if defined(HAVE_SECURITY__PAM_MACROS_H)
+#include 
+#elif defined(HAVE_PAM__PAM_MACROS_H)
+#include 
+#endif
+
+#ifdef HAVE_SYSLOG_H
+#include 
+#endif
 
 #define _pam_overwrite(x)\
 do { \


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-11-gd96b0c5

2009-06-29 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  d96b0c5f9e4e53c7dc53532c28e4ec42c70232a4 (commit)
   via  a5061b118743430e5c1adae9dbd74d87370c8b7e (commit)
   via  21f78dba36388a9ee9ea3a369c1bcd9bb8ce56ba (commit)
  from  3eac232fdcae51843110ba84cd1698c1ac4be8af (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit d96b0c5f9e4e53c7dc53532c28e4ec42c70232a4
Author: Karolin Seeger 
Date:   Mon Jun 29 15:28:23 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit e742e2b3968801f15f0127f02dff27c78371b5f7)

commit a5061b118743430e5c1adae9dbd74d87370c8b7e
Author: Günther Deschner 
Date:   Mon Jun 29 15:06:40 2009 +0200

s3-selftest: add RPC-SAMR-MACHINE-AUTH to list of test to run against s3.

Guenther
(cherry picked from commit d5c73127b7e6a9ab917c35811fcfdcfe11681086)

commit 21f78dba36388a9ee9ea3a369c1bcd9bb8ce56ba
Author: David Markey 
Date:   Mon Jun 29 08:12:03 2009 +0200

Fix bug 6514: net gives unhelpful "lp_load failed" when it's missing 
smb.conf
(cherry picked from commit 55ed0be65f07b46d51a647e556644039d68a002d)
(cherry picked from commit 36791e2d05f05282ac4eaab17541aa857e48d830)

---

Summary of changes:
 WHATSNEW.txt  |4 
 source3/lib/netapi/netapi.c   |2 +-
 source3/script/tests/test_posix_s3.sh |5 +++--
 3 files changed, 8 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 06177ca..011f457 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -218,6 +218,10 @@ oVolker Lendecke 
  * BUG 6498: Add workaround for MS KB932762.
 
 
+oDavid Markey 
+ * BUG 6514: Improve error message in 'net' when smb.conf is not available.
+
+
 oBo Yang 
  * BUG 6499: Fix building of pam_smbpass.
 
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index 8893881..2f8474b 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -89,7 +89,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
 
if (!lp_load(get_dyn_CONFIGFILE(), true, false, false, false)) {
TALLOC_FREE(frame);
-   fprintf(stderr, "lp_load failed\n");
+   fprintf(stderr, "error loading %s\n", get_dyn_CONFIGFILE() );
return W_ERROR_V(WERR_GENERAL_FAILURE);
}
 
diff --git a/source3/script/tests/test_posix_s3.sh 
b/source3/script/tests/test_posix_s3.sh
index 0bcf369..04d0eeb 100755
--- a/source3/script/tests/test_posix_s3.sh
+++ b/source3/script/tests/test_posix_s3.sh
@@ -42,8 +42,9 @@ rpc="$rpc RPC-SAMBA3-SPOOLSS RPC-SAMBA3-WKSSVC"
 rpc="$rpc RPC-NETLOGSAMBA3 RPC-SAMBA3SESSIONKEY RPC-SAMBA3-GETUSERNAME"
 rpc="$rpc RPC-SVCCTL RPC-SPOOLSS RPC-SPOOLSS-WIN RPC-NTSVCS"
 rpc="$rpc RPC-LSA-GETUSER RPC-LSA-LOOKUPSIDS RPC-LSA-LOOKUPNAMES"
-rpc="$rpc RPC-SAMR-USERS RPC-SAMR-USERS-PRIVILEGES RPC-SAMR-PASSWORDS 
RPC-SAMR-PASSWORDS-PWDLASTSET RPC-SAMR-LARGE-DC RPC-JOIN"
-rpc="$rpc RPC-SCHANNEL RPC-SCHANNEL2 RPC-BENCH-SCHANNEL1"
+rpc="$rpc RPC-SAMR-USERS RPC-SAMR-USERS-PRIVILEGES RPC-SAMR-PASSWORDS"
+rpc="$rpc RPC-SAMR-PASSWORDS-PWDLASTSET RPC-SAMR-LARGE-DC 
RPC-SAMR-MACHINE-AUTH"
+rpc="$rpc RPC-SCHANNEL RPC-SCHANNEL2 RPC-BENCH-SCHANNEL1 RPC-JOIN"
 
 # NOTE: to enable the UNIX-WHOAMI test, we need to change the default share
 # config to allow guest access. I'm not sure whether this would break other


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-13-g518526b

2009-06-30 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  518526bf6832a310551eeae018c5b703e9db3e64 (commit)
   via  6e614b50e9fa0e46ae200e681c4505ec3f095f45 (commit)
  from  d96b0c5f9e4e53c7dc53532c28e4ec42c70232a4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 518526bf6832a310551eeae018c5b703e9db3e64
Author: Karolin Seeger 
Date:   Tue Jun 30 09:14:23 2009 +0200

WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit 21c9ca179abc18cb3f898e1885adb293c785508c)

commit 6e614b50e9fa0e46ae200e681c4505ec3f095f45
Author: Jim McDonough 
Date:   Fri Jun 19 13:46:07 2009 -0400

Don't require "Modify property" perms to unjoin bug #6481) "net ads leave" 
stopped working when "modify properties" permissions were not granted (meaning 
you had to be allowed to disable the account that you were about to delete).

Libnetapi should not delete machine accounts, as this does not
happen on win32.  The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag
really means "disable" (both in practice and docs).

However, to keep the functionality in "net ads leave", we
will still try to do the delete.  If this fails, we try
to do the disable.

Additionally, it is possible in windows to not disable or
delete the account, but just tell the local machine that it
is no longer in the account.  libnet can now do this as well.

Don't use ads realm name for non-ads case.  #6481

Also check that the connection to ads worked.
(cherry picked from commit 75eacdd7e0faa72775c4a143193edd594bd99ee7)

---

Summary of changes:
 WHATSNEW.txt |5 ++
 source3/lib/netapi/joindomain.c  |1 +
 source3/libnet/libnet_join.c |   61 -
 source3/librpc/gen_ndr/libnet_join.h |5 +-
 source3/librpc/gen_ndr/ndr_libnet_join.c |1 +
 source3/librpc/idl/libnet_join.idl   |1 +
 source3/utils/net_ads.c  |   11 -
 7 files changed, 62 insertions(+), 23 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 011f457..e10c567 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -222,6 +222,11 @@ oDavid Markey 
  * BUG 6514: Improve error message in 'net' when smb.conf is not available.
 
 
+oJim McDonough 
+ * BUG 6481: 'net ads leave' needs to try account deletion, NetUnjoinDomain
+   not.
+
+
 oBo Yang 
  * BUG 6499: Fix building of pam_smbpass.
 
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index 9eedc5d..9066d9b 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -203,6 +203,7 @@ WERROR NetUnjoinDomain_l(struct libnetapi_ctx *mem_ctx,
 
u->in.domain_name = domain;
u->in.unjoin_flags = r->in.unjoin_flags;
+   u->in.delete_machine_account = false;
u->in.modify_config = true;
u->in.debug = true;
 
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 376befe..5309452 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1923,6 +1923,12 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
W_ERROR_HAVE_NO_MEMORY(r->in.domain_sid);
}
 
+   if (!(r->in.unjoin_flags & WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE) &&
+   !r->in.delete_machine_account) {
+   libnet_join_unjoindomain_remove_secrets(mem_ctx, r);
+   return WERR_OK;
+   }
+
if (!r->in.dc_name) {
struct netr_DsRGetDCNameInfo *info;
const char *dc;
@@ -1948,38 +1954,55 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
W_ERROR_HAVE_NO_MEMORY(r->in.dc_name);
}
 
-   status = libnet_join_unjoindomain_rpc(mem_ctx, r);
-   if (!NT_STATUS_IS_OK(status)) {
-   libnet_unjoin_set_error_string(mem_ctx, r,
-   "failed to disable machine account via rpc: %s",
-   get_friendly_nt_error_msg(status));
-   if (NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER)) {
-   return WERR_SETUP_NOT_JOINED;
-   }
-   return ntstatus_to_werror(status);
-   }
-
-   r->out.disabled_machine_account = true;
-
 #ifdef WITH_ADS
-   if (r->in.unjoin_flags & WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE) {
+   /* for net ads leave, try to delete the account.  If it works,
+  no sense in disabling.  If it fails, we can still try to
+  disable it. jmcd */
+
+   if (r->in.delete_machine_account) {
ADS_STATUS ads_status;
-   libnet_unjoin_connect_ads(mem_ctx, r);
-   ads_status = libnet_unjoin_remove_machine_acct(mem_ctx, r);
+   ads_status = lib

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-19-g3329658

2009-07-01 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  3329658ba9f83e03de463bd9d8a751516b64ac8b (commit)
   via  5cc5156fa63febc05d029bd44379ed54330aab24 (commit)
   via  1e1ae462cdce317292446c0cc95beadb9960c86e (commit)
   via  9002ff4b705b7f7f4c55b35934b831891019af54 (commit)
   via  d15595f10ce0ee75a71d2a95d7bfe188d5b830e2 (commit)
   via  c8204bb432bcc3a2a6b0505fbcb333fdfdb59e2b (commit)
  from  518526bf6832a310551eeae018c5b703e9db3e64 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 3329658ba9f83e03de463bd9d8a751516b64ac8b
Author: Karolin Seeger 
Date:   Wed Jul 1 14:09:42 2009 +0200

WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit 95c90fa6973676d6599668bbe816bdbbae5d086c)

commit 5cc5156fa63febc05d029bd44379ed54330aab24
Author: Michael Adam 
Date:   Wed Jul 1 10:51:17 2009 +0200

lib/util: fix order of includes in tevent_ntstatus.c

replace.h needs to be included first.

Michael
(cherry picked from commit 8d982d91f231abbf003473d09433fca2cfa240ac)

Signed-off-by: Michael Adam 

This addresses bug #6521.
(cherry picked from commit 5c5f72b6c5e7473cfe42d2d54fd34c6b31cbf6b1)

commit 1e1ae462cdce317292446c0cc95beadb9960c86e
Author: Günther Deschner 
Date:   Tue Jun 30 13:12:01 2009 +0200

s3-spoolss: Bug #6512. Fix support for enumerating user forms.

Found while testing Xerox WorkCentre 133 PCL driver, now also tested with
torture test.

Guenther
(cherry picked from commit b85b93dcff89e18bd15d4cef8b8c2dc61bc42cbe)
(cherry picked from commit 14be3fd3daee943d0aaad1029ab629e5d379708b)

commit 9002ff4b705b7f7f4c55b35934b831891019af54
Author: Matt Kraai 
Date:   Wed Jul 1 08:18:11 2009 +0200

s3/docs: Fix typo.

This fixes bug #6519.
(cherry picked from commit 4fb1f8e8fe46b3e77c06612ac3fc3d67cf650a11)
(cherry picked from commit 39bfcc5d50892ad0c387f0ca3932e961e77fdc39)

commit d15595f10ce0ee75a71d2a95d7bfe188d5b830e2
Author: Tim Prouty 
Date:   Tue Jun 30 16:59:57 2009 -0700

s3 docs: Add documentation for 'kerberos method' and 'dedicated keytab 
file' parameters
(cherry picked from commit 969106a21fe169282e3b42e51d9e14836d6a41b2)

This fixes bug #6264.
(cherry picked from commit 8135fb06fb18fe42b05f6a938d31905d8ebc903a)

commit c8204bb432bcc3a2a6b0505fbcb333fdfdb59e2b
Author: Michael Adam 
Date:   Mon Jun 29 15:39:46 2009 +0200

lib/util: fix building tevent_ntstatus without config.h

(when called from places with "#define NO_CONFIG_H" set, such as configure)

This fixes bug #6521.

 Michael
(cherry picked from commit e4e855563bcbeb7be54de57d8c1d41d35ddc5e7a)
(cherry picked from commit 6bac56bc6873470958a2369827cbfa3a7c8241d4)

---

Summary of changes:
 WHATSNEW.txt   |7 +++-
 docs-xml/Samba3-HOWTO/TOSHARG-upgrading-to-3.0.xml |2 +-
 .../smbdotconf/security/dedicatedkeytabfile.xml|   15 
 docs-xml/smbdotconf/security/kerberosmethod.xml|   39 
 lib/util/tevent_ntstatus.c |2 +-
 lib/util/tevent_ntstatus.h |1 -
 source3/rpc_server/srv_spoolss_nt.c|   10 +++---
 7 files changed, 67 insertions(+), 9 deletions(-)
 create mode 100644 docs-xml/smbdotconf/security/dedicatedkeytabfile.xml
 create mode 100644 docs-xml/smbdotconf/security/kerberosmethod.xml


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index e10c567..a1ac150 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -208,9 +208,14 @@ Changes since 3.4.0rc1
 
 oMichael Adam 
  * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache().
+ * BUG 6521: Fix building tevent_ntstatus without config.h.
 
 
-oBjörn Jacke 
+oGuenther Deschner 
+ * BUG 6512: Fix support for enumerating user forms.
+
+
+oBjoern Jacke 
  * BUG 6497: Fix calling of 'test' in configure.
 
 
diff --git a/docs-xml/Samba3-HOWTO/TOSHARG-upgrading-to-3.0.xml 
b/docs-xml/Samba3-HOWTO/TOSHARG-upgrading-to-3.0.xml
index aa879ae..f3fb688 100644
--- a/docs-xml/Samba3-HOWTO/TOSHARG-upgrading-to-3.0.xml
+++ b/docs-xml/Samba3-HOWTO/TOSHARG-upgrading-to-3.0.xml
@@ -88,7 +88,7 @@ See The 
pdbedit Command
 
 
 
-New Featuers in Samba-3.x Series
+New Features in Samba-3.x Series
 
 
 
diff --git a/docs-xml/smbdotconf/security/dedicatedkeytabfile.xml 
b/docs-xml/smbdotconf/security/dedicatedkeytabfile.xml
new file mode 100644
index 000..c833e3f
--- /dev/null
+++ b/docs-xml/smbdotconf/security/dedicatedkeytabfile.xml
@@ -0,0 +1,15 @@
+http://www.samba.org/samba/DTD/samba-doc";>
+
+   
+ Specifies the path to the kerberos keytab file when
+  is set to "dedicated
+ keytab".
+   
+

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-21-g207ff88

2009-07-02 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  207ff886784db12b8c779347638a2f6f93199667 (commit)
   via  9521ac831f18a3f702ab277fd65c7b27f6cad979 (commit)
  from  3329658ba9f83e03de463bd9d8a751516b64ac8b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 207ff886784db12b8c779347638a2f6f93199667
Author: Karolin Seeger 
Date:   Thu Jul 2 08:32:05 2009 +0200

WHATSNEW: Update changes since 3.4.0rc1.

Karolin
(cherry picked from commit d08f8595b15144513febe089f2ba0c322dba9ea9)

commit 9521ac831f18a3f702ab277fd65c7b27f6cad979
Author: Jeremy Allison 
Date:   Wed Jul 1 16:58:14 2009 -0700

Fix bug #6520 time stamps - e.g. last mod time is not preserved when "unix 
extensions=yes" are set - and using latest cifs vfs client
Cancel out any pending "sticky" writes or "last write" changes when
doing a UNIX info level set.
Jeremy.
(cherry picked from commit b971860e01a3e616b0dd21990c054c8f8356f513)
(cherry picked from commit 3c8e5d5339ec246bca846aee48ecfba74c7d7c69)

---

Summary of changes:
 WHATSNEW.txt  |4 
 source3/smbd/trans2.c |   34 +++---
 2 files changed, 35 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index a1ac150..0c6bd76 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -206,6 +206,10 @@ Changes since 3.4.0rc1
 --
 
 
+oJeremy Allison 
+ * BUG 6520: Fix time stamps when "unix extensions = yes".
+
+
 oMichael Adam 
  * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache().
  * BUG 6521: Fix building tevent_ntstatus without config.h.
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 40b4701..cae13df 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -4943,7 +4943,7 @@ NTSTATUS smb_set_file_time(connection_struct *conn,
 
if (setting_write_time) {
/*
-* This was a setfileinfo on an open file.
+* This was a Windows setfileinfo on an open file.
 * NT does this a lot. We also need to 
 * set the time here, as it can be read by 
 * FindFirst/FindNext and with the patch for bug #2045
@@ -6044,6 +6044,9 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct 
*conn,
NTSTATUS status = NT_STATUS_OK;
bool delete_on_fail = False;
enum perm_type ptype;
+   files_struct *all_fsps = NULL;
+   bool modify_mtime = true;
+   struct file_id id;
 
ZERO_STRUCT(ft);
 
@@ -6192,13 +6195,38 @@ size = %.0f, uid = %u, gid = %u, raw perms = 0%o\n",
}
 
/* Deal with any time changes. */
+   id = vfs_file_id_from_sbuf(conn, psbuf);
+   for(all_fsps = file_find_di_first(id); all_fsps;
+   all_fsps = file_find_di_next(all_fsps)) {
+   /*
+* We're setting the time explicitly for UNIX.
+* Cancel any pending changes over all handles.
+*/
+   all_fsps->update_write_time_on_close = false;
+   TALLOC_FREE(all_fsps->update_write_time_event);
+   }
 
-   return smb_set_file_time(conn,
+   /*
+* Override the "setting_write_time"
+* parameter here as it almost does what
+* we need. Just remember if we modified
+* mtime and send the notify ourselves.
+*/
+   if (null_timespec(ft.mtime)) {
+   modify_mtime = false;
+   }
+
+   status = smb_set_file_time(conn,
fsp,
fname,
psbuf,
&ft,
-   true);
+   false);
+   if (modify_mtime) {
+   notify_fname(conn, NOTIFY_ACTION_MODIFIED,
+   FILE_NOTIFY_CHANGE_LAST_WRITE, fname);
+   }
+   return status;
 }
 
 /


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-23-ge51f114

2009-07-03 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  e51f114a6efa3d22f21837b55692285b3f83240e (commit)
   via  069b8a1d8ce017e10505a20a3c46f91c9c2957c6 (commit)
  from  207ff886784db12b8c779347638a2f6f93199667 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit e51f114a6efa3d22f21837b55692285b3f83240e
Author: Karolin Seeger 
Date:   Fri Jul 3 09:40:10 2009 +0200

WHATSNEW: Update changes and release date.

Karolin
(cherry picked from commit 7c0f1fd01ba355f234f411426b00285c824691b2)

commit 069b8a1d8ce017e10505a20a3c46f91c9c2957c6
Author: Björn Jacke 
Date:   Wed Jun 10 12:31:07 2009 +0200

s3:pam_smbpass: fix build error on some Linux distros

This addresses bug #6459.
(cherry picked from commit 06a9678aad549d23583d860ecd57b221b25f15b6)
(cherry picked from commit 250e253f755954ff96c14ed29d6107d344a1c427)

---

Summary of changes:
 WHATSNEW.txt  |3 ++-
 source3/pam_smbpass/support.c |2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 0c6bd76..27f161c 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@
=
Release Notes for Samba 3.4.0
-  July 1, 2009
+  July 3, 2009
=
 
 
@@ -221,6 +221,7 @@ oGuenther Deschner 
 
 oBjoern Jacke 
  * BUG 6497: Fix calling of 'test' in configure.
+ * BUG 6459: Fix build of pam_smbpass on some distributions.
 
 
 oVolker Lendecke 
diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c
index dabd57d..fa52c6d 100644
--- a/source3/pam_smbpass/support.c
+++ b/source3/pam_smbpass/support.c
@@ -105,7 +105,7 @@ void _log_err( pam_handle_t *pamh, int err, const char 
*format, ... )
}
 
strncpy(mod_format, tag, strlen(tag)+1);
-   strncat(mod_format, format, strlen(format));
+   strlcat(mod_format, format, strlen(format)+1);
 
va_start(args, format);
vsyslog(err | LOG_AUTH, mod_format, args);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-25-g92bc5b1

2009-07-03 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  92bc5b1f8d3bd5629cd733875eeaabd5561585fb (commit)
   via  91472d08a7d01d223ef4b7a274a07f6aa6579337 (commit)
  from  e51f114a6efa3d22f21837b55692285b3f83240e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 92bc5b1f8d3bd5629cd733875eeaabd5561585fb
Author: Karolin Seeger 
Date:   Fri Jul 3 09:47:32 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit ebe56e6872228fcbd81ead598eb2c5b1738b7f4c)

commit 91472d08a7d01d223ef4b7a274a07f6aa6579337
Author: Stefan Metzmacher 
Date:   Tue Jun 30 16:03:11 2009 +0200

s3:util: let parent_dirname() correctly return toplevel filenames

metze
(cherry picked from commit a14efbadd53ac9678d75e6029f947d63cfa0c4e5)

Signed-off-by: Stefan Metzmacher 

This addresses bug #6526.
(cherry picked from commit 8446843ec43cd61e548dda7032f26020240d872d)

---

Summary of changes:
 WHATSNEW.txt   |4 
 source3/lib/util.c |2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 27f161c..68c8b9e 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -237,6 +237,10 @@ oJim McDonough 
not.
 
 
+oStefan Metzmacher 
+ * BUG 6526: Fix notifies in the share root directory.
+
+
 oBo Yang 
  * BUG 6499: Fix building of pam_smbpass.
 
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 822b0cf..61a73e6 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2336,7 +2336,7 @@ bool parent_dirname(TALLOC_CTX *mem_ctx, const char *dir, 
char **parent,
return False;
}
if (name) {
-   *name = "";
+   *name = dir;
}
return True;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0rc1-28-g51b334e

2009-07-03 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  51b334e2d9739abc748490f6085ed8b8e5e1f4b4 (commit)
   via  7907d399ed0110072ff39ed1f8edccbbad531bfd (commit)
   via  385df2910af4f4369b34fb2ccddbe64af6e2c0a5 (commit)
  from  92bc5b1f8d3bd5629cd733875eeaabd5561585fb (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 51b334e2d9739abc748490f6085ed8b8e5e1f4b4
Author: Volker Lendecke 
Date:   Tue Jun 30 11:42:15 2009 -0700

Fix bug #6431 - local groups from 3.0 setups no longer found.
Search for groups without group suffix, group suffix is only used for new 
entries.
(cherry picked from commit 91a8cb851e1919a337310e2c699d8fcf76a55060)
(cherry picked from commit f0d67b6e119d719c2540eadce5849d3200dea2d0)

commit 7907d399ed0110072ff39ed1f8edccbbad531bfd
Author: Karolin Seeger 
Date:   Fri Jul 3 13:08:06 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit 4735bf0e744e1015eeb5a9ef6e744011183d9e30)

commit 385df2910af4f4369b34fb2ccddbe64af6e2c0a5
Author: Michael Adam 
Date:   Fri Jul 3 11:35:11 2009 +0200

Revert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we 
have it."

This reverts commit 1d3dcd1e420104c23769b691d0b8b7958d5c58a7.

This fixes Bug #6531 (Pid File creation.)

Usually, I would extend is_default_dyn_XYZ() so that it returns true
when dyn_XYZ has not been set yet or when its value is equal to the
compiled in default value XZY. But this would have a change in effect
in popt_common and torture.c: is_default_dyn_CONFIGFILE() is used
there to check whether the config file should be overwritten by the
contents of the environment variable SMB_CONF_PATH. Currently this
is only done when set_dyn_CONFIGFILE() had _not_ previously been called
at all, not even with the same value as the compiled in default.

Michael
(cherry picked from commit 914a14b3a9c9d922d2a5c1aa413945afa11cfd2a)

Signed-off-by: Michael Adam 
(cherry picked from commit 0943d8f6b2389b3763bad24bcfdb61b0508c)

---

Summary of changes:
 WHATSNEW.txt  |2 ++
 source3/lib/pidfile.c |2 +-
 source3/passdb/pdb_ldap.c |   16 
 3 files changed, 11 insertions(+), 9 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 68c8b9e..9d45601 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -213,6 +213,7 @@ oJeremy Allison 
 oMichael Adam 
  * BUG 6509: Use gid (not uid) cache in fetch_gid_from_cache().
  * BUG 6521: Fix building tevent_ntstatus without config.h.
+ * BUG 6531: Fix pid file name.
 
 
 oGuenther Deschner 
@@ -225,6 +226,7 @@ oBjoern Jacke 
 
 
 oVolker Lendecke 
+ * BUG 6431: Local groups from 3.0 setups no longer found.
  * BUG 6498: Add workaround for MS KB932762.
 
 
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c
index 37b36af..2c52d12 100644
--- a/source3/lib/pidfile.c
+++ b/source3/lib/pidfile.c
@@ -94,7 +94,7 @@ void pidfile_create(const char *program_name)
 
/* Add a suffix to the program name if this is a process with a
 * none default configuration file name. */
-   if (is_default_dyn_CONFIGFILE()) {
+   if (strcmp( CONFIGFILE, get_dyn_CONFIGFILE()) == 0) {
name = SMB_STRDUP(program_name);
} else {
short_configfile = strrchr( get_dyn_CONFIGFILE(), '/');
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 5cbe675..0886a10 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -2297,7 +2297,7 @@ static int ldapsam_search_one_group (struct 
ldapsam_privates *ldap_state,
 
attr_list = get_attr_list(NULL, groupmap_attr_list);
rc = smbldap_search(ldap_state->smbldap_state,
-   lp_ldap_group_suffix (), scope,
+   lp_ldap_suffix (), scope,
filter, attr_list, 0, result);
TALLOC_FREE(attr_list);
 
@@ -2617,7 +2617,7 @@ static NTSTATUS ldapsam_enum_group_members(struct 
pdb_methods *methods,
goto done;
}
 
-   rc = smbldap_search(conn, lp_ldap_group_suffix(),
+   rc = smbldap_search(conn, lp_ldap_suffix(),
LDAP_SCOPE_SUBTREE, filter, id_attrs, 0,
&result);
 
@@ -2865,7 +2865,7 @@ static NTSTATUS ldapsam_enum_group_memberships(struct 
pdb_methods *methods,
goto done;
}
 
-   rc = smbldap_search(conn, lp_ldap_group_suffix(),
+   rc = smbldap_search(conn, lp_ldap_suffix(),
LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result);
 
if (rc != LDAP_SUCCESS)
@@ -3323,7 +3323,7 @@ static NTSTATUS ldapsam_setsamgrent(struct pdb_methods 
*my_methods,

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-27-gc25e859

2009-08-13 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  c25e8597214b7167c557a86352ab3f0f8a7d6b94 (commit)
   via  b48a36a70ec8e9719355157557a12bb42bb23120 (commit)
   via  88e9bde9a5d453badf98ab61a28af91836af8809 (commit)
   via  aef2552e744db66b283bc4b1f9c263d93051d190 (commit)
   via  355c23018521db9b8e8847bbaa6e04a8ad2ef0d2 (commit)
   via  3c465fcf5446b1de9e8332ba148d529c97c72489 (commit)
   via  ea155f5ba0b7554f2951c35abb3533ea06b75cc2 (commit)
   via  b50362c0c5973b42744d768dfd85aed1d1e484fd (commit)
   via  5a6a938d95fc090f2eecdd422a6a5721778b2314 (commit)
   via  eece2d10e3a4cbadd219186b1ceef5d79135ea62 (commit)
   via  83eaed1cd5185933ac9dfe976b1b20cd2ed75153 (commit)
   via  a6a93eb0bda5859b42ae2b4f6dd51ed438891f78 (commit)
   via  516be01408db4e8efe75535fbdb7a0facf9973d1 (commit)
   via  c127099846ac89496d3b0e2fc7afb7e5a3b299ec (commit)
   via  dbf16bf251459d33d85c17e6cf1e48d10137bf98 (commit)
   via  8b21aaa70e17cb8e08bc7f834255716feb744ddc (commit)
   via  70634edd550e35c495a76d72b219cc252518a413 (commit)
   via  c934258554221cec41cab95b35fa6e7d64aae2a1 (commit)
   via  d761bb2f13e46168f0a7ba417b399a267ab88db5 (commit)
   via  92642e4157422a496122b7e7ff2afafd6c067432 (commit)
   via  b53950e522cd1f4c1f49a73ba844d28449f90ee9 (commit)
   via  36e373a48d80398ffe414fd9cf37e933fed37a72 (commit)
   via  2ea34c0b06d485e47db7fe7b197521fed3ddb0a1 (commit)
   via  c75219130f855c2709729922d5e069ba4e23012c (commit)
   via  007f89def89794793a447d12fcd213dc222e2bd0 (commit)
   via  c15621069699dd7aabf904f8c290141b2b4396bb (commit)
   via  0b8b25a144b1d93149bfb1c6be59dc8f44541359 (commit)
  from  51b334e2d9739abc748490f6085ed8b8e5e1f4b4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit c25e8597214b7167c557a86352ab3f0f8a7d6b94
Author: Karolin Seeger 
Date:   Thu Aug 13 15:33:37 2009 +0200

VERSION: Raise version number up to 3.4.1.

Karolin
(cherry picked from commit b1dd075c6819a3fb0f00bdb93104c307505ec8ba)

commit b48a36a70ec8e9719355157557a12bb42bb23120
Author: Karolin Seeger 
Date:   Thu Aug 13 15:32:53 2009 +0200

WHATSNEW: Start WHATSNEW for 3.4.1.

Karolin
(cherry picked from commit 63a674b4895d8fd8605cd4c526e91b2b52c3a8ed)

commit 88e9bde9a5d453badf98ab61a28af91836af8809
Author: Karolin Seeger 
Date:   Wed May 13 10:07:56 2009 +0200

s3/packaging: Fix build on RHEL when ccache is not available.

This fixes bug #5832.
Patch was provided by D.L. Meyer .

Thanks for reporting and providing the patch!

Karolin
(cherry picked from commit 42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f)
(cherry picked from commit b2205a7697598729f85cb767621b8c610654053c)
(cherry picked from commit 174356c6618f8704b968ccfb46b04233bf7dfa40)

commit aef2552e744db66b283bc4b1f9c263d93051d190
Author: Jeremy Allison 
Date:   Thu Aug 6 13:11:20 2009 -0700

Correctly implement SMB_INFO_STANDARD setfileinfo.

Fixes bug #6593.

Jeremy.
(cherry picked from commit c704e22806198a620d7e058c8d69c144ce096837)

commit 355c23018521db9b8e8847bbaa6e04a8ad2ef0d2
Author: Tim Prouty 
Date:   Thu Aug 6 11:23:23 2009 -0700

s4 torture: Extend the RAW-RENAME test to more fully test directory renames.

The existing test was only covering files opened underneath the
directory that was being renamed.  It is not uncommon for windows
clients to actually hold a read-only handle to a directory open across
the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED.
Additionally, holding a handle open to a stream on the directory is
also allowed.
(cherry picked from commit 80cedd944c3bcee7fe44787c9730b564b2d86726)

commit 3c465fcf5446b1de9e8332ba148d529c97c72489
Author: Tim Prouty 
Date:   Thu Aug 6 15:53:33 2009 -0700

s3: Fix a bug in renames of directories

Recently code was added to match windows semantics of denying the
rename of a directory if there are open files underneath it.  This
does partly match windows semantics, but it turns out the rename
should be allowed if the open file handle is for the directory being
renamed, or for a stream on the directory being renamed.  This patch
refines the check to better follow these rename semantics.

Addresses bug #6620.
(cherry picked from commit 06ab965b72ba477505d297ab72156136ab981e93)

commit ea155f5ba0b7554f2951c35abb3533ea06b75cc2
Author: Stefan Metzmacher 
Date:   Tue Aug 11 11:17:14 2009 +0200

s3:winbindd: raise the timeout for lsa_Lookup*() calls from 10 to 35 
seconds.

metze
(cherry picked from commit 1e1445bc7672b17a1d689fa0f0732b05b6e04da5)

Fixes bug #6627.
(cherry picked from commit 536946c706b66d432d60c990f28ff0ed5861fa44)

commit b50362c0c5973b42744d768dfd85aed1d1e484fd
Author: Bo 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-30-ge7b3192

2009-08-14 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  e7b3192b804148b4243b99a7d5b90967e3d20e8d (commit)
   via  ce20295f120a921d24f0205a866727b3d2cc2784 (commit)
   via  f2d4ff4c8d60001043786f7a82468c0dc12692c0 (commit)
  from  c25e8597214b7167c557a86352ab3f0f8a7d6b94 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit e7b3192b804148b4243b99a7d5b90967e3d20e8d
Author: Karolin Seeger 
Date:   Fri Aug 14 10:36:42 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit 9b90ee43683c78ed2ddf2f24b8b1afaa943ff348)

commit ce20295f120a921d24f0205a866727b3d2cc2784
Author: Rusty Russell 
Date:   Thu Jul 30 11:52:08 2009 +0930

tdb: Reimplementation of Metze's "lib/tdb: if we know pwrite and pread are 
thread/fork safe tdb_reopen_all() should be a noop".

This version just wraps the reopen code, so we still re-grab the lock and do
the normal sanity checks.

The reason we do this at all is to avoid global fd limits, see:
http://forums.fedoraforum.org/showthread.php?t=210393

Note also that this whole reopen concept is fundamentally racy: if the 
parent
goes away before the child calls tdb_reopen_all, the database can be left
without an active lock and another TDB_CLEAR_IF_FIRST opener will clear it.
A fork_with_tdbs() wrapper could use a pipe to solve this, but it's hardly
elegant (what if there are other independent things which have similar 
needs?).

Signed-off-by: Rusty Russell 
Signed-off-by: Stefan Metzmacher 
(cherry picked from commit 3b2f074bda8734a0b30a3e31117c0217d890809c)

Addresses bug #6601.
(cherry picked from commit 5d1e254188373de838cfe046118267701ee6cd5a)

commit f2d4ff4c8d60001043786f7a82468c0dc12692c0
Author: Rusty Russell 
Date:   Thu Jul 30 11:51:28 2009 +0930

tdb: Revert "lib/tdb: if we know pwrite and pread are thread/fork safe 
tdb_reopen_all() should be a noop"

This reverts commit e17df483fbedb81aededdef5fbb6ae1d034bc2dd.

tdb_reopen_all also restores the active lock, required for 
TDB_CLEAR_IF_FIRST.

Signed-off-by: Stefan Metzmacher 
(cherry picked from commit fa91bc67199f0d45a0e570b43aeafd816a5491bf)
(cherry picked from commit f1cf84c9b9abc48a58355400acb63fd79e1d60c4)

---

Summary of changes:
 WHATSNEW.txt  |4 
 lib/tdb/common/open.c |   20 ++--
 2 files changed, 14 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 4e40c97..fb63551 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -56,6 +56,10 @@ o   Tim Prouty 
 * BUG 6620: Fix a bug in renames of directories.
 
 
+o   Rusty Russell 
+* BUG 6601: Avoid global fd limits.
+
+
 o   Jelmer Vernooij 
 * Fix build with external talloc.
 
diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c
index e58c8ca..49b8e85 100644
--- a/lib/tdb/common/open.c
+++ b/lib/tdb/common/open.c
@@ -425,6 +425,9 @@ int tdb_reopen(struct tdb_context *tdb)
goto fail;
}
 
+/* If we have real pread & pwrite, we can skip reopen. */
+#if !defined(LIBREPLACE_PREAD_NOT_REPLACED) || \
+   !defined(LIBREPLACE_PWRITE_NOT_REPLACED)
if (tdb_munmap(tdb) != 0) {
TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: munmap failed 
(%s)\n", strerror(errno)));
goto fail;
@@ -436,11 +439,6 @@ int tdb_reopen(struct tdb_context *tdb)
TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: open failed 
(%s)\n", strerror(errno)));
goto fail;
}
-   if ((tdb->flags & TDB_CLEAR_IF_FIRST) && 
-   (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0, 
1) == -1)) {
-   TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: failed to obtain 
active lock\n"));
-   goto fail;
-   }
if (fstat(tdb->fd, &st) != 0) {
TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: fstat failed 
(%s)\n", strerror(errno)));
goto fail;
@@ -450,6 +448,13 @@ int tdb_reopen(struct tdb_context *tdb)
goto fail;
}
tdb_mmap(tdb);
+#endif /* fake pread or pwrite */
+
+   if ((tdb->flags & TDB_CLEAR_IF_FIRST) &&
+   (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0, 
1) == -1)) {
+   TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: failed to obtain 
active lock\n"));
+   goto fail;
+   }
 
return 0;
 
@@ -461,10 +466,6 @@ fail:
 /* reopen all tdb's */
 int tdb_reopen_all(int parent_longlived)
 {
-#if defined(LIBREPLACE_PREAD_NOT_REPLACED) && \
-   defined(LIBREPLACE_PWRITE_NOT_REPLACED)
-   return 0;
-#else
struct tdb_context *tdb;
 
for (tdb=tdbs; tdb; tdb = tdb->next) {
@@ -487,7 +488,6 @@ int tdb_reopen_all

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-31-g2cc5abf

2009-08-14 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  2cc5abf53dfe00a4d0fea1edb9d0445fc2f6fa23 (commit)
  from  e7b3192b804148b4243b99a7d5b90967e3d20e8d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 2cc5abf53dfe00a4d0fea1edb9d0445fc2f6fa23
Author: Karolin Seeger 
Date:   Fri Aug 14 16:12:33 2009 +0200

Revert "Fix build with external talloc."

This reverts commit bdec2d3bf3c69e0b0d8ff9aea4d234d0c2936743.
(17ce6f9984b7d84534eecde007ae904e13bbfdfa) in v3-4-test

With this patch, talloc.h is not found any longer.
(cherry picked from commit b843551389e4f9dbbe984a4a9c376ebc11525267)

---

Summary of changes:
 source3/configure.in |   29 ++---
 source3/samba4.m4|4 
 2 files changed, 2 insertions(+), 31 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index f6ee056..dd60c73 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -77,6 +77,7 @@ done
 AC_SUBST(LIBTDB_OBJ0)
 SAMBA_CPPFLAGS="-Iinclude -I${srcdir-.}/include  -I. -I${srcdir-.}"
 SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/../lib/replace"
+SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TALLOC_CFLAGS}"
 SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TEVENT_CFLAGS}"
 SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TDB_CFLAGS}"
 SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/libaddns"
@@ -4747,33 +4748,7 @@ LINK_LIBSMBCLIENT=STATIC
 #  TODO: for talloc and tdb (at least), these should
 #  be extracted from their respective source directories
 #
-AC_ARG_ENABLE(external_libtalloc, 
[AS_HELP_STRING([--enable-external-libtalloc], [Enable external talloc 
[default=auto]])], 
-[ enable_external_libtalloc=$enableval ], [ enable_external_libtalloc=auto ])
-
-if test "x$enable_external_libtalloc" != xno
-then
-   PKG_CHECK_MODULES(LIBTALLOC, talloc >= 1.3.0, 
-   [ enable_external_libtalloc=yes ],
-   [ if test x$enable_external_libtalloc = xyes; then
-   AC_MSG_ERROR([Unable to find libtalloc])
- else 
-   enable_external_libtalloc=no
- fi
-   ])
-fi
-
-if test "x$enable_external_libtalloc" = xno
-then
-   m4_include(../lib/talloc/libtalloc.m4)
-   SMB_LIBRARY(talloc, 1)
-   LIBTALLOC_OBJ0=""
-   for obj in ${TALLOC_OBJ}; do
-   LIBTALLOC_OBJ0="${LIBTALLOC_OBJ0} ${tallocdir}/${obj}"
-   done
-   SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TALLOC_CFLAGS}"
-   AC_SUBST(LIBTALLOC_OBJ0)
-fi
-
+SMB_LIBRARY(talloc, 1)
 SMB_LIBRARY(tdb, 1)
 SMB_LIBRARY(netapi, 0)
 SMB_LIBRARY(smbclient, 0)
diff --git a/source3/samba4.m4 b/source3/samba4.m4
index 0ea40db..b5c7c74 100644
--- a/source3/samba4.m4
+++ b/source3/samba4.m4
@@ -75,10 +75,6 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBTALLOC, talloc >= 
$TALLOC_MIN_VERSION,
SMB_INCLUDE_MK(../lib/talloc/config.mk)
]
 )
-# Tallocdir isn't always set by the Samba3 c
-tallocdir=../lib/talloc
-AC_SUBST(tallocdir)
-CFLAGS="$CFLAGS -I../lib/talloc"
 
 SMB_EXT_LIB_FROM_PKGCONFIG(LIBTDB, tdb >= $TDB_MIN_VERSION,
[],


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-35-ge1d73ad

2009-08-17 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  e1d73ad5256466c078cee699a71244fb4de7f8a4 (commit)
   via  0f05b1585485ec6dee142bd811e6cc85923bed23 (commit)
   via  ce3636bb502da954dfd79afdeb040b1fbfef6faf (commit)
   via  3ac99dded70132326ec3f310ad93993ffc68952a (commit)
  from  2cc5abf53dfe00a4d0fea1edb9d0445fc2f6fa23 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit e1d73ad5256466c078cee699a71244fb4de7f8a4
Author: Karolin Seeger 
Date:   Mon Aug 17 12:50:41 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit 7505f03eee949bb861f6138be8b5ef86be9c7b7f)

commit 0f05b1585485ec6dee142bd811e6cc85923bed23
Author: Günther Deschner 
Date:   Thu Aug 6 17:17:26 2009 +0200

s3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5.

Patch from TAKEDA Yasuma .

Guenther
(cherry picked from commit 9fa042bb9f71057fc869e37d4cc180e8a772b1bb)

commit ce3636bb502da954dfd79afdeb040b1fbfef6faf
Author: Matt Kraai 
Date:   Wed Aug 12 08:49:24 2009 +0200

libreplace: undef AI_ADDRCONFIG on QNX 6.3.0 (fix bug #6630)

Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG.  On QNX
6.3.0, this macro is defined but, if it's used, getaddrinfo will fail.  This
prevents smbd from opening any sockets.

If I undefine AI_ADDRCONFIG on such systems and allow
lib/replace/system/network.h to define it to be 0, this works around the 
issue.

Signed-off-by: Stefan Metzmacher 
(cherry picked from commit 91d13b68be55728a85b3832e2da9267dbf4f2464)

Fixes bug #6630.
(cherry picked from commit 3be12b15f1758b54456d49368dbca7f25a99f4cc)

commit 3ac99dded70132326ec3f310ad93993ffc68952a
Author: Karolin Seeger 
Date:   Fri Aug 14 16:18:36 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit e873995e31e2f04e708194287a64c66a32cc4948)

---

Summary of changes:
 WHATSNEW.txt |8 ++--
 examples/LDAP/samba-schema-netscapeds5.x |7 ++-
 lib/replace/system/network.h |   14 ++
 3 files changed, 26 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index fb63551..2d89514 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -41,6 +41,10 @@ o   Günther Deschner 
 * BUG 6607: Fix crash bug in spoolss_addprinterex_level_2.
 
 
+o   Matt Kraai 
+* BUG 6630: Fix opening of sockets on QNX.
+
+
 o   Volker Lendecke 
 * BUG 6611: Fix a valgrind error in chain_reply.
 * Fix linking on Solaris.
@@ -60,8 +64,8 @@ o   Rusty Russell 
 * BUG 6601: Avoid global fd limits.
 
 
-o   Jelmer Vernooij 
-* Fix build with external talloc.
+o   TAKEDA Yasuma 
+* BUG 5879: Update LDAP schema for Netscape DS 5.
 
 
 o   Bo Yang 
diff --git a/examples/LDAP/samba-schema-netscapeds5.x 
b/examples/LDAP/samba-schema-netscapeds5.x
index efc528b..661521c 100644
--- a/examples/LDAP/samba-schema-netscapeds5.x
+++ b/examples/LDAP/samba-schema-netscapeds5.x
@@ -4,9 +4,11 @@
 ## Thomas Mueller 12.04.2003, thomas.muel...@christ-wasser.de
 ## Richard Renard rren...@idealx.com 2005-01-28
 ## - added support for MungedDial, BadPasswordCount, BadPasswordTime, 
PasswordHistory, LogonHours
+## TAKEDA Yasuma yas...@osstech.co.jp 2008-11-06
+## - added sambaTrustedDomainPassword objectClasses
 ## - in Sun One 5.2 copy it as 99samba-schema-netscapeds5.ldif
 ##
-## Samba 3.0 schema file for Netscape DS 5.x
+## Samba 3.2 schema file for Netscape DS 5.x
 ##
 ## 
INSTALL-DIRECTORY/slapd-your_name/config/schema/samba-schema-netscapeds5.ldif
 
@@ -33,6 +35,7 @@ objectClasses: ( 1.3.6.1.4.1.7165.2.2.5 NAME 'sambaDomain' 
SUP top STRUCTURAL DE
 objectClasses: ( 1.3.6.1.4.1.7165.1.2.2.7 NAME 'sambaUnixIdPool' SUP top 
AUXILIARY DESC 'Pool for allocating UNIX uids/gids' MUST ( uidNumber $ 
gidNumber ) X-ORIGIN 'user defined' )
 objectClasses: ( 1.3.6.1.4.1.7165.1.2.2.8 NAME 'sambaIdmapEntry' SUP top 
AUXILIARY DESC 'Mapping from a SID to an ID' MUST ( sambaSID ) MAY ( uidNumber 
$ gidNumber )  X-ORIGIN 'user defined' )
 objectClasses: ( 1.3.6.1.4.1.7165.1.2.2.9 NAME 'sambaSidEntry' SUP top 
STRUCTURAL DESC 'Structural Class for a SID' MUST ( sambaSID )  X-ORIGIN 'user 
defined' )
+objectClasses: ( 1.3.6.1.4.1.7165.2.2.15 NAME 'sambaTrustedDomainPassword' SUP 
top STRUCTURAL DESC 'Samba Trusted Domain Password' MUST ( sambaDomainName $ 
sambaSID $ sambaClearTextPassword $ sambaPwdLastSet ) MAY  ( 
sambaPreviousClearTextPassword ) X-ORIGIN 'user defined')
 attributeTypes: ( 1.3.6.1.4.1.7165.2.1.24 NAME 'sambaLMPassword' DESC 
'LanManager Password' EQUALITY caseIgnoreIA5Match SYNTAX 
1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE X-ORIGIN 'user 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-37-g25e378d

2009-08-17 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  25e378df1869a7ac514124bb699344a1426556b3 (commit)
   via  83236f7761f7b526f5e234382b39ead813c8b819 (commit)
  from  e1d73ad5256466c078cee699a71244fb4de7f8a4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 25e378df1869a7ac514124bb699344a1426556b3
Author: Karolin Seeger 
Date:   Mon Aug 17 20:27:00 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit 97e1703ee5f647755129c6e859ea77a38200b3af)

commit 83236f7761f7b526f5e234382b39ead813c8b819
Author: Stefan Metzmacher 
Date:   Fri Aug 14 16:41:49 2009 +0200

s3:configure: fix the build with external talloc

Fixes bug #6532.

metze
(cherry picked from commit 7def4ab2da002e9ecc1feaed2916035c214add9f)

---

Summary of changes:
 WHATSNEW.txt |1 +
 source3/configure.in |   21 +
 2 files changed, 14 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 2d89514..050d342 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -52,6 +52,7 @@ o   Volker Lendecke 
 
 o   Stefan Metzmacher 
 * BUG 6222: Default to DRSUAPI replication for net rpc vampire keytab.
+* BUG 6532: Fix the build with external talloc.
 * BUG 6538: Cancel all locks that are made before the first failure.
 * BUG 6627: Raise the timeout for lsa_Lookup*() calls from 10 to 35 
seconds.
 
diff --git a/source3/configure.in b/source3/configure.in
index dd60c73..892b836 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -39,17 +39,11 @@ then
])
 fi
 
-if test "x$enable_external_libtalloc" = xno
+if test "x$enable_external_libtalloc" != xyes
 then
m4_include(../lib/talloc/libtalloc.m4)
 fi
 
-LIBTALLOC_OBJ0=""
-for obj in ${TALLOC_OBJ}; do
-   LIBTALLOC_OBJ0="${LIBTALLOC_OBJ0} ${tallocdir}/${obj}"
-done
-AC_SUBST(LIBTALLOC_OBJ0)
-
 m4_include(../lib/tevent/libtevent.m4)
 
 LIBTEVENT_OBJ0=""
@@ -4748,7 +4742,18 @@ LINK_LIBSMBCLIENT=STATIC
 #  TODO: for talloc and tdb (at least), these should
 #  be extracted from their respective source directories
 #
-SMB_LIBRARY(talloc, 1)
+if test "x$enable_external_libtalloc" != xyes
+then
+   SMB_LIBRARY(talloc, 1)
+   LIBTALLOC_OBJ0=""
+   for obj in ${TALLOC_OBJ}; do
+   LIBTALLOC_OBJ0="${LIBTALLOC_OBJ0} ${tallocdir}/${obj}"
+   done
+   AC_SUBST(LIBTALLOC_OBJ0)
+else
+   LIBTALLOC_LIBS="${TALLOC_LIBS}"
+fi
+
 SMB_LIBRARY(tdb, 1)
 SMB_LIBRARY(netapi, 0)
 SMB_LIBRARY(smbclient, 0)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-42-gc7449bd

2009-08-24 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  c7449bd0ae1f60d18816e8a34be7de4fe4394fd5 (commit)
   via  355aa0b9b7fdda18ae31085356918383b540c807 (commit)
   via  0300ff8bac18a6e6386ec29e0c5392e0f58e69b0 (commit)
   via  73103525b0c1e8ba830212f224ffd75b78869534 (commit)
   via  25ab2a06392402ba72740205902ec30702110446 (commit)
  from  25e378df1869a7ac514124bb699344a1426556b3 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit c7449bd0ae1f60d18816e8a34be7de4fe4394fd5
Author: Karolin Seeger 
Date:   Mon Aug 24 11:28:06 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit 0911f7137bf37a9a14e6ebff9a0990482a11375b)

commit 355aa0b9b7fdda18ae31085356918383b540c807
Author: Michael Adam 
Date:   Fri Aug 21 13:59:16 2009 +0200

s3: fix bug #6650, authentication at member servers when winbindd is not 
running

Authentication of domain users on the member server fails when winbindd
is not running. This is because the is_trusted_domain() check  behaves
differently when winbindd is running and when it isn't:
Since wb_is_trusted_domain() calls wbcDomainInfo(), and this will also
give a result for our own domain, this succeeds for the member
server's own domain when winbindd is running. When winbindd is not
running, is_trusted_domain() checks (and possibly updates) the trustdom
cache, and this does the lsa_EnumTrustDom() rpc call to the DC which
does not return its own domain.

In case of winbindd not running, before 3.4, the domain part was _silently_
mapped to the workgroup in auth_util.c:make_user_info_map(),
which effectively did nothing in the member case.

But then the parameter "map untrusted to domain" was introduced
and the mapping was made to the workstation name instead of
the workgroup name by default unless "map untrusted to domain = yes".
(Commits
 d8c54fddda2dba3cbc5fc13e93431b152813892e,
 5cd4b7b7c03df6e896186d985b6858a06aa40b3f, and
 fbca26923915a70031f561b198cfe2cc0d9c3aa6)
This was ok as long as winbindd was running, but with winbindd not running,
these changes actually uncovered the above logic bug in the check.

So the correct check is to treat the workgroup as trusted / or known
in the member case. This is most easily achieved by not comparing the
domain name against get_global_sam_name() which is the host name unless
for a DC but against my_sam_name() which is the workgroup for a DC and for
a member, too. (These names are not very intuitive...)

I admit that this is a very long commit message for a one-liner, but this 
has
needed some tracking down, and I think the change deserves some 
justification.

Michael
(cherry picked from commit 6afb02cb53f47e0fd7e7df3935b067e7e1f8a9de)
(cherry picked from commit d4c82fcb106ba872a9987ae40e0fe2d58b7ef1bb)

commit 0300ff8bac18a6e6386ec29e0c5392e0f58e69b0
Author: Jeremy Allison 
Date:   Fri Aug 21 12:44:54 2009 +0200

Fix Red Hat bugzilla bug : 
https://bugzilla.redhat.com/show_bug.cgi?id=516165
nautilus fails to copy files from an SMB share. This is a show-stopper
for 3.4.1. Although gnome-vfs is doing *incredibly* stupid things by asking
for a read size of 65535 - this translates on the wire to a 65534 byte read
followed by a 1 byte read. Please send this back to the gnome developers 
that
they will ge horrid on the wire performance for this.
Jeremy.

Fixes bug #6649.

Fixed in master with commit 33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d.
(cherry picked from commit ef891070288cd13aff7c730de7c1baf54dddb90f)

commit 73103525b0c1e8ba830212f224ffd75b78869534
Author: Jeremy Allison 
Date:   Thu Aug 20 11:12:22 2009 -0700

Fix bug 6638 - ADS Domain Member: Computer Mgr can not set share ACLs Add 
good error message for share modification denial. Jeremy.
(cherry picked from commit ed122f5e9d1e1287eb13efc99e4129492d34abbc)

commit 25ab2a06392402ba72740205902ec30702110446
Author: Volker Lendecke 
Date:   Wed Jul 29 04:30:52 2009 -0400

Fix unqualified "net join"

Kai, please check!

Fixes bug #6585.

Thanks,

Volker
(cherry picked from commit d8543da9dad3286cd330b98374405edb9f976e77)
(cherry picked from commit bf7d1758a77a462d9b30cc2549a960736884ee32)

---

Summary of changes:
 WHATSNEW.txt   |   12 +---
 source3/auth/auth_util.c   |2 +-
 source3/libsmb/clireadwrite.c  |2 +-
 source3/rpc_server/srv_srvsvc_nt.c |   22 +++---
 source3/utils/net_join.c   |5 +
 5 files changed, 31 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 050d342..923c

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-46-g1dcf7aa

2009-09-01 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  1dcf7aab1d69a6283b8e5839ca6f659613e2a458 (commit)
   via  5404f974f012590b13249e015fa40f33a896d774 (commit)
   via  6fdbdfb3668df2ec9d2f4a8108c91bc89b725a07 (commit)
   via  fe95c192ff07f930c7dddff8dbf1efb6bdbd96fe (commit)
  from  c7449bd0ae1f60d18816e8a34be7de4fe4394fd5 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 1dcf7aab1d69a6283b8e5839ca6f659613e2a458
Author: Karolin Seeger 
Date:   Tue Sep 1 09:49:04 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit c424fce877806bc6aef57941f6e4268300af21bf)

commit 5404f974f012590b13249e015fa40f33a896d774
Author: Olaf Flebbe 
Date:   Mon Aug 17 17:31:01 2009 +0200

make smbcontrol smbd ping work proper checking for arguments handle short 
pid_t correctly

Fixes bug #6655.

(cherry picked from commit 5359e397ff190c35414f6961be61a5110e237dd5)
(cherry picked from commit 86c1dbb473323ef9480cb57584be9e02363e80af)

commit 6fdbdfb3668df2ec9d2f4a8108c91bc89b725a07
Author: Volker Lendecke 
Date:   Tue Jul 14 23:12:59 2009 +0200

Fix bug 5886

Ok, that's a very long-standing one. I finally got around to install a 
recent
OpenLDAP and test the different variants of setting a NULL password etc.

Thanks all for your patience!

Volker
(cherry picked from commit 6fb3222504a0d2b42cd9292f9e11b2ff246d5c19)

commit fe95c192ff07f930c7dddff8dbf1efb6bdbd96fe
Author: Stefan Metzmacher 
Date:   Thu Aug 27 13:16:15 2009 +0200

s3:netlogon: replace cred_hash3 by des_crypt112_16

This makes sure we don't truncate the session key to 8 bytes
Fixes bug #6664

metze
(cherry picked from commit 2467671ba55c5ac834a8aa7ae8ad736958baab1d)

---

Summary of changes:
 WHATSNEW.txt   |8 +++-
 source3/lib/util.c |   22 --
 source3/passdb/pdb_ldap.c  |   34 ++
 source3/rpc_client/cli_netlogon.c  |6 +++---
 source3/rpc_server/srv_netlog_nt.c |3 +--
 source3/utils/smbcontrol.c |   13 +
 6 files changed, 58 insertions(+), 28 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 923c95d..6c131a8 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@
=
Release Notes for Samba 3.4.1
- August , 2009
+September 3, 2009
=
 
 
@@ -46,11 +46,16 @@ o   Günther Deschner 
 * BUG 6607: Fix crash bug in spoolss_addprinterex_level_2.
 
 
+o   Olaf Flebbe 
+* BUG 6655: Fix 'smbcontrol smbd ping'.
+
+
 o   Matt Kraai 
 * BUG 6630: Fix opening of sockets on QNX.
 
 
 o   Volker Lendecke 
+* BUG 5886: Fix password change propagation with ldapsam.
 * BUG 6585: Fix unqualified "net join".
 * BUG 6611: Fix a valgrind error in chain_reply.
 * Fix linking on Solaris.
@@ -61,6 +66,7 @@ o   Stefan Metzmacher 
 * BUG 6532: Fix the build with external talloc.
 * BUG 6538: Cancel all locks that are made before the first failure.
 * BUG 6627: Raise the timeout for lsa_Lookup*() calls from 10 to 35 
seconds.
+* BUG 6664: Fix truncation of the session key.
 
 
 o   Tim Prouty 
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 61a73e6..3d7336f 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2743,14 +2743,15 @@ bool procid_is_me(const struct server_id *pid)
 
 struct server_id interpret_pid(const char *pid_string)
 {
-#ifdef CLUSTER_SUPPORT
-   unsigned int vnn, pid;
struct server_id result;
-   if (sscanf(pid_string, "%u:%u", &vnn, &pid) == 2) {
+   int pid;
+#ifdef CLUSTER_SUPPORT
+   unsigned int vnn;
+   if (sscanf(pid_string, "%u:%d", &vnn, &pid) == 2) {
result.vnn = vnn;
result.pid = pid;
}
-   else if (sscanf(pid_string, "%u", &pid) == 1) {
+   else if (sscanf(pid_string, "%d", &pid) == 1) {
result.vnn = get_my_vnn();
result.pid = pid;
}
@@ -2758,10 +2759,19 @@ struct server_id interpret_pid(const char *pid_string)
result.vnn = NONCLUSTER_VNN;
result.pid = -1;
}
-   return result;
 #else
-   return pid_to_procid(atoi(pid_string));
+   if (sscanf(pid_string, "%d", &pid) != 1) {
+   result.pid = -1;
+   } else {
+   result.pid = pid;
+   }
 #endif
+   /* Assigning to result.pid may have overflowed
+  Map negative pid to -1: i.e. error */
+   if (result.pid < 0) {
+   result.pid = -1;
+   }
+   return result;
 }
 
 char *proci

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-47-g83f80b7

2009-09-01 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  83f80b73bffc790613b6fdfaf09b29cb0bfbdc33 (commit)
  from  1dcf7aab1d69a6283b8e5839ca6f659613e2a458 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 83f80b73bffc790613b6fdfaf09b29cb0bfbdc33
Author: Karolin Seeger 
Date:   Tue Sep 1 12:55:23 2009 +0200

s3-docs: Update build howto.

This addresses bug #6661.

Karolin
(cherry picked from commit 1bc05ca3bb6499d25d54ba49f2abbc54edad37ed)
(cherry picked from commit ea0f119e7b671f3566b8eecdd0013e9c57079566)

---

Summary of changes:
 docs-xml/Samba3-HOWTO/TOSHARG-Compiling.xml |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/Samba3-HOWTO/TOSHARG-Compiling.xml 
b/docs-xml/Samba3-HOWTO/TOSHARG-Compiling.xml
index 1f1f51c..e4baca4 100644
--- a/docs-xml/Samba3-HOWTO/TOSHARG-Compiling.xml
+++ b/docs-xml/Samba3-HOWTO/TOSHARG-Compiling.xml
@@ -223,7 +223,9 @@ gpg: BAD signature from Samba Distribution 
Verification Key
it is necessary to build it before you can continue. Building of
the configure script requires the correct version of the autoconf
tool kit. Where the necessary version of autoconf is present,
-   the configure script can be generated by executing the following:
+   the configure script can be generated by executing the following
+   (please note that in Samba 3.4.x, the directory is called source3 
instead
+   of source):
 
 &rootprompt; cd samba-3.0.20/source
 &rootprompt; ./autogen.sh


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-53-g22c2bb5

2009-09-03 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  22c2bb5f8db06656e3fc74d3f1ba226c1e5c824c (commit)
   via  d834a29ac59f3634392b0ab1e39a2b5ca0b527d2 (commit)
   via  a8e6233b080c80b4fdcc57f0bfd0e1453253fcbb (commit)
   via  210cda9cdb7248addd827a8a1f7126cf7e8637ab (commit)
   via  9a899b5542dc38b6fc501f6264abcadd2ecbea8a (commit)
   via  ec864a5b008ba68ec3bffe489fd9776fc133c225 (commit)
  from  83f80b73bffc790613b6fdfaf09b29cb0bfbdc33 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 22c2bb5f8db06656e3fc74d3f1ba226c1e5c824c
Author: Karolin Seeger 
Date:   Thu Sep 3 09:38:00 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit a0f2336ed6f5adb29d636eb880b0f6cd6cfc70f3)

commit d834a29ac59f3634392b0ab1e39a2b5ca0b527d2
Author: Günther Deschner 
Date:   Wed Jun 24 00:33:44 2009 +0200

s3-pdb_ldap: Fix bug #4296: Clean up group membership while deleting a user.

Note that this only is tried with editposix=yes.

Guenther
(cherry picked from commit 272e389ff63d929fc6b06305e00fa042d71dbec0)

commit a8e6233b080c80b4fdcc57f0bfd0e1453253fcbb
Author: Volker Lendecke 
Date:   Thu Apr 23 14:23:23 2009 +0200

Fix an uninitialized variable

Fix bug #6684.

(cherry picked from commit b8cd1cff2dfad726cf6dab368dfcc31a29952889)
(cherry picked from commit 050ded0624a49f2ffb53dcd88a93fd1d8c17595e)

commit 210cda9cdb7248addd827a8a1f7126cf7e8637ab
Author: Volker Lendecke 
Date:   Sun Aug 30 11:39:41 2009 +0200

s3:libwbclient: Fix bug 6349, initialize domain info struct
(cherry picked from commit e1a50994800ce311925214254c0a471a9f32c1f7)

commit 9a899b5542dc38b6fc501f6264abcadd2ecbea8a
Author: Simo Sorce 
Date:   Sat Aug 29 19:31:02 2009 -0400

s3-smbpasswd: Fix Bug #6584: allow DOM\user when changing passwords 
remotely.

Signed-off-by: Günther Deschner 
(cherry picked from commit 8cb103372be4eb3232e5e13b67f63562e5506c7e)

commit ec864a5b008ba68ec3bffe489fd9776fc133c225
Author: Günther Deschner 
Date:   Tue Sep 1 11:58:05 2009 +0200

wbclient: Fix Bug #6680: always activate handling of large (> 256 byte) 
ntlmv2 blobs in wbcAuthenticateUserEx().

Guenther
(cherry picked from commit dadc57b140b4379f9f2f6fafe40332061df4d5a5)

---

Summary of changes:
 WHATSNEW.txt|4 +++
 nsswitch/libwbclient/wbc_pam.c  |   19 ---
 nsswitch/libwbclient/wbc_util.c |2 +
 source3/libnet/libnet_dssync.c  |2 +
 source3/libsmb/passchange.c |   19 +--
 source3/passdb/pdb_ldap.c   |   46 +++
 6 files changed, 85 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 6c131a8..9dd59f5 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -44,6 +44,7 @@ o   Yannick Bergeron 
 o   Günther Deschner 
 * BUG 6568: Fix _spoolss_GetPrintProcessorDirectory() implementation.
 * BUG 6607: Fix crash bug in spoolss_addprinterex_level_2.
+* BUG 6680: Fix authentication failure from Windows 7 when domain joined.
 
 
 o   Olaf Flebbe 
@@ -372,6 +373,7 @@ o   Jeremy Allison 
 
 
 o   Günther Deschner 
+* BUG 4296: Clean up group membership while deleting a user.
 * BUG 5456: Fix "net ads testjoin".
 * BUG 6253: Use correct value for password expiry calculation in
   pam_winbind.
@@ -383,6 +385,7 @@ o   Günther Deschner 
 
 o   Volker Lendecke 
 * BUG 4699: Remove pidfile on clean shutdown.
+* BUG 6349: Initialize domain info struct.
 * BUG 6449: 'net rap user add' crashes without -C option.
 
 
@@ -398,6 +401,7 @@ o   Andreas Schneider 
 o   Simo Sorce 
 * BUG 6081: Make it possible to change machine account sids.
 * BUG 6333: Consolidate create/delete account paths in pdbedit.
+* BUG 6584: Allow DOM\user when changing passwords remotely.
 
 
 o   Jelmer Vernooij 
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index 61ce2a1..422665a 100644
--- a/nsswitch/libwbclient/wbc_pam.c
+++ b/nsswitch/libwbclient/wbc_pam.c
@@ -423,15 +423,24 @@ wbcErr wbcAuthenticateUserEx(const struct 
wbcAuthUserParams *params,
request.data.auth_crap.lm_resp_len =
MIN(params->password.response.lm_length,
sizeof(request.data.auth_crap.lm_resp));
-   request.data.auth_crap.nt_resp_len =
-   MIN(params->password.response.nt_length,
-   sizeof(request.data.auth_crap.nt_resp));
if (params->password.response.lm_data) {
memcpy(request.data.auth_crap.lm_resp,
   params->password.response.lm_data,
   

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-54-g8fe564b

2009-09-03 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  8fe564b3fdaf1fcb350cf0f457bbaf058fb51c02 (commit)
  from  22c2bb5f8db06656e3fc74d3f1ba226c1e5c824c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 8fe564b3fdaf1fcb350cf0f457bbaf058fb51c02
Author: Karolin Seeger 
Date:   Thu Sep 3 10:35:39 2009 +0200

WHATSNEW: Update release date.

Karolin
(cherry picked from commit a527dd4a2be8879700b7adc138c2f041b49b41be)

---

Summary of changes:
 WHATSNEW.txt |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 9dd59f5..165fe11 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,6 +1,6 @@
=
Release Notes for Samba 3.4.1
-September 3, 2009
+September 9, 2009
=
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-55-g857d92c

2009-09-03 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  857d92c8d5812e348b7375d3acac1983c80688f4 (commit)
  from  8fe564b3fdaf1fcb350cf0f457bbaf058fb51c02 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 857d92c8d5812e348b7375d3acac1983c80688f4
Author: Stefan Metzmacher 
Date:   Thu Sep 3 14:03:02 2009 +0200

s4: disable source4 directory for the 3.4.x releases

metze
(cherry picked from commit 6ced4bcadf05578bba83cb061310ad4dcf1e9c94)
(cherry picked from commit f97a1a0d3b708872534c85dbc5ae53215577057c)

---

Summary of changes:
 source4/autogen.sh   |   86 +++---
 source4/configure.ac |  199 --
 2 files changed, 10 insertions(+), 275 deletions(-)
 delete mode 100644 source4/configure.ac


Changeset truncated at 500 lines:

diff --git a/source4/autogen.sh b/source4/autogen.sh
index 8b97023..e478276 100755
--- a/source4/autogen.sh
+++ b/source4/autogen.sh
@@ -1,79 +1,13 @@
 #!/bin/sh
 
-# Run this script to build samba from git.
+echo ""
+echo ""
+echo ""
+echo "The build in source4 is not supported in the 3.4.x releases!"
+echo "Please use the source4 of the master branch"
+echo "or the latest samba4 alpha release"
+echo ""
+echo ""
+echo ""
+exit 1
 
-while true; do
-case $1 in
-   --version-file)
-   VERSION_FILE=$2
-   shift 2
-   ;;
-   *)
-   break
-   ;;
-esac
-done
-
-## insert all possible names (only works with
-## autoconf 2.x)
-TESTAUTOHEADER="autoheader autoheader-2.53 autoheader2.50 autoheader259 
autoheader253"
-TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
-
-AUTOHEADERFOUND="0"
-AUTOCONFFOUND="0"
-
-
-##
-## Look for autoheader
-##
-for i in $TESTAUTOHEADER; do
-   if which $i > /dev/null 2>&1; then
-   if test `$i --version | head -n 1 | cut -d.  -f 2 | sed 
"s/[^0-9]//g"` -ge 53; then
-   AUTOHEADER=$i
-   AUTOHEADERFOUND="1"
-   break
-   fi
-   fi
-done
-
-##
-## Look for autoconf
-##
-
-for i in $TESTAUTOCONF; do
-   if which $i > /dev/null 2>&1; then
-   if test `$i --version | head -n 1 | cut -d.  -f 2 | sed 
"s/[^0-9]//g"` -ge 53; then
-   AUTOCONF=$i
-   AUTOCONFFOUND="1"
-   break
-   fi
-   fi
-done
-
-
-##
-## do we have it?
-##
-if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
-   echo "$0: need autoconf 2.53 or later to build samba from git" >&2
-   exit 1
-fi
-
-echo "$0: running script/mkversion.sh"
-./script/mkversion.sh $VERSION_FILE || exit 1
-
-rm -rf autom4te*.cache
-rm -f configure include/config_tmp.h*
-
-IPATHS="-I. -I../lib/replace"
-
-echo "$0: running $AUTOHEADER $IPATHS"
-$AUTOHEADER $IPATHS || exit 1
-
-echo "$0: running $AUTOCONF $IPATHS"
-$AUTOCONF $IPATHS || exit 1
-
-rm -rf autom4te*.cache
-
-echo "Now run ./configure and then make."
-exit 0
diff --git a/source4/configure.ac b/source4/configure.ac
deleted file mode 100644
index 065a330..000
--- a/source4/configure.ac
+++ /dev/null
@@ -1,199 +0,0 @@
-dnl -*- mode: m4-mode -*-
-dnl Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.54)
-
-AC_INIT([samba],[4],[samba-techni...@samba.org])
-
-AC_CONFIG_SRCDIR([include/includes.h])
-AC_CONFIG_HEADER(include/config_tmp.h)
-AC_DEFINE(CONFIG_H_IS_FROM_SAMBA,1,[Marker for samba's config.h])
-
-# Configuration rules.
-m4_include(build/m4/env.m4)
-m4_include(../lib/replace/samba.m4)
-m4_include(lib/smbreadline/readline.m4)
-m4_include(heimdal_build/config.m4)
-m4_include(../lib/util/fault.m4)
-m4_include(../lib/util/signal.m4)
-m4_include(../lib/util/util.m4)
-m4_include(../lib/util/fsusage.m4)
-m4_include(../lib/util/xattr.m4)
-m4_include(../lib/util/capability.m4)
-m4_include(../lib/util/time.m4)
-m4_include(../lib/popt/samba.m4)
-m4_include(../lib/util/charset/config.m4)
-m4_include(lib/socket/config.m4)
-m4_include(../lib/zlib/zlib.m4)
-AC_ZLIB([
-SMB_EXT_LIB(ZLIB, [${ZLIB_LIBS}])
-],[
-SMB_INCLUDE_MK(lib/zlib.mk)
-])
-m4_include(../nsswitch/nsstest.m4)
-m4_include(../pidl/config.m4)
-
-AC_CONFIG_FILES(lib/registry/registry.pc)
-AC_CONFIG_FILES(librpc/dcerpc.pc)
-AC_CONFIG_FILES(../librpc/ndr.pc)
-AC_CONFIG_FILES(../lib/torture/torture.pc)
-AC_CONFIG_FILES(auth/gensec/gensec.pc)
-AC_CONFIG_FILES(param/samba-hostconfig.pc)
-AC_CONFIG_FILES(librpc/dcerpc_samr.pc)
-AC_CONFIG_FILES(librpc/dcerpc_atsvc.pc)
-
-m4_include(min_versions.m4)
-
-SMB_INCLUDED_LIB_PKGCONFIG(LIBTALLOC, talloc >= $TALLOC_MIN_VERSION, [],
-   [
-   m4_include(../lib/talloc/libtalloc.m4)
-   

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-61-gc84c8a4

2009-09-08 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  c84c8a4dbb680c0348e4816478fc2e7ad866c065 (commit)
   via  7abfab8b1e41929884ee9210150d0a956c215ed2 (commit)
   via  6cf7b6c25949e59594218e05dbda425204ac99b4 (commit)
   via  92215b3dc8e314cded25497432e1173b595f4692 (commit)
   via  08353855c22128676df0fbd4ed5a5d22daabe54d (commit)
   via  219868a4b5ed114b3b7c87b6c5c776c8f6b2e530 (commit)
  from  857d92c8d5812e348b7375d3acac1983c80688f4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit c84c8a4dbb680c0348e4816478fc2e7ad866c065
Author: Karolin Seeger 
Date:   Tue Sep 8 14:39:01 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit d5098d7372fb3ab5991df5ce6daa994372934b39)

commit 7abfab8b1e41929884ee9210150d0a956c215ed2
Author: Günther Deschner 
Date:   Tue Sep 8 11:57:52 2009 +0200

s3-schannel: Fix Bug #6697. Interdomain trusts with Windows 2008 R2 DCs.

The Schannel verifier (aka NL_AUTH_SIGNATURE) structure (32 byte) sent from 
a
W2k8r2 DC is passed in a buffer with the size of a NL_AUTH_SHA2_SIGNATURE 
(56
byte). We should just ignore the remaining 12 zeroed bytes and proceed.

Guenther
(cherry picked from commit ebd5019ef422a85119a7ea25025ff22d5a3bd757)

commit 6cf7b6c25949e59594218e05dbda425204ac99b4
Author: Simo Sorce 
Date:   Sat Sep 5 10:18:12 2009 -0400

Check we read off the compelte event from inotify

The kernel may return a short read, so we must use read_data() to make sure 
we
read off the full buffer. If somethign bad happens we also need to kill the
inotify watch because the filedescriptor will return out of sync structures 
if
we read only part of the data.

Fixes bug #6693.
(cherry picked from commit ada543569f498ef526ea9602eb19850e37f62fe2)

commit 92215b3dc8e314cded25497432e1173b595f4692
Author: Bo Yang 
Date:   Sat Jul 18 08:01:56 2009 +0800

s3: Fix crsh in net usershare list

Signed-off-by: Bo Yang 
(cherry picked from commit 726762c3793adc4e404dc12420c450a71519bbce)

commit 08353855c22128676df0fbd4ed5a5d22daabe54d
Author: Björn Jacke 
Date:   Wed Jul 15 17:24:14 2009 +0200

s3: make linking of rpcclient --as-needed safe

Second part of a fix for bug #6105.

(cherry picked from commit 5236b3699da2b5cc55d55310de76e4ab65a8bb46)
(cherry picked from commit 5839491d9d9e270e807048a4a505ce42bd99ea18)

commit 219868a4b5ed114b3b7c87b6c5c776c8f6b2e530
Author: Peter Volkov 
Date:   Wed Jul 15 17:36:25 2009 +0200

s3: make linking of cifs.upcall --as-needed safe

Part of a fix for bug #6105.

See http://www.gentoo.org/proj/en/qa/asneeded.xml for details.
(cherry picked from commit 2df4550aae1e326511fe4e7e0d2d98be3e578caf)
(cherry picked from commit b9c07dd26d5177d25b4e136b790ee279aeb63887)

---

Summary of changes:
 WHATSNEW.txt  |   16 
 source3/Makefile.in   |6 +++---
 source3/include/rpc_dce.h |2 +-
 source3/rpc_client/cli_pipe.c |2 +-
 source3/smbd/notify_inotify.c |   10 --
 source3/utils/net_usershare.c |1 +
 6 files changed, 30 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 165fe11..6e3a393 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -12,6 +12,8 @@ Major enhancements in Samba 3.4.1 include:
o Fix authentication on member servers without Winbind (bug #6650).
o Nautilus fails to copy files from an SMB share (bug #6649).
o Fix connections of Win98 clients (bug #6551).
+   o Fix interdomain trusts with Windows 2008 R2 DCs (bug #6697).
+
 
 
 ##
@@ -45,12 +47,17 @@ o   Günther Deschner 
 * BUG 6568: Fix _spoolss_GetPrintProcessorDirectory() implementation.
 * BUG 6607: Fix crash bug in spoolss_addprinterex_level_2.
 * BUG 6680: Fix authentication failure from Windows 7 when domain joined.
+* BUG 6697: Fix interdomain trusts with Windows 2008 R2 DCs.
 
 
 o   Olaf Flebbe 
 * BUG 6655: Fix 'smbcontrol smbd ping'.
 
 
+o   Björn Jacke 
+* BUG 6105: Make linking of rpcclient --as-needed safe.
+
+
 o   Matt Kraai 
 * BUG 6630: Fix opening of sockets on QNX.
 
@@ -78,6 +85,14 @@ o   Rusty Russell 
 * BUG 6601: Avoid global fd limits.
 
 
+o   Simo Sorce 
+* BUG 6693: Check we read off the complete event from inotify.
+
+
+o   Peter Volkov 
+* BUG 6105: Make linking of cifs.upcall --as-needed safe.
+
+
 o   TAKEDA Yasuma 
 * BUG 5879: Update LDAP schema for Netscape DS 5.
 
@@ -85,6 +100,7 @@ o   TAKEDA Yasuma 
 o   Bo Yang 
 * BUG 6560: Fix lookupname.
 * BUG 6615: Fix browsing of DFS when using kerberos in libsmbclient.
+* BUG 6688: Fix crash in 'net 

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-99-g74ec776

2009-09-09 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  74ec7766bf036b0acbf80e8030dec8427ee6a71d (commit)
   via  66d0c3bbd2933896d3ebd7ad5b261e8e0d96315c (commit)
   via  47270bbdb8616c6b6bfeaadc36d5f59cf01f9837 (commit)
   via  ba729050e682b8173ddb2cbb640b4d22c046c0a4 (commit)
   via  e30b60ede56b2ccf59d820f39d379c52d04c20d2 (commit)
   via  b1bbb87c3a02fc2ccb0091084dc1898a0d120b8b (commit)
   via  4b9362d563c578ab497170a3a1657b70504df1bc (commit)
   via  5805ecffe1f5fe5cb92836d159c761849c018eed (commit)
   via  581a85eeb1cbed45d2eddee20fab1a168fdb1518 (commit)
   via  b413921e53550e92d6cf764f5e4c837b8d5f5df1 (commit)
   via  c1011b3a21298fcde7a81a23412b3e2450e15942 (commit)
   via  ce31ae860d25823f7b5b3140b74e8d83af9d6ed5 (commit)
   via  3dbdc27d14f159aa0db16615924a91efb960d951 (commit)
   via  8913575e96a562c2fe155610b18d11dc9b389d8c (commit)
   via  352d0021464242ba8b346a7a9713618fee60dd22 (commit)
   via  c42edf194ecde7445ace1cd06a1b2ee2e710dc22 (commit)
   via  e2c61000e74ecfbcf302a88a681002854ddc1884 (commit)
   via  4c567abae090df75e016cc0679958c404aea4962 (commit)
   via  cdabbec91a6a739daaebd6d7a5a285026d01537a (commit)
   via  055d9ba4e4f9fd6a98b5c0b1f087f04b6672a211 (commit)
   via  c6b8826c713b5fc7ad9b7213d7fd8bfc8ef0b71c (commit)
   via  611ed97a0ffee73a232cacc961235f3bb4e8044c (commit)
   via  c28574bf378cbec8f186d4f36337b3ae450de7db (commit)
   via  00f260ce27388310c9324a8ed5369082b93b (commit)
   via  b7d674ad39b048960463c1108e8443d367b14005 (commit)
   via  bf11f9c9e9bb345920275cd568a680a6146633f2 (commit)
   via  a9c76046516e9122d673798241f5fd774a7d1296 (commit)
   via  6b802602c99d7534d0c1178b199ac119b268971a (commit)
   via  6a6f07ceac1e0e4c00be9869713e7200755aae64 (commit)
   via  c9594333e595c1f84c003e0a6c33a25f4226d765 (commit)
   via  ee8bb50d32830138434344f5363ff23fccce016e (commit)
   via  3405c58d507b14b0be4aadd29d5d4bfa0d67e24c (commit)
   via  9af470e45b5171d934155e75658816337e917bed (commit)
   via  c259082c32142c0f0dac999a4384b8e5fb7b6a49 (commit)
   via  784672fc8a2ae983fac35c03caccedf261470cf9 (commit)
   via  996597e7a4468ff9e79efd29a320b6f5c98d5faa (commit)
   via  418fb51e85ffc36a01daa04fe0d1263cbf6a1872 (commit)
   via  51b088dc5c3a8421d11aed352e5463f8551035c3 (commit)
  from  c84c8a4dbb680c0348e4816478fc2e7ad866c065 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 74ec7766bf036b0acbf80e8030dec8427ee6a71d
Author: Karolin Seeger 
Date:   Wed Sep 9 12:53:36 2009 +0200

WHATSNEW: Update changes since 3.4.0.

Karolin
(cherry picked from commit abc676bcd5eec40946c2e851345a6e973bf2cbea)

commit 66d0c3bbd2933896d3ebd7ad5b261e8e0d96315c
Author: SATOH Fumiyasu 
Date:   Tue Sep 8 16:07:17 2009 -0700

Fix bug 6496 - libsmbclient: MS-DFS: cannot follow multibyte char link 
name. A server returns a byte of consumed path in UCS2, not UNIX charset.
(cherry picked from commit ee70079d08acf23cf7c342f09a7db4f5fc7ca95e)

commit 47270bbdb8616c6b6bfeaadc36d5f59cf01f9837
Author: Jeremy Allison 
Date:   Tue Sep 8 16:22:46 2009 -0700

Fix bug 6673 - smbpasswd does not work with "unix password sync = yes". 
Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed from 
sys_read() to sys_recv(). read_socket_with_timeout() is called with non-fd's 
(with a pty in chgpasswd.c and with a disk file in lib/dbwrap_file.c via 
read_data()). recv works for the disk file, but not the pty. Change the name of 
read_socket_with_timeout() to read_fd_with_timeout() to make this clear (and 
add comments). Jeremy.
(cherry picked from commit 91a5b8561e2f13f77fa5648f7cc373aff1701954)

commit ba729050e682b8173ddb2cbb640b4d22c046c0a4
Author: Jeremy Allison 
Date:   Thu Sep 3 07:40:48 2009 -0700

Hopefully last part of the fix for bug 6651 - smbd SIGSEGV when breaking 
oplocks. This one is subtle. There is a race condition where a signal can be 
queued for oplock break, and then the file can be closed by the client before 
the signal can be processed. Currently if this occurs we panic (we can't match 
an incoming signal fd with a fsp pointer). Simply log the error (at debug level 
10 right now, might be too much) and then return without processing the break 
request. It looks like there is another race condition with this fix, but 
here's why it won't happen. If the signal was pending (caused by a kernel 
oplock break from a local file open), and the client closed the file and then 
re-opened another file which happened to use the same file descriptor as the 
file just closed, then theoretically the oplock break requests could be 
processed on the wrong fd. Here's why this should be very rare.. Processing a 
pending signal always take precedence over an incoming network reque
 st, so as long as the client close requ

[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-100-g2e90008

2009-09-09 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  2e900086e86da37ff49978537ef67d5b9fad9a2e (commit)
  from  74ec7766bf036b0acbf80e8030dec8427ee6a71d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 2e900086e86da37ff49978537ef67d5b9fad9a2e
Author: Volker Lendecke 
Date:   Wed Sep 9 12:24:08 2009 +0200

s3:libsmb: Correctly chew keepalive packets

Thanks a *lot* to Günther to send me the relevant traces!

Volker

Signed-off-by: Günther Deschner 

Fixes bug #6646 (Winbind authentication issue on 3.2.13/14 and 3.4.0 (was:
[Samba] Crazied NTLM_AUTH on samba 3.4.0)).
(cherry picked from commit a4f9583ce364fad963cc154f0229cb57ec0043d2)

---

Summary of changes:
 source3/libsmb/async_smb.c |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 066ac7b..07d832e 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -923,6 +923,12 @@ static void handle_incoming_pdu(struct cli_state *cli)
}
}
 
+   if ((raw_pdu_len == 4) && (CVAL(pdu, 0) == SMBkeepalive)) {
+   DEBUG(10, ("Got keepalive\n"));
+   TALLOC_FREE(pdu);
+   return;
+   }
+
status = validate_smb_crypto(cli, pdu);
if (!NT_STATUS_IS_OK(status)) {
goto invalidate_requests;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-0-101-gd7b0695

2009-09-09 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  d7b06955393e92255f807db0ef4786e9037d31ec (commit)
  from  2e900086e86da37ff49978537ef67d5b9fad9a2e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit d7b06955393e92255f807db0ef4786e9037d31ec
Author: Karolin Seeger 
Date:   Wed Sep 9 14:24:08 2009 +0200

WHATSNEW: Update changes.

Karolin
(cherry picked from commit a87116873bdbb4301f35b1d3f6bc8596f96be975)

---

Summary of changes:
 WHATSNEW.txt |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index cd75945..c066e4b 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -13,7 +13,7 @@ Major enhancements in Samba 3.4.1 include:
o Nautilus fails to copy files from an SMB share (bug #6649).
o Fix connections of Win98 clients (bug #6551).
o Fix interdomain trusts with Windows 2008 R2 DCs (bug #6697).
-
+   o Fix Winbind authentication issue (bug #6646).
 
 
 ##
@@ -72,6 +72,7 @@ o   Volker Lendecke 
 * BUG 5886: Fix password change propagation with ldapsam.
 * BUG 6585: Fix unqualified "net join".
 * BUG 6611: Fix a valgrind error in chain_reply.
+* BUG 6646: Fix Winbind authentication issue.
 * Fix linking on Solaris.
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated - release-3-4-1-8-g7439cd5

2009-10-01 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  7439cd5efa50058741c57857109690e4a104f9f0 (commit)
   via  9851a27b2f73e16c730983f60f7d580de897da95 (commit)
   via  cc0829c00d527ba0e707efe0f57d637a38b03dee (commit)
   via  ac075bd679fd59e93ea13780f6651a431002edd0 (commit)
   via  2a422f453dd3ad9978e6ec0ac40c122163c028ed (commit)
   via  42351937b00f6aa013d16c2a4dbd0b37e7e9ed11 (commit)
   via  53ba0b36d0d3bb2fb4b2fc5335920487060ed284 (commit)
   via  d805592d6fb1fa841a74c547945226a916494a2d (commit)
  from  d7b06955393e92255f807db0ef4786e9037d31ec (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-stable


- Log -
commit 7439cd5efa50058741c57857109690e4a104f9f0
Author: Jeremy Allison 
Date:   Wed Sep 30 14:17:40 2009 +0200

Fix for CVE-2009-2906.

Summary:
Specially crafted SMB requests on
authenticated SMB connections can send smbd
into a 100% CPU loop, causing a DoS on the
Samba server.

commit 9851a27b2f73e16c730983f60f7d580de897da95
Author: Karolin Seeger 
Date:   Wed Sep 30 13:54:22 2009 +0200

WHATSNEW: Update release notes.

Karolin

commit cc0829c00d527ba0e707efe0f57d637a38b03dee
Author: Karolin Seeger 
Date:   Mon Sep 28 13:38:32 2009 +0200

WHATSNEW: Update release date.

Karolin

commit ac075bd679fd59e93ea13780f6651a431002edd0
Author: Jeremy Allison 
Date:   Mon Sep 28 13:26:37 2009 +0200

Fix for CVE-2009-2813.

===
== Subject: Misconfigured /etc/passwd file may share folders 
unexpectedly
==
== CVE ID#: CVE-2009-2813
==
== Versions:All versions of Samba later than 3.0.11
==
== Summary: If a user in /etc/passwd is misconfigured to have
==  an empty home directory then connecting to the home
==  share of this user will use the root of the filesystem
==  as the home directory.
===

commit 2a422f453dd3ad9978e6ec0ac40c122163c028ed
Author: Jeff Layton 
Date:   Fri Sep 25 07:03:07 2009 -0400

mount.cifs: don't leak passwords with verbose option

When running mount.cifs with the --verbose option, it'll print out the
option string that it passes to the kernel...including the mount
password if there is one. Print a placeholder string instead to help
ensure that this info can't be used for nefarious purposes.

Also, the --verbose option printed the option string before it was
completely assembled anyway. This patch should also make sure that
the complete option string is printed out.

Finally, strndup passwords passed in on the command line to ensure that
they aren't shown by --verbose as well. Passwords used this way can
never be truly kept private from other users on the machine of course,
but it's simple enough to do it this way for completeness sake.

Reported-by: Ronald Volgers 
Signed-off-by: Jeff Layton 
Acked-by: Steve French 

Part 2/2 of a fix for CVE-2009-2948.

commit 42351937b00f6aa013d16c2a4dbd0b37e7e9ed11
Author: Jeff Layton 
Date:   Fri Sep 25 06:51:01 2009 -0400

mount.cifs: check access of credential files before opening

It's possible for an unprivileged user to pass a setuid mount.cifs a
credential or password file to which he does not have access. This can cause
mount.cifs to open the file on his behalf and possibly leak the info in the
first few lines of the file.

Check the access permissions of the file before opening it.

Reported-by: Ronald Volgers 
Signed-off-by: Jeff Layton 
Acked-by: Steve French 

Part 1/2 of a fix for CVE-2009-2948.

commit 53ba0b36d0d3bb2fb4b2fc5335920487060ed284
Author: Karolin Seeger 
Date:   Mon Sep 28 13:21:07 2009 +0200

WHATSNEW: Prepare release notes for 3.4.2.

Karolin

commit d805592d6fb1fa841a74c547945226a916494a2d
Author: Karolin Seeger 
Date:   Thu Sep 24 14:29:43 2009 +0200

Raise version number up to 3.4.2.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   70 +--
 source3/VERSION |2 +-
 source3/client/mount.cifs.c |   65 +++
 source3/include/smb.h   |1 +
 source3/param/loadparm.c|7 -
 source3/smbd/process.c  |   30 +++---
 source3/smbd/service.c  |6 +++-
 7 files changed, 150 insertions(+), 31 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index c066e4b..f1c9d50 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,70 @@
=
+   Release Notes for Samba 3.4.2
+