Karolin Seeger [Mon, 19 Oct 2009 08:40:15 +0000 (10:40 +0200)]
s4:test: Fix typo.
Karolin
(cherry picked from commit
b7b548411c3868bb6008d0221ac59e56fdd5aefe)
(cherry picked from commit
1a300b7a345f962591e356335aed005a8c304711)
Karolin Seeger [Mon, 19 Oct 2009 07:47:33 +0000 (09:47 +0200)]
Fix typo.
privilage -> privilege
Karolin
(cherry picked from commit
fa08d0b44bf80f6caaeb004a0f27d8346c2820e2)
(cherry picked from commit
cf0617b40ba2affa4f2135cc44741afa71b967e3)
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)
(cherry picked from commit
5d62b2fcce7d846bf5adb4407c05d281afa6a9e9)
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.
(cherry picked from commit
355570499426ec126ea84853e0d7e1a9aa690980)
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.
(cherry picked from commit
404f744772ab68ac5a4722818d447609c33a39b7)
Jeremy Allison [Sat, 17 Oct 2009 01:13:06 +0000 (18:13 -0700)]
Add comment explaining about symlink following & posix.
Jeremy.
(cherry picked from commit
62620e9654fba8cdc7b070db205b1ca8ff3aade0)
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
(cherry picked from commit
96b6d67c381b0c6078678ed74342b6fcd0f04a6b)
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.
(cherry picked from commit
90a291f9581150d8a00fbb5e784f0b034f563d04)
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.
(cherry picked from commit
9180559b4ab26813699d3c1410b3fc1b775b0e1d)
Björn Jacke [Fri, 16 Oct 2009 21:40:34 +0000 (23:40 +0200)]
s3: build pam_smbpass when possible
(cherry picked from commit
bf684180b0bdc93438ab86b102e5883d70bcea6a)
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)
(cherry picked from commit
f2b94302ba7b30703b2edbdb5272582cff03fff9)
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)
(cherry picked from commit
823a1c4024003aa69ae7c918dfa3c0fcec12498e)
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)
(cherry picked from commit
7cebe583a305de03dd53df31de566cb3dea1c0f8)
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)
(cherry picked from commit
227558fb3bbe037b812f5cf202701f9bf28af919)
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)
(cherry picked from commit
5e295ada507a50a135759d2c70cbb8195546d2b7)
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)
(cherry picked from commit
f44ee3f5297470fd319204c1b6aef6e8398921f9)
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)
(cherry picked from commit
1b51be2a75420c1ac71e25420c9a6a950bd7ecd0)
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)
(cherry picked from commit
e3b92680b6ad378a2ae286fe446d1a0dd5a7140b)
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)
(cherry picked from commit
48678f46a0f681bf23f9d93c6c0709e377f210e9)
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)
(cherry picked from commit
3f7a17c57b67a452c337316884de3a7cd250c66a)
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)
(cherry picked from commit
4df0e57ad0c66f99c4ffae4a35a8452cd49a3907)
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)
(cherry picked from commit
8dcf3e3009073cdf45b0736671bd4ecfe0baabfd)
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)
(cherry picked from commit
27e64f5fe99ff49e2153c0046399d1c58cc36b56)
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)
(cherry picked from commit
c2281ae03020144da20e49cfd2cde09ee542cf34)
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)
(cherry picked from commit
11a6d88ea387fa50690880561f0ffffefbeb8956)
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.
(cherry picked from commit
8395c1d67e64c5fcfe51305fb7cfd86a592b128e)
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.
(cherry picked from commit
4e3ea9e0da8e2f7d99b76114da4bca46c15d188c)
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.
(cherry picked from commit
218d5880420ea7b16b30b782de27d7ff9d1083b4)
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
(cherry picked from commit
156560a00c08e4c1ab2fca7ba14329db70271553)
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)
(cherry picked from commit
aece18c5047479b77b87451f07f3e2cd304ea205)
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)
(cherry picked from commit
7936874af1ab8b2449af41f38695b2946813adf7)
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)
(cherry picked from commit
dfd22e3c5dd21b62b9509c1a9781aaa671b528b3)
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)
(cherry picked from commit
d4d2bbff2fd300d8c7001e3ee65d4c854a431ad9)
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)
(cherry picked from commit
1a25ef232bacb59aa753fbe21fed53a996d2e6b3)
Jeremy Allison [Wed, 14 Oct 2009 19:36:02 +0000 (12:36 -0700)]
Fix the build, missing ->.
Jeremy.
(cherry picked from commit
9535d43484d299f716e8f58a2b511b7abf4332da)
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.
(cherry picked from commit
4c8175c1ce2696a3834dc7a8d56e9f3a786c33a4)
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.
(cherry picked from commit
a3713a55ab5f5c75ae042a0ba1c97424bea3abf7)
Volker Lendecke [Wed, 14 Oct 2009 18:14:57 +0000 (11:14 -0700)]
s3:winbind: Fix bug 6793 -- segfault in winbindd_pam_auth
(cherry picked from commit
12cabf9ae8772bfc83b571f918bd8c74d62e1564)
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>
(cherry picked from commit
a94f0a5d8b2fa10972aef379a7137817c2ec0deb)
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.
(cherry picked from commit
23b3fade10c5ecb5678e087e9507c527c36bdc48)
Volker Lendecke [Mon, 12 Oct 2009 14:43:19 +0000 (16:43 +0200)]
s3:libsmb: Add cli_notify
(cherry picked from commit
bd40e01692ec209d13352d30fa4335c744f1d3ea)
Volker Lendecke [Sat, 3 Oct 2009 13:33:12 +0000 (15:33 +0200)]
s3:rpc: Fix is_known_pipename for dynamically loaded pipes
(cherry picked from commit
476a5df4a3434687b17e91c0d70d0fd8d0f91c4a)
Volker Lendecke [Sun, 4 Oct 2009 14:52:08 +0000 (16:52 +0200)]
s3: Fix some nonempty blank lines
(cherry picked from commit
a85ea69e9971b3c195bced474f61479c8da4616b)
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 ...
(cherry picked from commit
b3cc2f70cb672f28f9223cdd165cf505642deca6)
Jeremy Allison [Tue, 13 Oct 2009 20:28:57 +0000 (13:28 -0700)]
Remove use of "int ret" when we already have errcode.
Jeremy.
(cherry picked from commit
75b88390b481545ed1210ea498fba45901ae26e3)
Jeremy Allison [Tue, 13 Oct 2009 20:03:39 +0000 (13:03 -0700)]
Catch one more erroneous use of errno.
Jeremy.
(cherry picked from commit
4cbb0fb9f628f08a4bd1fcf08f50a4a1418fe2e7)
Olaf Flebbe [Tue, 13 Oct 2009 13:48:19 +0000 (15:48 +0200)]
correctly handle aio_error() and errno
(cherry picked from commit
e5aecfa81d0e496ba972e5fef532e4b6464ff364)
Andrew Tridgell [Wed, 16 Sep 2009 01:22:56 +0000 (03:22 +0200)]
s3: Fix vfs_shadow_copy2 to allow in-path @GMT-xxx
(cherry picked from commit
7ff4fc589ce25c48409cdf399e437262b9799223)
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)
(cherry picked from commit
ec646e5e094639f750e56bde4779ab3b0ac23e47)
Günther Deschner [Tue, 6 Oct 2009 16:20:23 +0000 (18:20 +0200)]
docs: document wbinfo -c.
Guenther
(cherry picked from commit
0c37c23869fe8000609c91be3d44ba269ff38f3b)
(cherry picked from commit
e3fa32aa37ce913d0daad6aa1b6bb81986dce4bf)
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)
(cherry picked from commit
e816b11d564df42a467c7c330f4b75db923d497e)
Günther Deschner [Tue, 6 Oct 2009 16:15:08 +0000 (18:15 +0200)]
libwbclient: add wbcChangeTrustCredentials.
Guenther
(cherry picked from commit
74948c979ab19f20c7e5824aee50828e9bda0e35)
(cherry picked from commit
507de11191b28b8d14eda43084621e731e7a82f7)
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)
(cherry picked from commit
6a7320d73a51d84cdba08e43c8b50991339de267)
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)
(cherry picked from commit
b5ab612c5f9b5afd04618b705153fbf5150382f4)
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)
(cherry picked from commit
bf8253211c478280d41e3f8afdf7a97acc9ca898)
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)
(cherry picked from commit
d1dffa6244fb7b5eb95d3bea9a585d7bd0d92484)
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)
(cherry picked from commit
488e228fc9b469c6b40a372c0f2ff0658e176c27)
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)
(cherry picked from commit
68ffe06565746c6172f68888052ce6809036dd27)
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)
(cherry picked from commit
4c7d2aa2da9935248ee772d574f5225bbb9afd5d)
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
(cherry picked from commit
f1529c3223a4b366cd4795c559eaaa8c40078470)
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.
(cherry picked from commit
b7dfa5abfd4897f983824f620e0919ad14fcf06a)
Karolin Seeger [Mon, 12 Oct 2009 11:01:48 +0000 (13:01 +0200)]
WHATSNEW: Update changes.
Karolin
(cherry picked from commit
1e2673557ed4738545c47094b375dbccf616476c)
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)
(cherry picked from commit
142faf7d4efca3f7d8f4588b943e28583db8964f)
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)
(cherry picked from commit
a50372629107d98d933bc7851c7973076b3674fe)
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.
(cherry picked from commit
dce488bc35af7ec137b657448708914edf5df706)
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.
(cherry picked from commit
2f9576801d1e14b5489cef93c677114d18ef3d83)
Volker Lendecke [Fri, 9 Oct 2009 20:58:14 +0000 (22:58 +0200)]
s3: Fix a memleak reported by dmarkey
(cherry picked from commit
1f1c293d541fc2ab6dff5932ae1c9ffc1e8b58d3)
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.
(cherry picked from commit
030fbf28fc963065853c08015c34827656c29bfd)
Karolin Seeger [Fri, 9 Oct 2009 07:22:02 +0000 (09:22 +0200)]
WHATSNEW: Update WHATSNEW.
Karolin
(cherry picked from commit
b638a210f8deacb5cbd56ce273e7efd9bb052054)
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.
(cherry picked from commit
0dc5d0bb359705c8a4b9d984c862f22d9215e70f)
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
(cherry picked from commit
c2a321299f7803a1d992e4149816a39ff607e5c2)
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.
(cherry picked from commit
8ca31430de94abc40a72eb1208478b6ecc56145e)
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)
(cherry picked from commit
4e64865f522506b5b92b7ce0f05bac7ca7de6de3)
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)
(cherry picked from commit
8716c4ae193a49ea8494e04296f6d95126c0e265)
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)
(cherry picked from commit
69ba747df1b861da70da6682e36b095ac565f83e)
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)
(cherry picked from commit
63acae34cfe65577437b75e668d22400eb47a88c)
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)
(cherry picked from commit
5ba5b5e7a1a66472505b3a3fb3d83db5180da3ee)
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!
(cherry picked from commit
abdadc23e3bb196b37327920bcdc79a137c2e9db)
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.
(cherry picked from commit
ad21e5e9076e9621b19d9fae50ae9b44e85c6628)
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.
(cherry picked from commit
3a1a181d7f2925cc9e8f867d126616a6f466a2dc)
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.
(cherry picked from commit
4adb0ac3d8f60c3b421bfce7e5946b087b55e0d9)
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.
(cherry picked from commit
33385434119f178e46c9f6496b8c2a2d4062bb05)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)