Karolin Seeger [Thu, 26 Nov 2009 13:16:00 +0000 (14:16 +0100)]
VERSION: Set version to 3.5.0pre1.
Karolin
Karolin Seeger [Thu, 26 Nov 2009 13:11:09 +0000 (14:11 +0100)]
WHATSNEW: Prepare 3.5.0pre1 release notes.
Karolin
(cherry picked from commit
c5604437a857b7ac0c09d94dc6550180f68121ba)
Stefan Metzmacher [Wed, 25 Nov 2009 13:42:24 +0000 (14:42 +0100)]
librpc: rerun "make idl"
metze
(cherry picked from commit
49553d066ba346b28286b72f54e5ee8739cbcef2)
(cherry picked from commit
f275c437b170f3d11a183306b77f8755bda6e688)
Stefan Metzmacher [Wed, 25 Nov 2009 13:31:34 +0000 (14:31 +0100)]
pidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and ')'
foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.
metze
(cherry picked from commit
a20e095b1fffb6d690609c924d03cafedbbce8f3)
(cherry picked from commit
941aa3f8fc43c1720e1b59d1dbcec290eae1abc6)
Stefan Metzmacher [Wed, 25 Nov 2009 13:21:32 +0000 (14:21 +0100)]
pidl:NDR/Parser: $size can be 'foo / 2' so we need to add '(' and ')'
foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.
metze
(cherry picked from commit
ab1c92950f3cfdc8c52b772ecef23a5477f48f9d)
(cherry picked from commit
e58955fd4ca1500e58045417711b469a485419af)
Karolin Seeger [Thu, 26 Nov 2009 10:18:39 +0000 (11:18 +0100)]
create-tarball: Make it more comfortable to use the --copy-docs option.
Now you can directly specify the 'make release' output dir without any
modifications.
Karolin
(cherry picked from commit
77e2d2f1d29b69699f4539abfce7b2f32db843e4)
(cherry picked from commit
62df932f9dc333f69bf901fe88bfac6fc4e59bcd)
Jeremy Allison [Wed, 25 Nov 2009 22:47:36 +0000 (14:47 -0800)]
Fix warnings with talloc_asprintf.
Jeremy.
(cherry picked from commit
c5b234c9cde079aa45ed93c42b5ed5e66ac969a3)
(cherry picked from commit
ebd6a9fb8fd510a7998867c6ea19b0b690f1a402)
Jeremy Allison [Wed, 25 Nov 2009 21:17:56 +0000 (13:17 -0800)]
Make us pass RAW-CHKPATH with a case sensitive share.
I know Volker will look at this closely so here's the explaination :-).
Originally on a case-sensitive share we simply did a stat (or lstat)
call and returned success of fail based on the result. However this
failed to take account of incoming paths with a wildcard (which must
always fail, and with different error messages depending on whether
the wildcard is the last component or in the path). Also it failed
to take account of a stat fail with ENOENT due to a missing component
of the path as the last component (which is ok as it could be a new
file) or if the ENOENT was due to the missing component within
the path (not the last component) - which must return the correct
error. What this means is that with "case sensitive = yes" we do
one more talloc call (to get the parent directory) and one more
stat call (on the parent directory) in the case where the stat
call fails. I think this is an acceptable overhead to enable
case sensitive shares to return the correct error messages for
applications. Volker please examine carefully :-).
Jeremy.
(cherry picked from commit
c96d487ae3c65c17b377bb316adac4b5775448f3)
(cherry picked from commit
00478458b56a0eea52e08605f9f1746abe22109f)
Jeremy Allison [Wed, 25 Nov 2009 21:17:38 +0000 (13:17 -0800)]
Add RAW-CHKPATH test with case-sensitive share.
Jeremy.
(cherry picked from commit
108da2adaf77c152fd292bbdf5645923659a7c2c)
(cherry picked from commit
d99584e5cd2edd382236f1b083e7274428dfe3ac)
Günther Deschner [Wed, 25 Nov 2009 20:34:55 +0000 (21:34 +0100)]
s3-registry: fix REG_MULTI_SZ handling in registry_push_value.
Catched by smbconftort test on the buildfarm.
Guenther
(cherry picked from commit
95108f1c60aaa0407aa4eb8c9a567e90302253c6)
(cherry picked from commit
27522fa94ce11a549dee6d498e58df14355bc950)
Günther Deschner [Wed, 25 Nov 2009 20:33:48 +0000 (21:33 +0100)]
s3-kerberos: add check for prerequisite krb5/krb5.h header while checking for krb5/locate_plugin.h.
(Needed for new Heimdal versions).
Guenther
(cherry picked from commit
c438b2b3923db66672ec82e795eef543de5fcb8a)
(cherry picked from commit
77cafe2cd7e1a7e51f074ebeb7e676b779ff2155)
Günther Deschner [Wed, 25 Nov 2009 14:21:54 +0000 (15:21 +0100)]
nsswitch: fix compile of winbind_krb5_locator with recent Heimdal versions.
Guenther
(cherry picked from commit
51864219cc12ceb66c281355f3e1191d5e32842d)
(cherry picked from commit
df71a31140d2a63eeb22d2dace45f6b73abde0be)
Günther Deschner [Wed, 25 Nov 2009 14:06:19 +0000 (15:06 +0100)]
cifs.upcall: 2nd part of fix for Bug #6868: support building with Heimdal we well as with MIT.
Guenther
(cherry picked from commit
660ee2e74523194e5f6b2b6428d76628beb74717)
(cherry picked from commit
9e2f7070cf0eaf74297d565892edf5089756b124)
Günther Deschner [Mon, 23 Nov 2009 14:31:58 +0000 (15:31 +0100)]
s3-spoolss: re-arrange driver info level fillup functions.
Guenther
(cherry picked from commit
e92470d4427bda74537c4ecf79a7e888a1e16963)
(cherry picked from commit
68fcb8119bec2d4613c7d0af8cef2012671b484b)
Günther Deschner [Tue, 24 Nov 2009 14:22:04 +0000 (15:22 +0100)]
s3-spoolss: fixes for _spoolss_EnumPrinterKey client and server.
Thanks Metze for review!
Guenther
(cherry picked from commit
846aa18648f3b34ab5cbc4dc4ba334bbedeab2f4)
(cherry picked from commit
87969b9f9953adaace28240d10d20b17997304ed)
Günther Deschner [Tue, 24 Nov 2009 14:26:32 +0000 (15:26 +0100)]
s3-registry: use push_reg_multi_sz() in registry_push_value().
Guenther
(cherry picked from commit
2707dfb441801e753c74657f20b5ca22a274778f)
(cherry picked from commit
78687dcf5d6b1d66f14c62674a313d7aef825756)
Günther Deschner [Tue, 24 Nov 2009 14:26:08 +0000 (15:26 +0100)]
s3-registry: remove reg_pull_multi_sz().
Guenther
(cherry picked from commit
d4e06596d50e008425b9d346c3814a03eea8309a)
(cherry picked from commit
bec0149124b6d4a0d63c00c9094387ee5b89a031)
Jeremy Allison [Wed, 25 Nov 2009 18:20:38 +0000 (10:20 -0800)]
Fix bug 6892 - When a chown operation is issued via Windows Explorer, all ACLS are wiped out.
Merges existing DACLs when a ACL set operation comes in with only owner or group values set.
Jeremy.
(cherry picked from commit
7ed6f9f0960885366800b1ca2ce9558414b62d54)
(cherry picked from commit
db4fd2b1d351be42978c48c2f5cfc61ee50ecebc)
Jeremy Allison [Wed, 25 Nov 2009 17:58:45 +0000 (09:58 -0800)]
Fix crash due to uninitialized pointer (not a problem in 3.4.x or below).
Jeremy.
(cherry picked from commit
947c47f2819ff30d3c69bfbeb4b1932467b36cce)
(cherry picked from commit
6a13107da7b1563b3bdccd66c2d7c369db7c2bb4)
Jeremy Allison [Wed, 25 Nov 2009 00:40:08 +0000 (16:40 -0800)]
Remove call into reduce_name if case sensitive. This allows us to pass
RAW-CHKPATH when case sensitive = yes, but isn't the correct way to do
it. I'm testing a larger patch to smbd/filename.c that should fix this
correctly, and will add a torture test to ensure RAW-CHKPATH is run against
a case sensitive share once this is done.
Jeremy.
(cherry picked from commit
1ad23832cfafd46f83ac406006ff175900b81d00)
(cherry picked from commit
bec9ed47c8f543d44cdc0f4bb8302356ca5dc969)
Jeremy Allison [Tue, 24 Nov 2009 22:05:56 +0000 (14:05 -0800)]
Allow us to pass RAW-CHKPATH with FILE_FLAG_POSIX_SEMANTICS set or with
wide links = no.
Jeremy.
(cherry picked from commit
b2dd546f01425ff17008d3b0b0c36f754e6f3eec)
(cherry picked from commit
ecae8be35c745d769ae727505d62fa8c5e57dca4)
Jeremy Allison [Tue, 24 Nov 2009 21:02:34 +0000 (13:02 -0800)]
Fix make test. Only do POSIX case conversion if FILE_FLAG_POSIX_SEMANTICS set. Doh !
Jeremy.
(cherry picked from commit
187ef6b482273244d3b5b716881ab7b5d328cbc1)
(cherry picked from commit
b8c7631107cb87e6f9984d2e637d96ce1c0e83eb)
Volker Lendecke [Tue, 24 Nov 2009 15:51:30 +0000 (16:51 +0100)]
s3: Always try SamLogonEx
Required for cluster systems working in a Samba domain. With NT4 this won't
work, but real NT4 DCs should not be around in environments that pay big bucks
for a cluster... And if they are, they can always install a Samba DC trusting
that NT4 domain.
(cherry picked from commit
4c0bfcb1c8b5d276b7dcd305a2b4d197a8c94e1f)
Günther Deschner [Tue, 24 Nov 2009 10:36:14 +0000 (11:36 +0100)]
docs: Fix Bug 6922: Add Registry patchfile for Win7 domain join.
Patchfile from SATOH Fumiyasu <fumiyas@osstech.co.jp>.
Thanks!
Guenther
(cherry picked from commit
95d0f0aab01fdd751841d57cebe6150cd6fdf80c)
(cherry picked from commit
698e8b4e26bd569607b6d1e73b8fb3da10281475)
Günther Deschner [Mon, 23 Nov 2009 15:54:34 +0000 (16:54 +0100)]
s3-spoolss: Fix GetPrinter level 101.
Guenther
(cherry picked from commit
a6142987ac164318f5023eaa91e4e65efada4423)
(cherry picked from commit
6405413e3aa88f6cecae5439bb59b1442fb2c5c7)
Günther Deschner [Mon, 23 Nov 2009 12:35:32 +0000 (13:35 +0100)]
s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.
Guenther
(cherry picked from commit
0bf518c3c20cc6d86e574733730a266dc7ef2496)
Günther Deschner [Mon, 23 Nov 2009 11:57:46 +0000 (12:57 +0100)]
s3-printing: remove duplicate code while cleaning up driver structs.
Guenther
(cherry picked from commit
513d6da404fb37f87e5b658198ecfd9e35985353)
(cherry picked from commit
6b873f4569ab54109fe2ad308483c9a81666c28c)
Jeremy Allison [Tue, 24 Nov 2009 05:06:54 +0000 (21:06 -0800)]
Restore NtCreateX case handling with FILE_FLAG_POSIX_SEMANTICS to the way
it worked in 3.3.x and 3.2.x. UCF_POSIX_PATHNAMES may no longer be needed,
as lp_posix_pathnames() being set isn't the same as case handling from
NtCreateX (lp_posix_pathnames() changes the STAT calls to LSTAT, not
the case semantics).
Jeremy.
(cherry picked from commit
a930e3e4e140a133cb2ab59d20bda9e04b93cd7a)
(cherry picked from commit
3de925c3b74802b1f6b9b43e3c175fa2fb332182)
Jeremy Allison [Tue, 24 Nov 2009 02:00:36 +0000 (18:00 -0800)]
Remove unused code.
Jeremy.
(cherry picked from commit
4b8859840be2aacc90a2779820e08a09c793df3b)
(cherry picked from commit
d87c26171b757c3a0471edac4fb982c3f8d0dc35)
Jeremy Allison [Mon, 23 Nov 2009 23:01:34 +0000 (15:01 -0800)]
Proper fix for #6898 - Samba duplicates file content on appending. Pointed out by Volker.Restores the pathname handling for FILE_FLAG_POSIX_SEMANTICS but still prevents the O_APPEND problems. Jeremy.
(cherry picked from commit
f8bd0559ada056722d7d5ae0286753e7c591650b)
(cherry picked from commit
45bbbb04fb9a8ff8eaa3b64c8cae42c5b8a77027)
Jeremy Allison [Mon, 23 Nov 2009 18:09:47 +0000 (10:09 -0800)]
Fix bug #6898 - Samba duplicates file content on appending
Clients using a Windows open call should not be able to set
FILE_FLAG_POSIX_SEMANTICS in an open.
Jeremy.
(cherry picked from commit
7ebe5b16416a3a09ff8840ab84079fde022a957c)
(cherry picked from commit
b0fc15e36714302cd398c4da52673fd1b4361fba)
Volker Lendecke [Mon, 23 Nov 2009 12:58:23 +0000 (13:58 +0100)]
s3-winbind: In _wbint_CheckMachineAccount, there is only one child domain ever
(cherry picked from commit
7009361f391176c8e9e3a6fac3fbf5d7dab7fcb9)
Volker Lendecke [Mon, 23 Nov 2009 10:54:19 +0000 (11:54 +0100)]
s3: Move a variable declaration to its only use
(cherry picked from commit
e6e439f0a4d6d1b9ffb9c5b055f5fecec3259795)
Günther Deschner [Wed, 18 Nov 2009 14:39:52 +0000 (15:39 +0100)]
s3-spoolss: move more defines out of nt_printing.h to spoolss.idl where they belong.
Guenther
(cherry picked from commit
800d6b7820bb949588a799f2835a3d6c07815571)
(cherry picked from commit
4eb7c5472f84edd298cd0fc8fdffa6cfd8702304)
Günther Deschner [Tue, 17 Nov 2009 11:55:45 +0000 (12:55 +0100)]
s3-printing: remove unused NT_PRINTER_DRIVER_INFO_LEVEL structs.
Guenther
(cherry picked from commit
6364c271c4daff94c641eb9e7030f3c9a7ff1ced)
(cherry picked from commit
4d640c449f74ebabb8d1d4003719a5b2735006e9)
Günther Deschner [Tue, 17 Nov 2009 11:54:02 +0000 (12:54 +0100)]
s3-printing: use spoolss types and structs while getting and deleting drivers.
Guenther
(cherry picked from commit
ec56895bdec90cc671a0d562749b3caf161dbdf8)
(cherry picked from commit
450a644e462073a371a8e465c16abf74fd0abdfe)
Günther Deschner [Mon, 16 Nov 2009 14:52:31 +0000 (15:52 +0100)]
s3-printing: use spoolss types and structs while adding drivers.
Guenther
(cherry picked from commit
68cc1166d96ac81abce78a7eb60b7b86d0eb4eda)
(cherry picked from commit
6de2a26cc1c18b08555ff42513c7f2a685feea55)
Günther Deschner [Fri, 20 Nov 2009 15:33:29 +0000 (16:33 +0100)]
s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.
Guenther
(cherry picked from commit
d66b7d80d5ae1a0bf2e3d1e6718f569726da7734)
(cherry picked from commit
9dcb99af64eca362873220d5f03d04d63cf2b0de)
Günther Deschner [Fri, 20 Nov 2009 15:34:00 +0000 (16:34 +0100)]
s3-spoolss: fix spoolss_EnumPrinterKey client and server code.
Guenther
(cherry picked from commit
d464151f3b47c675664f464b1645ca85de663655)
(cherry picked from commit
f8d0eae87453015b9fabc511a09079ea9c14b265)
Günther Deschner [Fri, 20 Nov 2009 11:57:13 +0000 (12:57 +0100)]
spoolss: fix spoolss_EnumPrinterKey IDL.
Guenther
(cherry picked from commit
366946f29b58a6efa7acbfe2a74b2ddbad4d32a2)
(cherry picked from commit
b61da25c37a715782a2edb9afddb0e9a8fdb45ee)
Günther Deschner [Fri, 20 Nov 2009 11:54:19 +0000 (12:54 +0100)]
s3-build: delete more object files for "make clean".
Guenther
(cherry picked from commit
eea5a166e766669b6945bb62c9202fb385179cd1)
(cherry picked from commit
9b1294c4111fd3d8805e9ea4147ac714de943059)
Günther Deschner [Thu, 19 Nov 2009 12:44:33 +0000 (13:44 +0100)]
s3-build: really fix build of winbind_krb5_locator.
Guenther
(cherry picked from commit
fc9f199f2619635f73e8ee7f3b5359521d63f325)
(cherry picked from commit
f9b1682cf2d55d3c255e8a69a2b04d8f0d8fd9b1)
Günther Deschner [Thu, 19 Nov 2009 12:39:24 +0000 (13:39 +0100)]
s3-build: make sure to remove libds and client object files on make clean.
Guenther
(cherry picked from commit
bf45447aaa35ee3b26fe76af3c73a77d7b10c2ac)
(cherry picked from commit
05689c61609e075b64f3a01ba1e81646fda3b9d1)
Günther Deschner [Thu, 12 Nov 2009 15:45:33 +0000 (16:45 +0100)]
s3-rpcclient: use the parsed binding string flags for auth choice.
This allows rpcclient to be called like this:
rpcclient ncacn_ip_tcp:w2k8r2[sign,seal] -U administrator%secret -c "dscracknames gd"
Guenther
(cherry picked from commit
3732798008f26052c030e8a8fc9c9404fd6f5669)
(cherry picked from commit
6f76254c31bc61805eca2f5dd8c524ac64577b1f)
Volker Lendecke [Sun, 22 Nov 2009 21:38:45 +0000 (22:38 +0100)]
s3: Fix bug 6338 -- net rpc trustdom list always display "none"
(cherry picked from commit
3fcf1a8f9c369f1181f749d2ec9f214df493e3ab)
Volker Lendecke [Sun, 15 Nov 2009 21:22:38 +0000 (22:22 +0100)]
s3: Tune if-conditions in a very hot codepath
This looks innocent, but it is visible in a netbench run. Due to boolean
short-circuiting we don't have to execute the conditions on the right-hand side
of the &&. So putting the less likely condition left gains a bit.
(cherry picked from commit
8cb66e2d2310567ff97e3198c37eb4c606ddc45c)
Volker Lendecke [Mon, 16 Nov 2009 07:54:55 +0000 (08:54 +0100)]
s3: Remove a pointless memset
We are assigning the complete structure now (we used to assign individual
fields), so this is obsolete.
(cherry picked from commit
ca5473494216ec3d85be0ed1878d373638c2a7ae)
Volker Lendecke [Mon, 16 Nov 2009 08:40:47 +0000 (09:40 +0100)]
s3: Cache brlock.tdb entries for the fast read&write strict locking code path
For a netbench run this gains around 2% user-space CPU, fetching a 100MB file
takes around 4% less.
(cherry picked from commit
d73dbd22ac40e0308213726294de0319458b4277)
Kai Blin [Wed, 18 Nov 2009 10:26:57 +0000 (11:26 +0100)]
ntlm_auth: use data_blob_talloc() to allocate session key
Thanks to Shibu Piriyath <shibunair80@ymail.com> for spotting the issue.
(cherry picked from commit
43ed7a413dec10adc8cc4ede09132441b5ba2267)
(cherry picked from commit
7301c6deef3241dd9d0a03cfcd1153a958908c19)
Jeremy Allison [Sat, 21 Nov 2009 01:23:20 +0000 (17:23 -0800)]
Fix logic bug where high bits tests was being
done on both Windows and POSIX mkdirs instead of
only on Windows mkdir (as intended). The variable
"file_attributes" had already had FILE_FLAG_POSIX_SEMANTICS
removed above in the function if it had already been set.
Jeremy.
(cherry picked from commit
54ba3f522bd26919183278643b417e9632524be9)
(cherry picked from commit
cfb84c68030d4ee584db68b9c43c147c00a01ce2)
Michael Adam [Fri, 20 Nov 2009 23:14:29 +0000 (00:14 +0100)]
s3:fix endianness bug in dbwrap_change_int32_atomic() (bug #6901)
Michael
(cherry picked from commit
2abdeca7af052372b242981ff1ab7863a8951cfd)
Michael Adam [Fri, 20 Nov 2009 23:08:38 +0000 (00:08 +0100)]
s3:fix endianness bug in dbwrap_change_uint32_atomic() (bug #6901)
Michael
(cherry picked from commit
caa2ee448efd1ebd6d2078972ed838613e7b5151)
Michael Adam [Fri, 20 Nov 2009 11:44:43 +0000 (12:44 +0100)]
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_db_init
When idmap backend is specified as
idmap backend = ldap:"ldap://server1 ldap://server2"
then currently "ldap://server1 ldap://server2" was passed to
ldap_initialize including the quotes, leading to an ldap error.
Michael
(cherry picked from commit
180c9389c65577e25d09c3879d9768f0a24baa08)
Michael Adam [Fri, 20 Nov 2009 11:38:44 +0000 (12:38 +0100)]
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_alloc_init
When idmap alloc backend is specified as
idmap alloc backend = ldap:"ldap://server1 ldap://server2"
then currently "ldap://server1 ldap://server2" was passed to
ldap_initialize including the quotes, leading to an ldap error.
Michael
(cherry picked from commit
687c3de25791dcaad58640adb85844401d166559)
Michael Adam [Mon, 16 Nov 2009 10:01:53 +0000 (11:01 +0100)]
s3:pdb_ldap: fix a comment typo
Michael
(cherry picked from commit
db7f220770c31bf1dc24244dfd949d012260cce5)
Michael Adam [Mon, 16 Nov 2009 10:37:18 +0000 (11:37 +0100)]
s3: shortcut uid_to_sid when "ldapsam:trusted = yes"
The normal uid_to_sid behaviour is to call sys_getpwuid()
to get the name for the given uid and then call the
getsampwnam passdb method for the resulting name.
In the ldapsam:trusted case we can reduce the uid_to_sid
operation to one simple search for the uidNumber attribute
and only get the sambaSID attribute from the correspoinding
LDAP object. This reduces the number of ldap roundtrips
for this operation.
Michael
(cherry picked from commit
37dcc8a400ea41fb0a0559c9922cc41ac28ad045)
Volker Lendecke [Thu, 19 Nov 2009 16:22:27 +0000 (17:22 +0100)]
s3: Avoid races to change the machine password in winbind
The machine password handler has code to deal with every node in the cluster
trying to change the machine password at the same time. However, it is not very
nice to the DC if everyone tries this simultaneously. This adds a random 0-255
second offset to our timed event. When this fires a bit later than strictly
calculated, someone else might have stepped in and have already changed it. The
timed event handler will handle this gracefully, it won't even try to do it
again.
(cherry picked from commit
25605fbd2b35b97515526d7c7708f73daa448544)
Volker Lendecke [Thu, 19 Nov 2009 16:20:47 +0000 (17:20 +0100)]
s3: Protect against flooding the DC with pwchange requests
When there is a temporary problem changing passwords we flooded the DC with
pwchange requests. This gives the DC a 60-second break to recover.
(cherry picked from commit
a7f742c754e9e658908d113a77241463d8e15d17)
Volker Lendecke [Thu, 19 Nov 2009 16:14:40 +0000 (17:14 +0100)]
s3: Re-check the timeout in machine_password_change_handler()
Someone else might have come in between and changed the password since we
created that timed request
(cherry picked from commit
e6eee6c54ec39dc9ba55e397165be9e5f08b22f4)
Volker Lendecke [Thu, 19 Nov 2009 16:11:32 +0000 (17:11 +0100)]
s3: Add some debugs to the winbind machine pwchange machinery
(cherry picked from commit
de8ff3e050405b2c384ef78c1dcb23db90d912a6)
Volker Lendecke [Thu, 19 Nov 2009 10:50:13 +0000 (11:50 +0100)]
s3: Factor timeval_string out of current_timestring()
(cherry picked from commit
9bbec24c67949ed00b24e36b8a3a16bba8c5f5c6)
Volker Lendecke [Thu, 19 Nov 2009 16:56:46 +0000 (17:56 +0100)]
s3: Do not kill the whole smb session if a machine pwchange failed
(cherry picked from commit
f488e98136b09d1bd50421ec529ca7b51d53d199)
Michael Adam [Wed, 18 Nov 2009 14:19:09 +0000 (15:19 +0100)]
s3:load_interfaces(): use function gfree_interfaces() that we have.
To reduce code duplication.
Michael
(cherry picked from commit
aea3a8f50131744f8393d0179cd04a1b97982028)
(cherry picked from commit
5caad323a212a3f046adb7e5a7d86edc819a2d3a)
Volker Lendecke [Sun, 15 Nov 2009 09:46:23 +0000 (10:46 +0100)]
s3: Replace some create_synthetic_smb_fname() calls
In very hot codepaths like the statcache copy_smb_filename and the subsequent
recursive talloc_free is noticable in the CPU load.
(cherry picked from commit
7d68566b2cac0d686119f64946416199cc0ea0dc)
Volker Lendecke [Mon, 16 Nov 2009 08:49:23 +0000 (09:49 +0100)]
s3: Do not talloc in readdir
This is a hot codepath (called from the stat cache)
(cherry picked from commit
5a80f89b39c367582419cdd2ce0ae29c691a0709)
Karolin Seeger [Wed, 18 Nov 2009 13:43:12 +0000 (14:43 +0100)]
WHATSNEW: Remove rpcclient subcommands.
Karolin
(cherry picked from commit
eb8f4d1ea12f46986b0d5e8e4c594863ac8a2419)
Karolin Seeger [Wed, 18 Nov 2009 13:21:31 +0000 (14:21 +0100)]
WHATSNEW: Start with the commit highlights.
Karolin
(cherry picked from commit
7d597bed7776970d6a14087574ab456430f4d52b)
Karolin Seeger [Wed, 18 Nov 2009 12:31:16 +0000 (13:31 +0100)]
WHATSNEW: Start with the major changes section.
Karolin
(cherry picked from commit
477b5c90ab3fb7e91dfe06b2ecb678172de375d1)
Karolin Seeger [Wed, 18 Nov 2009 12:05:24 +0000 (13:05 +0100)]
s3/docs: Add "max protocol = smb2" to man smb.conf.
Karolin
(cherry picked from commit
da8aba53d61496d0df2bd32f92030cdee0300f2f)
(cherry picked from commit
f3f14c9564b4dd6fe63f9e636307dba86be983e7)
Jeremy Allison [Wed, 18 Nov 2009 00:06:08 +0000 (16:06 -0800)]
Start removing SMB_STRUCT_STAT variables except for
the directory enumeration code (which needs it).
Jeremy.
(cherry picked from commit
7407b526e3214287a8f42073044e2ebab058198a)
(cherry picked from commit
9b68da39ea46a7f8442155eed55b2789aa25b2ed)
Jeremy Allison [Tue, 17 Nov 2009 22:55:02 +0000 (14:55 -0800)]
Remove "store create time" code, cause create time to be stored
in the "user.DOSATTRIB" EA. From the docs:
In Samba 3.5.0 and above the "user.DOSATTRIB" extended attribute has been extended to store
the create time for a file as well as the DOS attributes. This is done in a backwards compatible
way so files created by Samba 3.5.0 and above can still have the DOS attribute read from this
extended attribute by earlier versions of Samba, but they will not be able to read the create
time stored there. Storing the create time separately from the normal filesystem meta-data
allows Samba to faithfully reproduce NTFS semantics on top of a POSIX filesystem.
Passes make test but will need more testing.
Jeremy.
(cherry picked from commit
a770caed0ff66ddc2d63ac83d20f4cd7fcc2caf5)
(cherry picked from commit
d3b5eaa83a48388c49cc18ac094093609ed79762)
Jeremy Allison [Mon, 16 Nov 2009 22:55:21 +0000 (14:55 -0800)]
Don't overwrite a dynamic pointer with the address of a stack
variable.
Jeremy.
(cherry picked from commit
a2a8dc515cca833c442cc3bb4cf90682e8ba147d)
(cherry picked from commit
66a4681a7817537611df5a800d187d4dee3a9855)
Volker Lendecke [Sat, 14 Nov 2009 16:23:08 +0000 (17:23 +0100)]
s3: Fix a memleak in sys_popen
Found with "dfree command" set
(cherry picked from commit
375a8798131c55f1b65d6feef810513ed384dbf2)
Michael Adam [Sat, 14 Nov 2009 00:23:05 +0000 (01:23 +0100)]
s3:fix a comment typo
Michael
(cherry picked from commit
160787dde879148d9c6018ba0f9ca5eee527537f)
Michael Adam [Sat, 14 Nov 2009 00:21:42 +0000 (01:21 +0100)]
s3:is_trusted_domain: shortcut if domain name == global_sam_name
A domain can't have a trust with itself.
This saves some roundtrips to the ldap server for ldapsam.
Michael
(cherry picked from commit
dc3a90cf21813526854c12db126d08ebf32f8ae5)
Michael Adam [Sat, 14 Nov 2009 00:12:22 +0000 (01:12 +0100)]
s3:is_trusted_domain: shortcut if domain name is NULL or empty
This saves some roundtrips to LDAP in an ldapsm setup.
Michael
(cherry picked from commit
0aa5a60d3033fddd652eb4ea89abdf97db912df3)
Michael Adam [Sat, 14 Nov 2009 00:07:34 +0000 (01:07 +0100)]
s3:passdb: bump interface VERSION 18->19 (removed uid_to_rid)
Michael
(cherry picked from commit
5f5fac8780bdd4a39ae316eb10ebe63513b37ace)
Michael Adam [Sat, 14 Nov 2009 00:06:35 +0000 (01:06 +0100)]
s3:passdb: remove the uid_to_rid method - we only need uid_to_sid
Michael
(cherry picked from commit
979ef8fddb4af4f5033c625343bf92c7e44c3eed)
Michael Adam [Fri, 13 Nov 2009 23:34:14 +0000 (00:34 +0100)]
s3:pdb_default_uid_to_sid: fix some debug statements.
Michael
(cherry picked from commit
b1c7882f83922bbf3e6afeb14cc76561568c3388)
Björn Jacke [Sat, 14 Nov 2009 00:52:49 +0000 (01:52 +0100)]
pam_winbind: fix a printf type mismatch warning
(cherry picked from commit
327e1377c96403e8a83b127470ae8464bf50347d)
Björn Jacke [Fri, 13 Nov 2009 22:32:04 +0000 (23:32 +0100)]
s3/pam: move variable declaration into belonging ifdef section
This fixes a unused variable 'addr' warning on some platforms
(cherry picked from commit
8549feed3f343c3280173335f240b4e7be12328f)
Volker Lendecke [Tue, 10 Nov 2009 18:49:41 +0000 (19:49 +0100)]
s3: Convert libsmb/cli_message to the async API
(cherry picked from commit
2b759339601ad853588cb74e986a7a88301aea17)
(cherry picked from commit
1ace5f961629fc02c2ff79ed2bdd86e9e988cf28)
Kamen Mazdrashki [Fri, 13 Nov 2009 01:57:48 +0000 (03:57 +0200)]
util: str_list_unique() bugfix
j is actually the index of the last element in the list
size of the list though is j+1 <- to make room for the
terminating NULL element
(cherry picked from commit
5b75201dbb9f2e6799fd5c3eee8da6230caee96c)
(cherry picked from commit
8a5c8d559e6b34544a3cc0811d269d46bcad5182)
Kamen Mazdrashki [Fri, 13 Nov 2009 01:56:07 +0000 (03:56 +0200)]
util: str_list_unique_2() test implementation
Difference with previous test for str_list_unique() is
that this test allows number of elements and number
of duplicates to be supplied on command line using
--option="list_unique:count=47"
--option="list_unique:dups=7"
(cherry picked from commit
b7839b73b10746c374ca2ed96eb152fa3a03e66a)
(cherry picked from commit
c2a511b8c95a92676fbf0895d3a6fd627662ecb8)
Christian Ambach [Mon, 6 Jul 2009 12:08:57 +0000 (14:08 +0200)]
add e2fsprogs-devel as build dependency this is needed for AD because it contains libcom/libcom_err files and headers
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
d0ac2c8a0ad59a118194102b2f6882e474f750a2)
Michael Adam [Wed, 4 Nov 2009 11:26:46 +0000 (12:26 +0100)]
packaging(RHEL-CTDB): add the current githash to the rpm release number by default
Disable this (to build a release-rpm) by calling
USE_GITHASH=no makerpms.sh
Michael
(cherry picked from commit
cfe3274345a2e29dea0d3055ed831fe4d52179e8)
Michael Adam [Thu, 20 Aug 2009 11:37:11 +0000 (13:37 +0200)]
packaging(RHEL-CTDB): enable parallel build
Michael
(cherry picked from commit
3e775a2210bba4af07965c090d565e9185984d76)
Michael Adam [Thu, 20 Aug 2009 11:33:42 +0000 (13:33 +0200)]
packaging(RHEL-CTDB): fix packaging of pam_winbind.mo file
Michael
(cherry picked from commit
7a91ead09f002926230f6e3c248b6ef586509630)
Michael Adam [Mon, 3 Aug 2009 13:30:42 +0000 (15:30 +0200)]
packaging(RHEL-CTDB): move the idmap and nss_info modules to the common package
In this layout, this is the package that contains winbindd related stuff.
Michael
(cherry picked from commit
2d4f971ff5b0f1b582370cb45aa70a53c94ab5da)
Michael Adam [Mon, 3 Aug 2009 12:32:52 +0000 (14:32 +0200)]
packaging(RHEL-CTDB): package the winbind_krb5_locator.so plugin
Michael
(cherry picked from commit
a0c65f9abb239a5a27e3082745c15e8ae19907f5)
Michael Adam [Mon, 3 Aug 2009 12:05:42 +0000 (14:05 +0200)]
packaging(RHEL-CTDB): package the manpage of the winbind_krb5_locator plugin
Michael
(cherry picked from commit
e97d6bd520b7624e09b0fb101e6842b9a91ad804)
Michael Adam [Mon, 3 Aug 2009 12:04:33 +0000 (14:04 +0200)]
packaging(RHEL-CTDB): package the manpage of "ldbrename"
Michael
(cherry picked from commit
2fa621de08364be9b3dea7cce2e4616bfe07d689)
Michael Adam [Mon, 3 Aug 2009 12:04:09 +0000 (14:04 +0200)]
packaging(RHEL-CTDB): package the manpage of "sharesec"
Michael
(cherry picked from commit
331b816a0bbe5c201edef20d2bb87ef97f9ee206)
Michael Adam [Mon, 3 Aug 2009 11:45:40 +0000 (13:45 +0200)]
packaging(RHEL-CTDB): pam_winbindd man page has moved from section 7 to 8
This due to updating the docs tarball to the 3.4 docs.
Michael
(cherry picked from commit
d70f61aa50482dd3fbd8f4f754be92a864233eac)
Michael Adam [Wed, 1 Jul 2009 09:06:34 +0000 (11:06 +0200)]
packaging(RHEL-CTDB): disable the merged build.
Michael
(cherry picked from commit
94bcef772d2a78711a345963aa1edc7037d7057d)
Michael Adam [Thu, 19 Mar 2009 23:47:45 +0000 (00:47 +0100)]
packaging(RHEL-CTDB): also pack libwbcient in winbind-32bit package
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
34be433f948e32fec3a01fe138c526671310253d)
Michael Adam [Thu, 19 Mar 2009 23:30:35 +0000 (00:30 +0100)]
packaging(RHEL-CTDB): add new pam_winbind.mo to the common package
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
0c4c24a074b7f3aebadbef93733e19312b0c4289)
Michael Adam [Thu, 19 Mar 2009 23:28:36 +0000 (00:28 +0100)]
packaging(RHEL-CTDB): add new binary sharesec to the client package.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
f8772b9beda656bc7520a9d357a2407b08e70061)
Michael Adam [Thu, 19 Mar 2009 23:26:11 +0000 (00:26 +0100)]
packaging(RHEL-CTDB): add new binary ldbrename to the common rpm
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
e364d9c522a2e2585ce8f74ffb5fad68639074f1)
Michael Adam [Mon, 29 Jun 2009 15:07:14 +0000 (17:07 +0200)]
packaging(RHEL-CTDB): fix location of nsswitch/ directory for install
This has been moved to the top level directory in 3.4.
Michael
(cherry picked from commit
5bfcde9f41a87d20490d2d94342892becf90383a)