samba.git
14 years agoRevert "s3:Makefile: fix talloc dependencies with static build (2nd try)"
Björn Jacke [Sat, 3 Oct 2009 21:04:12 +0000 (23:04 +0200)]
Revert "s3:Makefile: fix talloc dependencies with static build (2nd try)"

This reverts commit b60d87c20712bd3d83166bd13fe1d2bab0315609.
(cherry picked from commit f2257d821e380f5adba5094b1d30c12df10cb72c)

14 years agoRevert "s3:Makefile: fix libtdb dependencies with static build"
Björn Jacke [Sat, 3 Oct 2009 21:00:37 +0000 (23:00 +0200)]
Revert "s3:Makefile: fix libtdb dependencies with static build"

This reverts commit da15726630b0f796aef52a20d96898e269058456.
(cherry picked from commit c9ee01ba19b955b2f7389a37e275ac54117f0bba)

14 years agoRevert "s3:Makefile: fix libwbclient dependencies with static build"
Björn Jacke [Sat, 3 Oct 2009 20:53:52 +0000 (22:53 +0200)]
Revert "s3:Makefile: fix libwbclient dependencies with static build"

This reverts commit d7795f2afa3779399fe9e7b4f050d19a412f8bcd.
(cherry picked from commit 7074dc9b688aa66c50f4fe7949af85d1a7eb1432)

14 years agoRevert "s3:Makefile: fix libnetapi dependencies with static build"
Björn Jacke [Sat, 3 Oct 2009 20:53:15 +0000 (22:53 +0200)]
Revert "s3:Makefile: fix libnetapi dependencies with static build"

This reverts commit 110897a057af01f3c01a1783e06080b54631ba2d.
(cherry picked from commit 7928c737598cc407417a32d2fe6d95c0d8da97d0)

14 years agoCope with old CIFSFS clients that use SMBunlink to remove
Jeremy Allison [Thu, 8 Oct 2009 22:36:36 +0000 (15:36 -0700)]
Cope with old CIFSFS clients that use SMBunlink to remove
symlinks instead of trans2:posix_unlink.
Jeremy.
(cherry picked from commit 59676ec21f022a2af2f72385d8ea368f2a60ad3b)

14 years agos3: Fix shadow copy display on Windows 7
Volker Lendecke [Thu, 8 Oct 2009 12:02:39 +0000 (14:02 +0200)]
s3: Fix shadow copy display on Windows 7

Windows 7 is a bit more picky on our NT_STATUS_BUFFER_TOO_SMALL. Announce the
right buffer size, the same amount we later check for.
(cherry picked from commit c6c0907950030db90331e5e0ac96a68619fe4a73)

14 years agoExteded RAW-RENAME test to catch regressions in bug 6781.
Jeremy Allison [Wed, 7 Oct 2009 23:52:29 +0000 (16:52 -0700)]
Exteded RAW-RENAME test to catch regressions in bug 6781.
Jeremy.
(cherry picked from commit d294fd3a0c152e5bde491d39219c54c113db9afe)

14 years agoOops. Don't break the build..
Jeremy Allison [Wed, 7 Oct 2009 22:43:43 +0000 (15:43 -0700)]
Oops. Don't break the build..
Jeremy.
(cherry picked from commit 879c3b8888b9a77136777b269ad730d4b3ca223b)

14 years agoMake the logic a lot clearer and fix the comment to match.
Jeremy Allison [Wed, 7 Oct 2009 22:39:38 +0000 (15:39 -0700)]
Make the logic a lot clearer and fix the comment to match.
Jeremy
(cherry picked from commit 48fee26ab0a7b33fa97032b85bebbb4dc7fb8c68)

14 years agoCorrect fix for bug 6781 - Cannot rename subfolders in Explorer view with recent...
Jeremy Allison [Wed, 7 Oct 2009 22:14:50 +0000 (15:14 -0700)]
Correct fix for bug 6781 - Cannot rename subfolders in Explorer view with recent versions of Samba.
Without this fix, renaming a directory ./a to ./b, whilst a directory ./aa was already open
would fail.
Jeremy.
(cherry picked from commit fcd6a57d310a55cda7ff6248a59a99d50d925bed)

14 years agoTest creating and deleting a bad symlink using the POSIX calls. Ensure
Jeremy Allison [Wed, 7 Oct 2009 00:18:15 +0000 (17:18 -0700)]
Test creating and deleting a bad symlink using the POSIX calls. Ensure
we don't regress on bug 6769.
Jeremy.
(cherry picked from commit 22d26287cf3f89c9294c285aff12736c47b85896)

14 years agos3: Add access_mask to the flock VFS call
Abhidnya P Chirmule [Tue, 6 Oct 2009 15:14:56 +0000 (17:14 +0200)]
s3: Add access_mask to the flock VFS call
(cherry picked from commit 763c95c145b6313a1460a7e45685a7f966e8bd4d)

14 years agos3-winbindd: make sure to reset connections when machine account password change...
Günther Deschner [Mon, 5 Oct 2009 15:05:38 +0000 (17:05 +0200)]
s3-winbindd: make sure to reset connections when machine account password change chain was broken.

Guenther
(cherry picked from commit c344bf0184be484fff8bb5ed93b5c2ca6de58611)
(cherry picked from commit 2a9accd85e992798ee36cb1ea74ed06f5379be3d)

14 years agos3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password...
Günther Deschner [Mon, 5 Oct 2009 15:04:52 +0000 (17:04 +0200)]
s3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password() only when needed.

Guenther
(cherry picked from commit 0c2fc9eedf241746067d1625f643c894bfa11394)
(cherry picked from commit d76c914adc17e4374c9e21b6733514fd7ad9bdac)

14 years agoFix bug 6776 - Running overlapping Byte Lock test will core dump Samba daemon.
Jeremy Allison [Mon, 5 Oct 2009 17:27:48 +0000 (10:27 -0700)]
Fix bug 6776 - Running overlapping Byte Lock test will core dump Samba daemon.
Re-write core of POSIX locking logic.
Jeremy.
(cherry picked from commit 2fa98946d9eb3d0b6973dfaeadc55c8112ec30e1)

14 years agos3-net: print error when "net rpc changetrustpw" has failed.
Günther Deschner [Mon, 5 Oct 2009 11:01:53 +0000 (13:01 +0200)]
s3-net: print error when "net rpc changetrustpw" has failed.

Guenther
(cherry picked from commit 55b12d032c82b280bc0fda43bff8e5b05b934ecf)
(cherry picked from commit cb6559062909f365b32cd8e3986269e38701c78c)

14 years agos3: Remove a scary error message -- talloc_move can not fail :-)
Volker Lendecke [Sun, 4 Oct 2009 13:19:19 +0000 (15:19 +0200)]
s3: Remove a scary error message -- talloc_move can not fail :-)

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 84de81b4786bed411199f2785a1eafc7c86db478)
(cherry picked from commit fb0b85b59c4a7db846d66d6db816c2c4dee1b887)

14 years agos3: Fix nonempty blank lines
Volker Lendecke [Sun, 4 Oct 2009 13:13:44 +0000 (15:13 +0200)]
s3: Fix nonempty blank lines

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit d696f9a7ed0bb42c6d9de99ab07af27b00fe2d40)
(cherry picked from commit b5117b18fdcbbc64e583264085f08c76b587c43b)

14 years agolib/tdr: get rid of build warning when using TDR_ALLOC macro.
Günther Deschner [Thu, 1 Oct 2009 23:25:13 +0000 (01:25 +0200)]
lib/tdr: get rid of build warning when using TDR_ALLOC macro.

Guenther
(cherry picked from commit ab8a16c77f8222115493bbc295318a7d9ceb6d38)
(cherry picked from commit 804be72c085b3add97043149c78b767820d182f5)

14 years agos3: remove unused PRS_POINTER_CAST macro.
Günther Deschner [Thu, 1 Oct 2009 11:42:29 +0000 (13:42 +0200)]
s3: remove unused PRS_POINTER_CAST macro.

Guenther
(cherry picked from commit 926457ec9565c980c14a658b34291e41317d404b)
(cherry picked from commit 805d851a7d45fbcd74f9a85a8c33d111fd53e763)

14 years agos3: remove unused SYSTEMTIME struct.
Günther Deschner [Thu, 1 Oct 2009 10:52:46 +0000 (12:52 +0200)]
s3: remove unused SYSTEMTIME struct.

Guenther
(cherry picked from commit 2497f70257bd7b5523c65d342e68d8a1c85c41c2)
(cherry picked from commit a272430e74f390c35ee525156753346115f7895f)

14 years agos3:Makefile: minor clean up
Björn Jacke [Fri, 2 Oct 2009 22:19:30 +0000 (00:19 +0200)]
s3:Makefile: minor clean up
(cherry picked from commit a86f80beefb11fdebc00b0442d7735d6e1081995)

14 years agos3:Makefile: fix libnetapi dependencies with static build
Björn Jacke [Fri, 2 Oct 2009 22:15:19 +0000 (00:15 +0200)]
s3:Makefile: fix libnetapi dependencies with static build

analogical to previous libtalloc fix
(cherry picked from commit fdd52658643ca27b07302eba423d22c12c6df8fd)

14 years agos3:Makefile: eventlogadm dependency cleanup
Björn Jacke [Fri, 2 Oct 2009 21:08:11 +0000 (23:08 +0200)]
s3:Makefile: eventlogadm dependency cleanup

no need to link against popt lib
(cherry picked from commit 2fbb07239af249a3adc0435248c4a8702e35f8a1)

14 years agos3:Makefile: fix libwbclient dependencies with static build
Björn Jacke [Fri, 2 Oct 2009 21:05:27 +0000 (23:05 +0200)]
s3:Makefile: fix libwbclient dependencies with static build

analogical to previous libtalloc fix
(cherry picked from commit 0d4a5b63f0c96df6db46032f4280a707273438de)

14 years agos3:Makefile: fix libtdb dependencies with static build
Björn Jacke [Fri, 2 Oct 2009 21:01:18 +0000 (23:01 +0200)]
s3:Makefile: fix libtdb dependencies with static build

analogical to previous libtalloc fix
(cherry picked from commit d0dca4a3075e87f10a557167d680781b85af237d)

14 years agos3:Makefile: fix talloc dependencies with static build (2nd try)
Björn Jacke [Fri, 2 Oct 2009 20:43:14 +0000 (22:43 +0200)]
s3:Makefile: fix talloc dependencies with static build (2nd try)

When configure options --with-libtalloc=no --enable-shared-libs=no are used,
LIBTALLOC_TARGET stays empty. Actually LIBTALLOC_TARGET which is only used for
Makefile dependencies is obsolete as LIBTALLOC contains exactly the targets
that we depend on, libtalloc finally is the target to depend on.
(cherry picked from commit f60f3c9dec1dd413399755b0d5cb0dda3d0a5467)

14 years agoRevert "s3:Makefile: fix talloc dependencies with static build"
Björn Jacke [Fri, 2 Oct 2009 20:00:50 +0000 (22:00 +0200)]
Revert "s3:Makefile: fix talloc dependencies with static build"

This reverts commit 2af2334522bc3d2c44bdcf7c9f1e80d2bcbf2024.

a more correct way to fix the libtalloc dependencies follows
(cherry picked from commit c87c5fa7c9c3405c2c717697ae14056bc9450988)

14 years agos3:Makefile: libsmbsharemode dependency cleanup
Björn Jacke [Fri, 2 Oct 2009 00:18:50 +0000 (02:18 +0200)]
s3:Makefile: libsmbsharemode dependency cleanup

no need to link against ldap and krb5 libs
(cherry picked from commit 9bcb2f1ad1665673cece0450ca9937898e17585a)

14 years agos3:Makefile: net utility dependency cleanup
Björn Jacke [Fri, 2 Oct 2009 00:28:56 +0000 (02:28 +0200)]
s3:Makefile: net utility dependency cleanup

no need to link against iniparser lib
(cherry picked from commit 4e344314fdffe6211f5056451f38d218a2dafb85)

14 years agos3:configure: use --aѕ-needed linker option when supported
Björn Jacke [Fri, 2 Oct 2009 17:53:53 +0000 (19:53 +0200)]
s3:configure: use --aѕ-needed linker option when supported

Based on a patch from Andreas Schneider but modified that --aѕ-needed is also
used when own libs are not build shared (--enable-shared). Also change order of
options so that user supplied LDFLAGS are put *after* the automatic --aѕ-needed
flag. This way it's pollible to force not use as-needed by setting LDFLAGS
environment variable to "-Wl,--no-as-needed".
(cherry picked from commit aaced534fb00445e4efa70392b6c0b22ab59b3cc)

14 years agos3:doc: add some detail about lanman auth parameter
Björn Jacke [Fri, 2 Oct 2009 15:55:50 +0000 (17:55 +0200)]
s3:doc: add some detail about lanman auth parameter

add interesting detail: lm passwords will be removed from databaѕe with
lanman auth = no
(cherry picked from commit 06aba9680f84364da10489d174105ef4c4796450)

14 years agoRemove lots of duplicate code and move it into one
Jeremy Allison [Fri, 2 Oct 2009 20:45:38 +0000 (13:45 -0700)]
Remove lots of duplicate code and move it into one
function vfs_stat_fsp(). Stops code looking at fsp->posix_open
except for exceptional circumstances.
Jeremy.
(cherry picked from commit da45a3ca779d3441265837167b021ea4920edb01)

14 years agoMissed one VFS_STAT -> VFS_LSTAT
Jeremy Allison [Fri, 2 Oct 2009 18:07:17 +0000 (11:07 -0700)]
Missed one VFS_STAT -> VFS_LSTAT
Jeremy.
(cherry picked from commit 00738a2c92ab9e8d35976b49f1809e88f77d1e9d)

14 years agoFix more use of VFS_STAT when posix pathnames selected.
Jeremy Allison [Fri, 2 Oct 2009 18:05:03 +0000 (11:05 -0700)]
Fix more use of VFS_STAT when posix pathnames selected.
Jeremy.
(cherry picked from commit 8b5fddf729d73fa2c0e4496fa5aa0d1093c70a05)

14 years agos3: re-run make idl. janitor for tridge.
Günther Deschner [Wed, 30 Sep 2009 14:18:29 +0000 (16:18 +0200)]
s3: re-run make idl. janitor for tridge.

Guenther
(cherry picked from commit a6567cf198f9d1c9df0f34c463cec3b9f0aa2e54)
(cherry picked from commit f1470f7e46e2a33b40b9660f2c46996174d8c849)

14 years agow32err: WERR_DOMAIN_CONTROLLER_NOT_FOUND error value fixed
Kamen Mazdrashki [Thu, 17 Sep 2009 10:52:28 +0000 (13:52 +0300)]
w32err: WERR_DOMAIN_CONTROLLER_NOT_FOUND error value fixed

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
(cherry picked from commit e66911390005f377196d49dffb06cd4ae25ddc5f)
(cherry picked from commit 577504dd70cc76151dc4c4259a88229e5999b6e3)

14 years agow32err: FRS_ group of errors replaced with numeric values
Kamen Mazdrashki [Thu, 17 Sep 2009 20:18:40 +0000 (23:18 +0300)]
w32err: FRS_ group of errors replaced with numeric values

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
(cherry picked from commit 0e64fcb18f22f31b9004e43f701ea109cef6075d)
(cherry picked from commit 11c2052c6f1c452ce51f1859e3bbd9690bfcb36f)

14 years agow32err: WERR_DC_NOT_FOUND replaced with WERR_DCNOTFOUND
Kamen Mazdrashki [Thu, 17 Sep 2009 21:46:52 +0000 (00:46 +0300)]
w32err: WERR_DC_NOT_FOUND replaced with WERR_DCNOTFOUND

It turns out in win32 ERROR_DC_NOT_FOUND exists and it is
an error for Device Context (DC), not Domain Controller

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
(cherry picked from commit d9994a604bd51949a9869927bdc2cb512fba9171)
(cherry picked from commit e9cb12953f191489b34e84547fc84841ff29515a)

14 years agow32err: WERR_USER_EXISTS replace with WERR_USEREXISTS name
Kamen Mazdrashki [Thu, 17 Sep 2009 21:00:21 +0000 (00:00 +0300)]
w32err: WERR_USER_EXISTS replace with WERR_USEREXISTS name

In Win32 we have
NERR_UserExists which maps to WERR_USER_EXISTS currently
and there is
ERROR_USER_EXISTS which maps to WERR_USER_ALREADY_EXISTS

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
(cherry picked from commit 948cd70bad6600a4e4e1493469efc0ccd9399c18)
(cherry picked from commit f5586f6f14e40579b6c8f3da0daa5a8dd78aa956)

14 years agow32err: WERR_GROUP_NOT_FOUND renamed to WERR_GROUPNOTFOUND
Kamen Mazdrashki [Thu, 17 Sep 2009 21:20:23 +0000 (00:20 +0300)]
w32err: WERR_GROUP_NOT_FOUND renamed to WERR_GROUPNOTFOUND

In Win 32 we have
NERR_GroupNotFound which maps to WERR_GROUP_NOT_FOUND currently
and we have
ERROR_GROUP_NOT_FOUND which maps to nothing, so it is to be added

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
(cherry picked from commit 0e1840b84a892d31cbc45191b2965db5c931670b)
(cherry picked from commit 6064f524738309b1062da4e8605145f920b7c856)

14 years agow32err: Importing auto-generated Win32 errors and descriptions
Kamen Mazdrashki [Fri, 18 Sep 2009 13:30:09 +0000 (16:30 +0300)]
w32err: Importing auto-generated Win32 errors and descriptions

Error codes and their descriptions are generated
using w32err_code.py script.
Error are downloaded from MS site:
http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
(cherry picked from commit 1f2490e7d8b5a64caf75143041ce07bd2968839e)
(cherry picked from commit 248b7b5f74d8615c8b582df1f72fc71320bffb44)

14 years agos3-printing: use regval_ctr_addvalue_multi_sz.
Günther Deschner [Wed, 30 Sep 2009 13:22:02 +0000 (15:22 +0200)]
s3-printing: use regval_ctr_addvalue_multi_sz.

Guenther
(cherry picked from commit bbf394f36dbf2516ba92035791ebb67380de8d6e)
(cherry picked from commit 3d98546ebf8c582cdd675e7e93693f54968fbc58)

14 years agos3-registry: add regval_ctr_addvalue_multi_sz.
Günther Deschner [Wed, 30 Sep 2009 13:21:37 +0000 (15:21 +0200)]
s3-registry: add regval_ctr_addvalue_multi_sz.

Guenther
(cherry picked from commit 05e8e90976e86689425ccafc9ecfc1d99c53a3db)
(cherry picked from commit 1febace29881995901eb5694f22ee333e7166fd7)

14 years agos3-rpc_parse: remove unused prs_string.
Günther Deschner [Tue, 29 Sep 2009 23:23:13 +0000 (01:23 +0200)]
s3-rpc_parse: remove unused prs_string.

Guenther
(cherry picked from commit afdea18fcf66ab9a03b542ea7f3d23d01a0a1931)
(cherry picked from commit 4567a2ef52b0d04748337dc76315be277e72899a)

14 years agoFix bug #6769 - symlink unlink does nothing.
Jeremy Allison [Thu, 1 Oct 2009 23:54:06 +0000 (16:54 -0700)]
Fix bug #6769 - symlink unlink does nothing.
Always use LSTAT for POSIX pathnames.
Jeremy.
(cherry picked from commit 4a7016200731ea3e133665568027a3c99e1fcf71)

14 years agoNULL is not a valid event context.
Jeremy Allison [Thu, 1 Oct 2009 23:18:33 +0000 (16:18 -0700)]
NULL is not a valid event context.
Jeremy.
(cherry picked from commit 2820dc529a04985b7223603e826f6b9905d2611b)

14 years agos3:Makefile: fix talloc dependencies with static build
Björn Jacke [Thu, 1 Oct 2009 16:57:38 +0000 (18:57 +0200)]
s3:Makefile: fix talloc dependencies with static build

When configure options --with-libtalloc=no --enable-shared-libs=no are used,
LIBTALLOC_TARGET stays empty. Actually LIBTALLOC_TARGET which is only used for
Makefile dependencies is obsolete as LIBTALLOC contains exactly the targets
that make the dependencies are. Obnox, pleaѕe check!
(cherry picked from commit 7e3792f91b9ce9ac08f99f95eaa5ab0ab7c8277d)

14 years agos3:configure: don't throw away PRINT_LIBS
Björn Jacke [Thu, 1 Oct 2009 17:08:51 +0000 (19:08 +0200)]
s3:configure: don't throw away PRINT_LIBS

PRINT_LIBS might have been set before intentionally, so don't thow it away.
(cherry picked from commit 432c6203c78ad0be482b85be0b583105c8378b62)

14 years agos3: update comment about (deprecated) a6 records
Björn Jacke [Wed, 23 Sep 2009 12:40:25 +0000 (14:40 +0200)]
s3: update comment about (deprecated) a6 records
(cherry picked from commit bc78a5bae3ffa1c74847adb91230afa4ea031240)

14 years agos3-perfcount: more cleanup.
Günther Deschner [Thu, 1 Oct 2009 08:21:17 +0000 (10:21 +0200)]
s3-perfcount: more cleanup.

Guenther
(cherry picked from commit 7a98fdebe454ec55e93868ca319615bf442b2ff8)

14 years agos3-perfcount: only pass down prs_struct when really required.
Günther Deschner [Thu, 1 Oct 2009 01:39:07 +0000 (03:39 +0200)]
s3-perfcount: only pass down prs_struct when really required.

Guenther
(cherry picked from commit f1b5d5dcab5d8249ae8dc6d26cf9e9e163b95a8d)

14 years agos3: add perfcount idl and generated files.
Günther Deschner [Thu, 1 Oct 2009 00:09:33 +0000 (02:09 +0200)]
s3: add perfcount idl and generated files.

Guenther
(cherry picked from commit 11f56f48433951046a79683eda08ab8a4246d487)

14 years agos3-registry: move rpccli_winreg_Connect to the only file it belongs.
Günther Deschner [Wed, 30 Sep 2009 23:30:45 +0000 (01:30 +0200)]
s3-registry: move rpccli_winreg_Connect to the only file it belongs.

Guenther
(cherry picked from commit ca90b480da3f5d813186d3b7be22a5a0ae1057f6)

14 years agos3: remove unused rpcstr_pull and rpcstr_pull_talloc.
Günther Deschner [Wed, 30 Sep 2009 18:01:54 +0000 (20:01 +0200)]
s3: remove unused rpcstr_pull and rpcstr_pull_talloc.

Guenther
(cherry picked from commit 1a0db7a957682782bd915526c69c0779e7b8335f)

14 years agos3-printing: more use of pull_reg_sz().
Günther Deschner [Wed, 30 Sep 2009 18:01:35 +0000 (20:01 +0200)]
s3-printing: more use of pull_reg_sz().

Guenther
(cherry picked from commit d2fd44b357f1e4aa11391b6c9f2602d90eb6d6ec)

14 years agos3-registry: use pull_reg_sz() where appropriate.
Günther Deschner [Wed, 30 Sep 2009 18:00:52 +0000 (20:00 +0200)]
s3-registry: use pull_reg_sz() where appropriate.

(and move away from rpcstr_pull and rpcstr_pull_talloc).

Guenther
(cherry picked from commit 62a7ea41ec40dd23ea4e70d2c3c507b37978c4f0)

14 years agoFix for CVE-2009-2813.
Jeremy Allison [Thu, 1 Oct 2009 17:23:29 +0000 (10:23 -0700)]
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.
===========================================================
(cherry picked from commit 87b31c0266360f311ae6207b9ec5bce9d8e01be7)

14 years agos3/docs: Set correct version number for manpages.
Karolin Seeger [Thu, 1 Oct 2009 12:53:55 +0000 (14:53 +0200)]
s3/docs: Set correct version number for manpages.

Karolin
(cherry picked from commit 2d4ffe2a8cb7e0db9733a0e58b1c34e82fd40faf)

14 years agoFix for CVE-2009-2906.
Jeremy Allison [Thu, 1 Oct 2009 12:32:36 +0000 (14:32 +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.
(cherry picked from commit 8a6b90d401e3c8d4d04ade36020bfc5c31c9603e)
(cherry picked from commit 0b3d471a289ef79a41704c0a0c8bdc479ac3d7f0)

14 years agomount.cifs: don't leak passwords with verbose option
Jeff Layton [Fri, 25 Sep 2009 11:07:40 +0000 (07:07 -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 <r.c.volgers@student.utwente.nl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <sfrench@us.ibm.com>
(cherry picked from commit 54de6ac85eb81aecc8b44a500f374edb95bf6a3d)

14 years agomount.cifs: check access of credential files before opening
Jeff Layton [Fri, 25 Sep 2009 10:45:10 +0000 (06:45 -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 <r.c.volgers@student.utwente.nl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <sfrench@us.ibm.com>
(cherry picked from commit 0293057abd8cdfc7c690cf5c8dd20b8a626d52ca)

14 years agoallow for outstanding_aio_calls to be decremented
Olaf Flebbe [Wed, 30 Sep 2009 22:20:09 +0000 (15:20 -0700)]
allow for outstanding_aio_calls to be decremented
(cherry picked from commit 5b0b93991f256d1cd5c681c60075c4b17a0bc3c9)

14 years agoMerge commit 'origin/v3-5-test' into v3-5-test
Karolin Seeger [Wed, 30 Sep 2009 12:36:06 +0000 (14:36 +0200)]
Merge commit 'origin/v3-5-test' into v3-5-test

Re-sync with current master branch as requested on samba-technical.

14 years agoidl: ntsvcs.idl depends on misc.idl, not winreg.idl
Andrew Tridgell [Wed, 30 Sep 2009 04:33:14 +0000 (14:33 +1000)]
idl: ntsvcs.idl depends on misc.idl, not winreg.idl

The winreg_Type definition comes from misc.idl

14 years agos4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14
Steven Danneman [Wed, 30 Sep 2009 02:03:20 +0000 (19:03 -0700)]
s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14

We were pulling junk memory for our stream names after the reordering
of the struct definition.

14 years agos4/torture: Allow receiving of oplock break requests in any order
Steven Danneman [Fri, 25 Sep 2009 23:44:51 +0000 (16:44 -0700)]
s4/torture: Allow receiving of oplock break requests in any order

Previously, the oplock torture tests, being single threaded, required
the server to return oplock break requests, and other SMB packets
in a specific order for us to verify "correctness".

Of course, in several cases the protocol allows the break packets,
especially breaks to levelII to come back in any order.  With tevent
we're now able to wait for oplock breaks in the middle of a torture
test.

I've added a helper to do this, and modified all oplock tests to allow
returning of oplock breaks in any order.

14 years agos4/torture: convert printf to torture_comment()
Aravind Srinivasan [Tue, 8 Sep 2009 20:12:26 +0000 (13:12 -0700)]
s4/torture: convert printf to torture_comment()

Allows "make test" and other harnesses to print cleaner output.

14 years agos3-netlogon: properly implement _netr_NetrEnumerateTrustedDomains().
Günther Deschner [Thu, 24 Sep 2009 16:53:40 +0000 (18:53 +0200)]
s3-netlogon: properly implement _netr_NetrEnumerateTrustedDomains().

Guenther

14 years agos3: remove unused unistr2_term_codes.
Günther Deschner [Tue, 29 Sep 2009 22:36:05 +0000 (00:36 +0200)]
s3: remove unused unistr2_term_codes.

Guenther

14 years agos3: remove unused regval_convert_multi_sz().
Günther Deschner [Thu, 24 Sep 2009 23:00:24 +0000 (01:00 +0200)]
s3: remove unused regval_convert_multi_sz().

Guenther

14 years agos3: remove unused regval_build_multi_sz().
Günther Deschner [Thu, 24 Sep 2009 22:37:02 +0000 (00:37 +0200)]
s3: remove unused regval_build_multi_sz().

Guenther

14 years agos3-rpc_parse: remove unused UNISTR2 struct and init function.
Günther Deschner [Wed, 23 Sep 2009 18:48:25 +0000 (20:48 +0200)]
s3-rpc_parse: remove unused UNISTR2 struct and init function.

Guenther

14 years agos3: use pull_reg_multi_sz in rpcclient and net.
Günther Deschner [Tue, 29 Sep 2009 21:22:46 +0000 (23:22 +0200)]
s3: use pull_reg_multi_sz in rpcclient and net.

Guenther

14 years agos3-util: use pull_reg_multi_sz in reg_pull_multi_sz.
Günther Deschner [Fri, 25 Sep 2009 09:35:46 +0000 (11:35 +0200)]
s3-util: use pull_reg_multi_sz in reg_pull_multi_sz.

Guenther

14 years agos3-registry: use pull_reg_multi_sz().
Günther Deschner [Thu, 24 Sep 2009 22:55:56 +0000 (00:55 +0200)]
s3-registry: use pull_reg_multi_sz().

Guenther

14 years agos3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.
Günther Deschner [Thu, 24 Sep 2009 22:56:17 +0000 (00:56 +0200)]
s3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.

Guenther

14 years agos3: use push_reg_multi_sz().
Günther Deschner [Thu, 24 Sep 2009 22:36:43 +0000 (00:36 +0200)]
s3: use push_reg_multi_sz().

Guenther

14 years agos3-registry: use regval_ctr_addvalue_sz().
Günther Deschner [Thu, 24 Sep 2009 13:01:32 +0000 (15:01 +0200)]
s3-registry: use regval_ctr_addvalue_sz().

Greatly simplifies and cleanes up the code.

Guenther

14 years agos3-registry: add regval_ctr_addvalue_sz.
Günther Deschner [Thu, 24 Sep 2009 09:30:45 +0000 (11:30 +0200)]
s3-registry: add regval_ctr_addvalue_sz.

Guenther

14 years agos3-registry: use push_reg_sz().
Günther Deschner [Wed, 23 Sep 2009 18:46:08 +0000 (20:46 +0200)]
s3-registry: use push_reg_sz().

Guenther

14 years agos3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.
Günther Deschner [Wed, 23 Sep 2009 18:42:20 +0000 (20:42 +0200)]
s3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.

Guenther

14 years agos3: re-run make idl_full.
Günther Deschner [Tue, 29 Sep 2009 21:33:48 +0000 (23:33 +0200)]
s3: re-run make idl_full.

Guenther

14 years agowinreg: add winreg_Data union to IDL.
Günther Deschner [Wed, 23 Sep 2009 18:41:44 +0000 (20:41 +0200)]
winreg: add winreg_Data union to IDL.

Guenther

14 years agos3: Document the "share:fake_fscaps" parameter, fix bug 6765
Volker Lendecke [Tue, 29 Sep 2009 12:34:16 +0000 (14:34 +0200)]
s3: Document the "share:fake_fscaps" parameter, fix bug 6765

14 years agos3: Remove the lua interpreter again
Volker Lendecke [Tue, 29 Sep 2009 11:11:20 +0000 (13:11 +0200)]
s3: Remove the lua interpreter again

This was meant to support async winbind. But as the hairy parts of async
winbind (getgrent) are done without it, it can go again.

14 years agopidl: added union padding for NDR64
Andrew Tridgell [Tue, 29 Sep 2009 07:47:54 +0000 (17:47 +1000)]
pidl: added union padding for NDR64

This fixes the problem with samr UserInfo16 when NDR64 is enabled

14 years agoDon't defer a talloc_move'd pointer.
Jeremy Allison [Tue, 29 Sep 2009 04:36:15 +0000 (21:36 -0700)]
Don't defer a talloc_move'd pointer.
Jeremy.

14 years agoSecond part of fix for bug #6235 - domain enumeration breaks if master browser has...
Jeremy Allison [Mon, 28 Sep 2009 18:23:30 +0000 (11:23 -0700)]
Second part of fix for bug #6235 - domain enumeration breaks if master browser has space in name.
Ensure we ask for the #20 name as we're using it as a server.
Jeremy.

14 years agos3:winbind: remove a pointless initialization
Volker Lendecke [Mon, 28 Sep 2009 17:50:24 +0000 (19:50 +0200)]
s3:winbind: remove a pointless initialization

14 years agos3:gencache: Add my copyright
Volker Lendecke [Sun, 20 Sep 2009 16:10:01 +0000 (18:10 +0200)]
s3:gencache: Add my copyright

14 years agos3:winbind: Make check_info3_in_group, sanitize its memory handling
Volker Lendecke [Sun, 27 Sep 2009 10:47:24 +0000 (12:47 +0200)]
s3:winbind: Make check_info3_in_group, sanitize its memory handling

14 years agos3:winbind: Make "check_request_flags" publically available
Volker Lendecke [Sun, 27 Sep 2009 09:51:07 +0000 (11:51 +0200)]
s3:winbind: Make "check_request_flags" publically available

14 years agos3:winbind: Sanitize the args for find_auth_domain: It only needs the flags
Volker Lendecke [Sun, 27 Sep 2009 09:49:11 +0000 (11:49 +0200)]
s3:winbind: Sanitize the args for find_auth_domain: It only needs the flags

14 years agos3:winbind: Make append_data publically available as append_auth_data
Volker Lendecke [Sun, 27 Sep 2009 09:39:38 +0000 (11:39 +0200)]
s3:winbind: Make append_data publically available as append_auth_data

14 years agos3/VERSION: Raise version up to 3.5.0.
Karolin Seeger [Mon, 28 Sep 2009 14:57:29 +0000 (16:57 +0200)]
s3/VERSION: Raise version up to 3.5.0.

Karolin

14 years agochanged debuglevel for two messages in the GPFS module from 0 to 10 they spammed...
Christian Ambach [Sun, 27 Sep 2009 21:34:04 +0000 (23:34 +0200)]
changed debuglevel for two messages in the GPFS module from 0 to 10 they spammed the logs on a test machine and they are just debug messages, so let's move them to the level of the other debug messages in the file

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
14 years agopidl: Avoid using talloc_free as function pointer, since it may be a
Jelmer Vernooij [Mon, 28 Sep 2009 13:03:17 +0000 (15:03 +0200)]
pidl: Avoid using talloc_free as function pointer, since it may be a
macro.

14 years agoMove samba-specific variable to s4 Makefile.
Jelmer Vernooij [Mon, 28 Sep 2009 10:25:13 +0000 (12:25 +0200)]
Move samba-specific variable to s4 Makefile.

14 years agomake: Use $(base_srcdirs) in 'make clean' rather than keeping a separate
Jelmer Vernooij [Mon, 28 Sep 2009 10:21:06 +0000 (12:21 +0200)]
make: Use $(base_srcdirs) in 'make clean' rather than keeping a separate
list.