samba.git
14 years agos3:configure: add support for Solaris' ld -z ignore
Björn Jacke [Tue, 20 Oct 2009 06:01:52 +0000 (08:01 +0200)]
s3:configure: add support for Solaris' ld -z ignore

try linker flags for ignoring unused libs in this order:
-Wl,--as-needed (gcc like + binutils)
-Wl,-z,ignore (gcc like + Solaris linker)
-z ignore (old Sun C)

14 years agos3: make unresolved symbols in libs throw errors
Björn Jacke [Mon, 19 Oct 2009 23:13:56 +0000 (01:13 +0200)]
s3: make unresolved symbols in libs throw errors

except for the Samba internal plugins unresolved symbol references should not
show up in shared libraries. For historical reasons it's the default behaviour
of linkers to ignore those in shared libs. We use -z defs (alias
--no-undefined) to not ignore them in shared libs.

14 years agos3: allow using different LDFLAGS for internal libs/plugins
Björn Jacke [Sun, 18 Oct 2009 20:51:06 +0000 (22:51 +0200)]
s3: allow using different LDFLAGS for internal libs/plugins

internal libs have unresolved symbols intentionally.
Thanks to Buchan Milne for suggestion and patch. This addresses #6792.

14 years agos4-dsdb: fixed empty structure error on solaris8
Andrew Tridgell [Tue, 20 Oct 2009 02:00:12 +0000 (13:00 +1100)]
s4-dsdb: fixed empty structure error on solaris8

Nadya, I'm guessing you plan on adding some real elements to this
structure later. For now I've added _dummy so the build can continue
with the Solaris C compiler.

14 years agos4-idl: don't call a variable 'stat'
Andrew Tridgell [Tue, 20 Oct 2009 01:13:15 +0000 (12:13 +1100)]
s4-idl: don't call a variable 'stat'

never call a structure member by the name of a standard C lib call. It
breaks the build on some systems.

14 years agolib-util: check for too many combinations in generate_unique_strs()
Andrew Tridgell [Tue, 20 Oct 2009 00:34:49 +0000 (11:34 +1100)]
lib-util: check for too many combinations in generate_unique_strs()

14 years agotdb: fixed the intermittent failure of tdbtorture in the build farm
Andrew Tridgell [Mon, 19 Oct 2009 23:59:40 +0000 (10:59 +1100)]
tdb: fixed the intermittent failure of tdbtorture in the build farm

There was a race condition that caused the torture.tdb to be left in a
state that needed recovery. The torture code thought that any message
from the tdb code was an error, so the "recovered" message, which is a
TDB_DEBUG_TRACE message, marked the run as being an error when it
isn't.

14 years agoutil: fixed generate_unique_strs() to be portable
Andrew Tridgell [Mon, 19 Oct 2009 11:47:45 +0000 (22:47 +1100)]
util: fixed generate_unique_strs() to be portable

'place' was going negative, and giving undefined results. The result
was duplicate names which gave errors in SMB2-DIR on PPC and other
systems.

14 years agos4:test: Fix typo.
Karolin Seeger [Mon, 19 Oct 2009 08:40:15 +0000 (10:40 +0200)]
s4:test: Fix typo.

Karolin
(cherry picked from commit b7b548411c3868bb6008d0221ac59e56fdd5aefe)

14 years agoFix typo.
Karolin Seeger [Mon, 19 Oct 2009 07:47:33 +0000 (09:47 +0200)]
Fix typo.

privilage -> privilege

Karolin
(cherry picked from commit fa08d0b44bf80f6caaeb004a0f27d8346c2820e2)

14 years agos3: Don't fail authentication when one or some group of require-membership-of is...
Bo Yang [Wed, 14 Oct 2009 22:23:48 +0000 (06:23 +0800)]
s3: Don't fail authentication when one or some group of require-membership-of is invalid.

Signed-off-by: Bo Yang <boyang@samba.org>
(cherry picked from commit 31f1a36901b5b8959dc51401c09c114829b50392)

14 years agos3:configure: fix avahi activation
Björn Jacke [Sun, 18 Oct 2009 15:01:57 +0000 (17:01 +0200)]
s3:configure: fix avahi activation

Avahi was correctly found but not activated since e4a26c942.

14 years agoFix posix_unlink test. Was doing grep without quotes around the
Jeremy Allison [Sun, 18 Oct 2009 03:47:47 +0000 (20:47 -0700)]
Fix posix_unlink test. Was doing grep without quotes around the
target string.
Jeremy.

14 years agoAdd comment explaining about symlink following & posix.
Jeremy Allison [Sat, 17 Oct 2009 01:13:06 +0000 (18:13 -0700)]
Add comment explaining about symlink following & posix.
Jeremy.

14 years agos3-netlogon: fix updating trust accout passwords with downlevel domains.
Günther Deschner [Fri, 16 Oct 2009 16:01:19 +0000 (18:01 +0200)]
s3-netlogon: fix updating trust accout passwords with downlevel domains.

When choosing the netlogon password set function, make sure to look at the
*negotiated* flags in the cli->dc state, not the ones we start the negotiation
with.

Guenther

14 years agoLast 2 VFS_STAT -> LSTAT fixes I can see in the modules code.
Jeremy Allison [Sat, 17 Oct 2009 00:20:40 +0000 (17:20 -0700)]
Last 2 VFS_STAT -> LSTAT fixes I can see in the modules code.
Jeremy.

14 years agoFix one missing STAT -> LSTAT with POSIX pathnames in vfs_xattr_tdb.c. Caught by...
Jeremy Allison [Fri, 16 Oct 2009 23:37:20 +0000 (16:37 -0700)]
Fix one missing STAT -> LSTAT with POSIX pathnames in vfs_xattr_tdb.c. Caught by the torture tester. I love unit tests :-). Jeremy.

14 years agos3: build pam_smbpass when possible
Björn Jacke [Fri, 16 Oct 2009 21:40:34 +0000 (23:40 +0200)]
s3: build pam_smbpass when possible

14 years agonsswitch: increase libwbclient version after adding wbcChangeTrustCredentials().
Günther Deschner [Fri, 16 Oct 2009 14:07:31 +0000 (16:07 +0200)]
nsswitch: increase libwbclient version after adding wbcChangeTrustCredentials().

Guenther
(cherry picked from commit 20c07674f6c0b9423c13b9876dbe4d12f86e0d72)

14 years agos4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.
Günther Deschner [Wed, 14 Oct 2009 09:58:21 +0000 (11:58 +0200)]
s4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.

Guenther
(cherry picked from commit 22276961c398da5997402f09f7443d76f621d3ec)

14 years agos3-netlogon: Fix _netr_ServerPasswordSet2 cleartext blob handling.
Günther Deschner [Fri, 16 Oct 2009 10:09:55 +0000 (12:09 +0200)]
s3-netlogon: Fix _netr_ServerPasswordSet2 cleartext blob handling.

Following Andrew's advice, let's straight md4 the plaintext blob and avoid
trying to get a paintext string out of the input the client sends.

Guenther
(cherry picked from commit 8267564e1c52b3d335bf892ab71963bfb0e6e7e8)

14 years agos4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well.
Günther Deschner [Fri, 16 Oct 2009 12:51:49 +0000 (14:51 +0200)]
s4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well.

Guenther
(cherry picked from commit c2966a0766998b732c190860879c001d6140863e)

14 years agos4-smbtorture: test wbcGuidToString and friends as well in WINBIND-WBCLIENT.
Günther Deschner [Fri, 16 Oct 2009 11:38:57 +0000 (13:38 +0200)]
s4-smbtorture: test wbcGuidToString and friends as well in WINBIND-WBCLIENT.

Guenther
(cherry picked from commit 246597cb0d8d62c702841dfbb3fa257fc2da70da)

14 years agos3-libnetapi: add nltest tool.
Günther Deschner [Wed, 14 Oct 2009 23:04:27 +0000 (01:04 +0200)]
s3-libnetapi: add nltest tool.

Guenther
(cherry picked from commit a85799d5db9e8dcbb6f12299dc5ff31485c0617f)

14 years agos3-libnetapi: add I_NetLogonControl{2} example code.
Günther Deschner [Tue, 13 Oct 2009 14:47:32 +0000 (16:47 +0200)]
s3-libnetapi: add I_NetLogonControl{2} example code.

Guenther
(cherry picked from commit ca19ffde80df80aa8a58b0ad141e712f3f60ad81)

14 years agos3-libnetapi: add I_NetLogonControl{2} to public headers.
Günther Deschner [Tue, 13 Oct 2009 14:46:54 +0000 (16:46 +0200)]
s3-libnetapi: add I_NetLogonControl{2} to public headers.

Guenther
(cherry picked from commit d308aa3de86f4d5d66d4f618fb3dd3fcf65a3992)

14 years agos3-libnetapi: fill in I_NetLogonControl{2}_r.
Günther Deschner [Tue, 13 Oct 2009 14:03:58 +0000 (16:03 +0200)]
s3-libnetapi: fill in I_NetLogonControl{2}_r.

Guenther
(cherry picked from commit e31c2c7eb1f015774ad0adb3af8110f467461878)

14 years agos3-libnetapi: add I_NetLogonControl{2} skeleton.
Günther Deschner [Tue, 13 Oct 2009 13:47:56 +0000 (15:47 +0200)]
s3-libnetapi: add I_NetLogonControl{2} skeleton.

Guenther
(cherry picked from commit e8e1d609411c37b5839e5b50b95f07691370c247)

14 years agos3-libnetapi: add I_NetLogonControl{2} to IDL.
Günther Deschner [Tue, 13 Oct 2009 13:39:27 +0000 (15:39 +0200)]
s3-libnetapi: add I_NetLogonControl{2} to IDL.

Guenther
(cherry picked from commit 8bd4378ff8ddc81710575a21ca7713195a105b52)

14 years agos3-selftest: enable WINBIND-WBCLIENT against s3.
Günther Deschner [Thu, 15 Oct 2009 23:58:49 +0000 (01:58 +0200)]
s3-selftest: enable WINBIND-WBCLIENT against s3.

Guenther
(cherry picked from commit 3f80b06d9ed9d1aabb56168ccee90d7d945de8ed)

14 years agos4-smbtorture: add very basic libwbclient testsuite.
Günther Deschner [Thu, 15 Oct 2009 22:33:38 +0000 (00:33 +0200)]
s4-smbtorture: add very basic libwbclient testsuite.

Guenther
(cherry picked from commit 612deb2699c87fc05b98290e1791493603e7b686)

14 years agos3-net: fix build warning (missing default in switch).
Günther Deschner [Thu, 15 Oct 2009 23:59:08 +0000 (01:59 +0200)]
s3-net: fix build warning (missing default in switch).

Guenther
(cherry picked from commit 8b247f35389a899c805d018adb92f372e562a378)

14 years agos3:packaging: Fix building RHEL packages.
Karolin Seeger [Fri, 16 Oct 2009 14:00:26 +0000 (16:00 +0200)]
s3:packaging: Fix building RHEL packages.

Fix bug #6721.
Thanks to Eero Volotinen <eero.volotinen@medicel.com> for providing the patch!

Karolin
(cherry picked from commit 79c2c61b99eb7c47c8bfbbb479d9d2197d1ad1fb)

14 years agos4-torture: take privileges into account in BASE-MAXIMUM_ALLOWED
Andrew Tridgell [Thu, 15 Oct 2009 23:04:26 +0000 (10:04 +1100)]
s4-torture: take privileges into account in BASE-MAXIMUM_ALLOWED

The correct answer depends on the users privileges.

14 years agoidl: added bit definition for privilege masks
Andrew Tridgell [Thu, 15 Oct 2009 23:01:28 +0000 (10:01 +1100)]
idl: added bit definition for privilege masks

When you have backup or restore privileges, you automatically get
extra access bits in ACL interpretation. This adds definitions for the
bits you get.

14 years agoFix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind
Jeremy Allison [Thu, 15 Oct 2009 23:55:40 +0000 (16:55 -0700)]
Fix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind
Jeremy.

14 years agos3: fixed krb5 build problem on ubuntu karmic
Andrew Tridgell [Thu, 15 Oct 2009 23:40:50 +0000 (10:40 +1100)]
s3: fixed krb5 build problem on ubuntu karmic

Karmic has MIT krb5 1.7-beta3, which has the symbol
krb5_auth_con_set_req_cksumtype but no prototype for it.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531635

14 years agos3-spnego: fix memleak in spnego_parse_auth().
Günther Deschner [Thu, 15 Oct 2009 13:45:20 +0000 (15:45 +0200)]
s3-spnego: fix memleak in spnego_parse_auth().

Guenther
(cherry picked from commit ef194bc692d4bb5fddc2c437ce66aa32080ca2dc)

14 years agos3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.
Günther Deschner [Thu, 15 Oct 2009 12:13:26 +0000 (14:13 +0200)]
s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.

When parsing a SPNEGO session setup retry (falling back from KRB5 to NTLMSSP),
we failed to parse the ASN1_ENUMERATED negResult in the negTokenTarg, thus
failing spnego_parse_auth() completely.

By just using the shared spnego/asn1 code, we get the parsing the correct way.

Guenther
(cherry picked from commit 449ab398f58c6e0041621752322ebe24e6d70225)

14 years agos3-build: we need to have talloc 2.0.1 when building with external talloc.
Günther Deschner [Wed, 14 Oct 2009 15:42:19 +0000 (17:42 +0200)]
s3-build: we need to have talloc 2.0.1 when building with external talloc.

2.0.0 did not got the exports right.
This and the 2.0.1 talloc fixes resolve bug #6808.

Guenther
(cherry picked from commit 67b544ba968d08cd861fc2d6d5b8a0881880b0aa)

14 years agos3-passdb: missed two prototypes while moving to enum netr_SchannelType.
Günther Deschner [Wed, 14 Oct 2009 09:48:59 +0000 (11:48 +0200)]
s3-passdb: missed two prototypes while moving to enum netr_SchannelType.

Guenther
(cherry picked from commit 075303560f545e59128a1bb16d6128a165830288)

14 years agos3/docs: Add missing meta data to man ldbrename.
Karolin Seeger [Thu, 15 Oct 2009 10:27:24 +0000 (12:27 +0200)]
s3/docs: Add missing meta data to man ldbrename.

Avoid warnings.

Karolin
(cherry picked from commit 6a9e88e08bfa4463ce5bdc57183f6518b524c98c)

14 years agoFix the build, missing ->.
Jeremy Allison [Wed, 14 Oct 2009 19:36:02 +0000 (12:36 -0700)]
Fix the build, missing ->.
Jeremy.

14 years agoFinal part of fix for bug 6793 - winbindd crash with "INTERNAL ERROR: Signal 6"
Jeremy Allison [Wed, 14 Oct 2009 18:11:26 +0000 (11:11 -0700)]
Final part of fix for bug 6793 - winbindd crash with "INTERNAL ERROR: Signal 6"
Don't use mapped_user uninitialized.
Jeremy.

14 years agos3:winbind: Fix a double-free
Volker Lendecke [Tue, 13 Oct 2009 18:56:28 +0000 (20:56 +0200)]
s3:winbind: Fix a double-free

Part of a fix for bug #6793.

14 years agos3:winbind: Fix bug 6793 -- segfault in winbindd_pam_auth
Volker Lendecke [Wed, 14 Oct 2009 18:14:57 +0000 (11:14 -0700)]
s3:winbind: Fix bug 6793 -- segfault in winbindd_pam_auth

14 years agos3: Fix reference to freed memory in pam_winbind.
Bo Yang [Wed, 14 Oct 2009 20:31:26 +0000 (04:31 +0800)]
s3: Fix reference to freed memory in pam_winbind.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3:torture: Add a notify-bench test
Volker Lendecke [Mon, 12 Oct 2009 15:29:45 +0000 (17:29 +0200)]
s3:torture: Add a notify-bench test

This is a test that creates and deletes files in a directory as fast as the
network allows it. At the same time, it opens a filechangenotify. This test is
done to just torture handling a single directory together with the notify
infrastructure.

14 years agos3:libsmb: Add cli_notify
Volker Lendecke [Mon, 12 Oct 2009 14:43:19 +0000 (16:43 +0200)]
s3:libsmb: Add cli_notify

14 years agos3:rpc: Fix is_known_pipename for dynamically loaded pipes
Volker Lendecke [Sat, 3 Oct 2009 13:33:12 +0000 (15:33 +0200)]
s3:rpc: Fix is_known_pipename for dynamically loaded pipes

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sun, 4 Oct 2009 14:52:08 +0000 (16:52 +0200)]
s3: Fix some nonempty blank lines

14 years agos3:net: Fix a segfault in "net rpc trustdom list" for overlong domain names
Volker Lendecke [Tue, 13 Oct 2009 13:56:00 +0000 (15:56 +0200)]
s3:net: Fix a segfault in "net rpc trustdom list" for overlong domain names

That was a complicated way to say "%-20.s"... But that code was from 2002 ...

14 years agoRemove use of "int ret" when we already have errcode.
Jeremy Allison [Tue, 13 Oct 2009 20:28:57 +0000 (13:28 -0700)]
Remove use of "int ret" when we already have errcode.
Jeremy.

14 years agoCatch one more erroneous use of errno.
Jeremy Allison [Tue, 13 Oct 2009 20:03:39 +0000 (13:03 -0700)]
Catch one more erroneous use of errno.
Jeremy.

14 years agocorrectly handle aio_error() and errno
Olaf Flebbe [Tue, 13 Oct 2009 13:48:19 +0000 (15:48 +0200)]
correctly handle aio_error() and errno

14 years agos3: Fix vfs_shadow_copy2 to allow in-path @GMT-xxx
Andrew Tridgell [Wed, 16 Sep 2009 01:22:56 +0000 (03:22 +0200)]
s3: Fix vfs_shadow_copy2 to allow in-path @GMT-xxx

14 years agos3-winbindd: add wbint_ChangeMachineAccount implementation.
Günther Deschner [Tue, 6 Oct 2009 16:26:33 +0000 (18:26 +0200)]
s3-winbindd: add wbint_ChangeMachineAccount implementation.

Guenther
(cherry picked from commit a3306e352dad74c3c6ce441610defc472d570f4f)

14 years agodocs: document wbinfo -c.
Günther Deschner [Tue, 6 Oct 2009 16:20:23 +0000 (18:20 +0200)]
docs: document wbinfo -c.

Guenther
(cherry picked from commit 0c37c23869fe8000609c91be3d44ba269ff38f3b)

14 years agonsswitch: add wbinfo -c (change trust account passwords).
Günther Deschner [Tue, 6 Oct 2009 16:18:00 +0000 (18:18 +0200)]
nsswitch: add wbinfo -c (change trust account passwords).

Guenther
(cherry picked from commit 0a468fbe36e6049f8d7f971c1aa111e1573a406c)

14 years agolibwbclient: add wbcChangeTrustCredentials.
Günther Deschner [Tue, 6 Oct 2009 16:15:08 +0000 (18:15 +0200)]
libwbclient: add wbcChangeTrustCredentials.

Guenther
(cherry picked from commit 74948c979ab19f20c7e5824aee50828e9bda0e35)

14 years agodocs: document wbinfo -t --domain DOMAIN behavior.
Günther Deschner [Tue, 13 Oct 2009 10:24:57 +0000 (12:24 +0200)]
docs: document wbinfo -t --domain DOMAIN behavior.

Guenther
(cherry picked from commit f394b5bc683d55be066f8565f99d157d9848e169)

14 years agonetlogon: add NL_PASSWORD_VERSION to IDL.
Günther Deschner [Wed, 7 Oct 2009 22:34:53 +0000 (00:34 +0200)]
netlogon: add NL_PASSWORD_VERSION to IDL.

Guenther
(cherry picked from commit c2be185793d66709b0b2ddb92845f4dfd0ab27b6)

14 years agos3: use enum netr_SchannelType all over the place.
Günther Deschner [Tue, 13 Oct 2009 08:15:34 +0000 (10:15 +0200)]
s3: use enum netr_SchannelType all over the place.

Guenther
(cherry picked from commit ebe0e64ba9815b238cccf7d24821bc473d245707)

14 years agos3-netlogon: allow to change any type of trust account password in trust_pw_find_chan...
Günther Deschner [Wed, 7 Oct 2009 22:39:40 +0000 (00:39 +0200)]
s3-netlogon: allow to change any type of trust account password in trust_pw_find_change_and_store_it().

Guenther
(cherry picked from commit aa8c142b5e1d126b9a5a8e4a6638bc785292fbc2)

14 years agos3-netlogon: pass down account name to remote password set functions.
Günther Deschner [Wed, 7 Oct 2009 22:34:05 +0000 (00:34 +0200)]
s3-netlogon: pass down account name to remote password set functions.

Guenther
(cherry picked from commit 4a1b50afd567313cc25d5bbc14e01e170aa62a00)

14 years agos3-docs: remove xml artefact from net.8.xml.
Günther Deschner [Mon, 12 Oct 2009 12:28:53 +0000 (14:28 +0200)]
s3-docs: remove xml artefact from net.8.xml.

Guenther
(cherry picked from commit 5eb14b2994b4508156c0760cc4adf4db70eee9cc)

14 years agos3/loadparm: Fix severe HPUX compiler issue.
Olaf Flebbe [Tue, 13 Oct 2009 12:13:06 +0000 (14:13 +0200)]
s3/loadparm: Fix severe HPUX compiler issue.

Members of struct should be initialized explictly.
Fixes bug #6804.
(cherry picked from commit 5ec557d9f6137dc96b2c099fb13726e6552fb1fe)

14 years agotorture: fixed socket leak in BENCH-TCON test
Andrew Tridgell [Mon, 12 Oct 2009 05:11:53 +0000 (16:11 +1100)]
torture: fixed socket leak in BENCH-TCON test

The BENCH-TCON test was leaving the socket open. A smbclie_tdis()
closes the tree connection, but does not close the socket.

This caused the build farm to run out of file descriptors

14 years agoѕ3: fix domain trust documentation confusion
Björn Jacke [Mon, 12 Oct 2009 20:37:34 +0000 (22:37 +0200)]
ѕ3: fix domain trust documentation confusion

fix some trusted/trusting mixups, make documentation more precise
and man page more verbose.

14 years agoWHATSNEW: Update changes.
Karolin Seeger [Mon, 12 Oct 2009 11:01:48 +0000 (13:01 +0200)]
WHATSNEW: Update changes.

Karolin

14 years agos3/proto.h: Add lp_ldap_ref_follow prototype.
Karolin Seeger [Mon, 12 Oct 2009 10:52:29 +0000 (12:52 +0200)]
s3/proto.h: Add lp_ldap_ref_follow prototype.

Fix build of smbldap.

Karolin
(cherry picked from commit 8def289c8e19fc516ddcf67a117a8e8250baf1c2)

14 years agos3/smbldap: add option to disable following LDAP refs
Jan Engelhardt [Mon, 12 Oct 2009 09:34:58 +0000 (11:34 +0200)]
s3/smbldap: add option to disable following LDAP refs

Fix bug #6717.
(cherry picked from commit c5d5969e24913ea544590dd16378f7e071b07c4b)

14 years agoFix builds with external tdb
Simo Sorce [Sun, 11 Oct 2009 13:42:59 +0000 (09:42 -0400)]
Fix builds with external tdb

Make sure we do not reference our internal tdb directly.
Let configure define what tdb.h file to use so that builds that use an
extrenal tdb do not include 2 different versions of the tdb header.

14 years agoUse the method used by build_env.sh to discover the user name.
Matt Kraai [Thu, 17 Sep 2009 14:07:42 +0000 (07:07 -0700)]
Use the method used by build_env.sh to discover the user name.

so try USERNAME, then LOGNAME, then whoami, then id -un to find out who we
are.

14 years agos3: Fix a memleak reported by dmarkey
Volker Lendecke [Fri, 9 Oct 2009 20:58:14 +0000 (22:58 +0200)]
s3: Fix a memleak reported by dmarkey

14 years agoFix builds with external talloc
Simo Sorce [Fri, 9 Oct 2009 17:14:08 +0000 (13:14 -0400)]
Fix builds with external talloc

Make sure we do not reference our internal talloc directly.
Let configure define what talloc.h file to use so that builds that use an
extrenal talloc do not include 2 different versions of the talloc header.

14 years agoWHATSNEW: Update WHATSNEW.
Karolin Seeger [Fri, 9 Oct 2009 07:22:02 +0000 (09:22 +0200)]
WHATSNEW: Update WHATSNEW.

Karolin

14 years agos4/torture: Add server target of OneFS
Steven Danneman [Sat, 3 Oct 2009 00:02:20 +0000 (17:02 -0700)]
s4/torture: Add server target of OneFS

I've added a "--target=onefs" which lists expected deviation in the
OneFS SMB server implementation compared to a Windows machine.

I've added this in a generic way using a list of module specific
parameters.  This list currently only contains the absence of
SACL support but will be added to as additional server differences
are defined.

I'd liked to use this abstraction for defining the differences between
a WinXP and Win7 server as well.

14 years agos4/torture: Add SMB sharemode/access mask tests
Aravind Srinivasan [Tue, 6 Oct 2009 23:57:34 +0000 (16:57 -0700)]
s4/torture: Add SMB sharemode/access mask tests

Test several thousand permutations of create mask and sharemodes on file
and directory opens.

These tests use a checked-in results table derived from a WinXP server to
verify correct server behavior.

CREATEX_ACCESS
CREATEX_SHAREMODES_FILE
CREATEX_SHAREMODES_DIR
MAXIMUM_ALLOWED

14 years agos4/torture: change comments to torture_failures
Aravind Srinivasan [Tue, 6 Oct 2009 23:43:43 +0000 (16:43 -0700)]
s4/torture: change comments to torture_failures

This allows the frameworks that wrap smbtorture to detect errors
better.

14 years agos3-winbindd: NDR_WBINT_CHECKMACHINEACCOUNT should not be cacheable.
Günther Deschner [Thu, 8 Oct 2009 08:35:02 +0000 (10:35 +0200)]
s3-winbindd: NDR_WBINT_CHECKMACHINEACCOUNT should not be cacheable.

Guenther
(cherry picked from commit efaa98e82438688ca178dc7d0622965933abc95c)

14 years agos3-winbindd: libwbclient: implement secure channel verification for specific domains...
Günther Deschner [Tue, 6 Oct 2009 15:46:25 +0000 (17:46 +0200)]
s3-winbindd: libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().

Guenther
(cherry picked from commit 3c3725a340ffe20ab679cf2f9d41ccd0b51b4b3a)

14 years agowbinfo: allow to check trusts via "wbinfo -t --domain DOMAINNAME".
Günther Deschner [Wed, 7 Oct 2009 08:43:53 +0000 (10:43 +0200)]
wbinfo: allow to check trusts via "wbinfo -t --domain DOMAINNAME".

Guenther
(cherry picked from commit 7b3501200c55d7844c4d697456dbfa2b86cfdcc8)

14 years agolibwbclient: implement secure channel verification for specific domains in wbcCheckTr...
Günther Deschner [Tue, 6 Oct 2009 15:45:24 +0000 (17:45 +0200)]
libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().

Guenther
(cherry picked from commit 2df47b0a54ad0a973b81911ee507ab50555b24a6)

14 years agos3-netlogon: pure cosmetic indent fixes in _netr_LogonControl2Ex().
Günther Deschner [Tue, 6 Oct 2009 15:50:15 +0000 (17:50 +0200)]
s3-netlogon: pure cosmetic indent fixes in _netr_LogonControl2Ex().

Guenther
(cherry picked from commit 3d3134a7d6a4d49b891a446f6cc7b38fd953739a)

14 years agos3: make linking of libwbclient --as-needed safe
Björn Jacke [Thu, 8 Oct 2009 22:21:34 +0000 (00:21 +0200)]
s3: make linking of libwbclient --as-needed safe

Partly fixes #6791. Thanks to Buchan Milne!

14 years agos3:Makefile: another attempt to fix the wbclient dependency
Björn Jacke [Sat, 3 Oct 2009 23:40:34 +0000 (01:40 +0200)]
s3:Makefile: another attempt to fix the wbclient dependency

in the dependencies we always used a variable that was not jet defined.

14 years agos3:Makefile: another attempt to fix the netapi dependency
Björn Jacke [Sat, 3 Oct 2009 23:33:12 +0000 (01:33 +0200)]
s3:Makefile: another attempt to fix the netapi dependency

in the dependencies we always used a variable that was not jet defined.

14 years agos3:Makefile: another attempt to fix the tdb dependency
Björn Jacke [Sat, 3 Oct 2009 23:30:43 +0000 (01:30 +0200)]
s3:Makefile: another attempt to fix the tdb dependency

in the dependencies we always used a variable that was not jet defined.

14 years agos3:Makefile: another attempt to fix the talloc dependency
Björn Jacke [Sat, 3 Oct 2009 23:20:38 +0000 (01:20 +0200)]
s3:Makefile: another attempt to fix the talloc dependency

in the dependencies we always used a variable that was not jet defined.

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.

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.

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.

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.

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.

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.

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.

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.

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

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.