Andrew Bartlett [Wed, 18 Mar 2009 05:19:19 +0000 (16:19 +1100)]
s3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
fca02c9154796624958a877d2c92cabd65e9d0e4)
(cherry picked from commit
33eaa9accb90824ecc5c688326ba4c3c054f7e4a)
Günther Deschner [Mon, 6 Apr 2009 22:40:46 +0000 (00:40 +0200)]
s3-libads: avoid NULL talloc context with ads_get_dn().
Guenther
(cherry picked from commit
d71dec9259366e99beca69fcd9397bd38ed82c71)
(cherry picked from commit
4e32c424a00bc29e63176af9773f9ffa7aa09bc2)
Günther Deschner [Mon, 6 Apr 2009 23:12:34 +0000 (01:12 +0200)]
s3: re-run make samba3-idl.
Guenther
(cherry picked from commit
eeddbb6f8466d285fd103a3a4da9ebf5afbcb613)
(cherry picked from commit
b5f5d3afa4f19b1219d4f20fefa2785811105c0d)
Günther Deschner [Mon, 6 Apr 2009 23:11:44 +0000 (01:11 +0200)]
svcctl: Fix svcctl_ControlsAccepted bitmask.
Never ever have 0 value in a bitmask...
pidl should generate at least a warning about those things.
Guenther
(cherry picked from commit
557f38326badcd8e1d2338f76c5717e16ae7a7d3)
(cherry picked from commit
ab4e2da6cf9d8ef72aa73b2a9a18207b9986305d)
Günther Deschner [Mon, 6 Apr 2009 23:10:41 +0000 (01:10 +0200)]
s3-svcctl: Fix _svcctl_EnumServicesStatusW() crash bug on too small buffer.
Guenther
(cherry picked from commit
21b083a647997549e8188c6fc0687fdecfaa4cb3)
(cherry picked from commit
10dd219380a2a9ab609be3fb7312795d0fdaab86)
Tim Prouty [Fri, 3 Apr 2009 01:24:43 +0000 (18:24 -0700)]
s3 onefs: Simplify level 2 oplock self-contention
This removes all oplock dependence on locking.tdb
(cherry picked from commit
9d2d07503a17971a63153ecc13fdddb763e614b8)
(cherry picked from commit
f922e22d907d4a99e91f00f001c05b2b35d73a26)
Tim Prouty [Fri, 3 Apr 2009 01:33:30 +0000 (18:33 -0700)]
s3 oplocks: Refactor level II oplock contention
(cherry picked from commit
651fa0964a6c49a071c28cdb1e4891b1d95d5b09)
(cherry picked from commit
4e091804b86ae9b8318b985d39e826366681e21b)
Günther Deschner [Fri, 3 Apr 2009 19:26:14 +0000 (21:26 +0200)]
s3-samr: add support for _samr_Connect3() while planning to pass a s4 smbtorture test.
Guenther
(cherry picked from commit
12d9765177fc16f7b13e460e1d79c50c256d6fa8)
(cherry picked from commit
bd3f30d1dac3febd69c1c9266ca52dc836a92632)
Günther Deschner [Tue, 9 Dec 2008 12:25:59 +0000 (13:25 +0100)]
s3-samr: add support for setting password hashes via samr_SetUserInfo level 21.
Guenther
(cherry picked from commit
df29f49eddbfcd5c6ac9a26d688a1a3f7a087da5)
(cherry picked from commit
bca1bc1d79f9ca3ccaac61a32882b72198c527cb)
Andrew Bartlett [Wed, 18 Mar 2009 06:35:03 +0000 (17:35 +1100)]
s3:libads Make ads_get_dn() take a talloc context
Also remove ads_memfree(), which was only ever a wrapper around
SAFE_FREE, used only to free the DN from ads_get_ds().
This actually makes libgpo more consistant, as it mixed a talloc and a
malloc based string on the same element.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
20501876735fc4656083747ba8aa0de9da8fb820)
(cherry picked from commit
6673ad24d48ad44fa76497f0327b13e82721d0a1)
Andrew Bartlett [Wed, 18 Mar 2009 05:31:51 +0000 (16:31 +1100)]
s3:printing Convert nt_printer_publish_ads() to use talloc better
In particular, this removes one more user of pull_utf8_allocate()
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
89278b18195484d3ea5d25e8b19871d64d218a05)
(cherry picked from commit
0fe131b32f4d372ea70060b0ba3874fc632e2a33)
Andrew Bartlett [Wed, 18 Mar 2009 04:29:02 +0000 (15:29 +1100)]
s3:smbldap Remove smbldap_get_dn
This removes one more caller to pull_utf8_allocate()
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
9512640155f3f249e4fd5ad076375592cbd65fc6)
(cherry picked from commit
03c7459fd259ca898c5fde932c02ccdc37dcbd34)
Volker Lendecke [Sun, 5 Apr 2009 05:32:03 +0000 (07:32 +0200)]
Make some functions static to vfs_gpfs.c
(cherry picked from commit
27a6aebfed6ad7c89e72dfe0a05400b972f9aa12)
Volker Lendecke [Sun, 5 Apr 2009 05:31:47 +0000 (07:31 +0200)]
Add prototype for smbd_gpfs_get_realfilename_path
(cherry picked from commit
25d87012ae5e7a5e76f33aa3ef34d977f2f6ca8b)
Volker Lendecke [Sun, 5 Apr 2009 05:31:30 +0000 (07:31 +0200)]
Fix two c++ warnings in vfs_gpfs.c
(cherry picked from commit
c4dbc794f78900c50faec036264b5c556d6a700b)
Günther Deschner [Mon, 6 Apr 2009 10:45:46 +0000 (12:45 +0200)]
s3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.
Thanks to Jeffrey Riaboy <dakusan@castledragmire.com>.
Guenther
(cherry picked from commit
2b1fe2c98f4e0013dee4cbae62dc36cdd4085c7d)
(cherry picked from commit
9c1e347386bf1fbebaa020b60b914b2d2b24c63b)
Volker Lendecke [Sat, 28 Mar 2009 18:58:45 +0000 (19:58 +0100)]
Fix smbd crash for close_on_completion
handle_trans() can talloc_free "conn" if the client requests
close_on_completion. "state" is a talloc_child of conn, so it will be gone when
we later free state->data et al.
(cherry picked from commit
e9457c598e25ededb48b73d7dc5ab0f6295ea399)
Volker Lendecke [Thu, 12 Feb 2009 11:12:04 +0000 (12:12 +0100)]
Keep the forked-smbd stdout reader around longer
(cherry picked from commit
eae62459dc6fd0041a4f69601be5354f06022268)
Volker Lendecke [Thu, 12 Feb 2009 11:11:16 +0000 (12:11 +0100)]
Ensure 0-termination for the forked-smbd debug output
(cherry picked from commit
37d754a34709fbcc5f9adcd2e3a4e5e5862c1a7a)
Volker Lendecke [Thu, 12 Feb 2009 19:41:49 +0000 (20:41 +0100)]
Pass the current debuglevel down to the forked smbd
(cherry picked from commit
06d4fc56867810e66f73d3645aad25d528a7f751)
Volker Lendecke [Sun, 5 Apr 2009 11:26:42 +0000 (13:26 +0200)]
Use recv instead of read in read_packet_handler
This way the socket wrapper pcap file also sees the replies :-)
(cherry picked from commit
96943dd9ce1b1c954bffd498989283a500b4ee9d)
Günther Deschner [Fri, 3 Apr 2009 10:50:50 +0000 (12:50 +0200)]
s3-nsswitch: Fix Bug #6238 2nd part. zero blob pointer in wbcLogoffUserParams.
Patch from Rashid N. Achilov <citycat4@ngs.ru>.
Guenther
(cherry picked from commit
43372b27403f617897bab564c42eead4d64532e4)
(cherry picked from commit
5b8fc3858d3327056cd1ff9d2a47f6992825fcf2)
Volker Lendecke [Fri, 3 Apr 2009 08:43:13 +0000 (10:43 +0200)]
Use cluster-aware procid_is_me instead of comparing pid's
(cherry picked from commit
4996d89d19655ab6f0d4656ea72d6bad52ba7d6d)
Volker Lendecke [Fri, 3 Apr 2009 08:42:43 +0000 (10:42 +0200)]
Use procid_str in debug messages for better cluster-debuggability
(cherry picked from commit
d5bec253f7494dd74cce3acf59ddd417900e5ad3)
Günther Deschner [Fri, 3 Apr 2009 07:57:53 +0000 (09:57 +0200)]
s3-nsswitch: Fix Bug #6238. Make sure wbcLogoffUserParams are properly
initialized before freed.
Fix inspired by patch from Rashid N. Achilov <citycat4@ngs.ru>.
Guenther
(cherry picked from commit
09265bcff5a2fac42f5abf34b8b439aa0a6998a1)
(cherry picked from commit
24ff9b8dba8e4e0918b0aabf5cb8bacecfbc39d7)
Günther Deschner [Thu, 2 Apr 2009 16:48:15 +0000 (18:48 +0200)]
s3-lsa: use LSA_ROLE definitions in _lsa_QueryInfoPolicy().
Guenther
(cherry picked from commit
31ab1d6a6487fb442ccd5b2cd093b4a2b7b80291)
(cherry picked from commit
2d53463aaf679de8ca03ae71db0e9582241cc1c7)
Günther Deschner [Thu, 2 Apr 2009 16:47:51 +0000 (18:47 +0200)]
s3-lsa: don't SAFE_FREE talloced structs.
Guenther
(cherry picked from commit
168eb23252c14234d09f7038b9894edf86e0efe1)
(cherry picked from commit
6e7ad585196885900d465493398aea7f7665c94c)
Günther Deschner [Thu, 19 Mar 2009 11:30:26 +0000 (12:30 +0100)]
s3-spoolss: implement _spoolss_GetPrinterDriver2 level 101 (Bug #5140).
Guenther
(cherry picked from commit
37aff885a62cdc5c3298e6f44165f9d9a22729c5)
(cherry picked from commit
02b7eeef61e0144ef6756adffbb2f4f259c06258)
Jeremy Allison [Thu, 2 Apr 2009 03:20:19 +0000 (20:20 -0700)]
Allow pdbedit to change a user rid/sid. Based on a fix from Alexander Zagrebin <alexz@visp.ru>.
Jeremy.
(cherry picked from commit
6f7147225ab599a4085ef8eb7af6900d6b681a4e)
Tim Prouty [Thu, 2 Apr 2009 03:01:34 +0000 (03:01 +0000)]
s3 onefs: Quiet a log message about oplocks being requested on streams
(cherry picked from commit
87fe4d732d18d18ed56c99cba6a395a0bf9e9d95)
(cherry picked from commit
9258adeac95e7fca025a72ce39e2d70fa5a665cd)
Michael Adam [Wed, 1 Apr 2009 22:23:31 +0000 (00:23 +0200)]
s3:net conf: don't store share names as lower case, but as given.
Michael
(cherry picked from commit
36c1a52a57bc96c7586ca1bffbe8ef47c93bca1b)
(cherry picked from commit
dd495878d764c3836784adcd739f78ca03d27d58)
Günther Deschner [Wed, 1 Apr 2009 19:42:47 +0000 (21:42 +0200)]
s3-auth: rename static smb_create_user(). Sorry...
Guenther
(cherry picked from commit
01a942d8ab5b5e430eb928dd58626fe16b9b04fe)
(cherry picked from commit
e67f9c77ce812b40a8e003d861bff64c6c6442fd)
Günther Deschner [Wed, 1 Apr 2009 17:03:18 +0000 (19:03 +0200)]
s3-libnet-samsync: return appropriate error code in fetch_sam_entry().
Guenther
(cherry picked from commit
5cdf75e679a45dcc3dad56e54f5c9f7d7ea23200)
(cherry picked from commit
7cf7c00663a41de202d695fb1f8dab7c3906e165)
Günther Deschner [Wed, 1 Apr 2009 16:52:28 +0000 (18:52 +0200)]
s3-libnet-samsync: use smb_create_user().
Guenther
(cherry picked from commit
e18f57fd36102212a3662823c58408da01d067ed)
(cherry picked from commit
2a0f4fd1b4fa58f5cf89595e93053abc6101817d)
Günther Deschner [Wed, 1 Apr 2009 16:52:13 +0000 (18:52 +0200)]
s3-passdb: add smb_create_user().
Guenther
(cherry picked from commit
d0e1ff4aff24ef2f3b3f535ad25ad0573382e1a3)
(cherry picked from commit
44d72cfa74c103c41beea2f5651155506667811b)
Günther Deschner [Wed, 1 Apr 2009 15:56:45 +0000 (17:56 +0200)]
s3-libnet-samsync: some pure cosmetics.
Guenther
(cherry picked from commit
e4802bfcad0402fce1e942e22d5533b3c14ada80)
(cherry picked from commit
32c7e6c9e5a2a02b6972293c9d5233f4797899c8)
Günther Deschner [Wed, 1 Apr 2009 15:54:52 +0000 (17:54 +0200)]
s3-libnet-samsync: use parent talloc context for libnet_samsync_passdb.
Guenther
(cherry picked from commit
af78240cbe68282190980cd6c367a8fc2a4438a6)
(cherry picked from commit
c9bee2d4f982f677ced90ba18dc6326560139ed0)
Günther Deschner [Wed, 1 Apr 2009 14:55:53 +0000 (16:55 +0200)]
s3-libnet: only call libnet_dssync_process() startup and shutdown callbacks when filled in.
Guenther
(cherry picked from commit
264b28ec0962c355ee90f9ac67fcf07cd84c5c7b)
(cherry picked from commit
7c553eb319de84a3510d348d3f927d11253aaacf)
Michael Adam [Wed, 1 Apr 2009 00:02:10 +0000 (02:02 +0200)]
s3:build: add targets to show how libraries will be built / linked
showlibtalloc, showlibtdb, ... and one overall showlibs target.
Michael
(cherry picked from commit
1e92ddd40523f053513f9d12611e5a70c8a425f0)
(cherry picked from commit
aeedc9e0ce1843aee9c3f4fa83f5132557de3049)
Michael Adam [Tue, 31 Mar 2009 23:58:22 +0000 (01:58 +0200)]
s3:build: don't build the static libs unconditionally
Michael
(cherry picked from commit
99b486a056222d69a4865d4ee828163902de8eba)
(cherry picked from commit
d68e62f1a83e71a7dec6ce9b10b8963bc3c514b5)
Michael Adam [Tue, 31 Mar 2009 23:56:02 +0000 (01:56 +0200)]
s3:build: add LIBSMBCLIENT_LIBS and LIBSMBSHAREMODES_LIBS to Makefile
for completeness
Michael
(cherry picked from commit
b79157f602163c671a413202424652e35c973b12)
(cherry picked from commit
917d1d78980a6490f92e41f356ee5fa3a3bcdfcf)
Michael Adam [Tue, 31 Mar 2009 23:46:57 +0000 (01:46 +0200)]
s3:build: no need to set LIBFOO_STATIC to the object collection any more
now that the @LIBFOO_STATIC@ entries have vanished from the object lists.
Just use the static library.
Michael
(cherry picked from commit
15ef346f9f7c69a2012a9b41a56a6ae9ffdd7cf6)
(cherry picked from commit
d2cbec7838e73da60a43219b8192fac3cdfbb2af)
Michael Adam [Tue, 31 Mar 2009 23:37:07 +0000 (01:37 +0200)]
s3:build: rename WINBIND_LIBS -> LIBWBCLIENT_LIBS for unification
Michael
(cherry picked from commit
993c87495b80caff8ce288a29cd1ce8935224ca2)
(cherry picked from commit
2c158434576bc3921f6de737cf3332c1baf1f4da)
Michael Adam [Tue, 31 Mar 2009 23:34:01 +0000 (01:34 +0200)]
s3:build: unify linking of libwbclient with a @LIBWBCLIENT_TARGET@
just like for the libs configured with SMB_LIBRARY().
This makes @LIBWBCLIENT_STATIC@ vanish from the object collections.
Michael
(cherry picked from commit
baf39de623d39dba6fe0bfed899f9b232f9c1266)
(cherry picked from commit
f2bdfbfe7d43ec993806f4783ff089c0972e20dc)
Michael Adam [Tue, 31 Mar 2009 22:37:47 +0000 (00:37 +0200)]
s3:build: first cut at fixing linking of shared/static libs internally
This is based on a patch from the debian packages
by Steve Langasek <vorlon@debian.org>.
It removes the static libs from the object collections.
For those libs that are set up with SMB_LIBRARY().
Michael
(cherry picked from commit
f9eb77477b82740814e6143837d8a70f8090b9a5)
(cherry picked from commit
874b6dc483f681842d076f597979feeb4b288bb4)
Michael Adam [Tue, 31 Mar 2009 06:50:57 +0000 (08:50 +0200)]
s3:build: add a SHOWCFLAGS target for debugging how CFLAGS are assebled
Michael
(cherry picked from commit
9aab2631c6294ebc3e4a7ab2367e22e3d552d41b)
(cherry picked from commit
d2a09b6b1c1aa4a3a42a8a305ca6f824465d2d53)
Michael Adam [Tue, 31 Mar 2009 06:50:16 +0000 (08:50 +0200)]
s3:build: line-wrap assignment of FLAGS for readability
Michael
(cherry picked from commit
b2e8bc28a5f589b86269907ff384a9e4c1f3aaca)
(cherry picked from commit
38a7ba0d7fd17f76037117b0808c73e03f7fe02b)
Björn Jacke [Wed, 11 Mar 2009 14:44:45 +0000 (15:44 +0100)]
remove needless rpath stuff for default paths as early as possible
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
c7dba467f268d0007c58e7de4985dc5386a44c6f)
(cherry picked from commit
6a59971f5286e588c87f6d2635e7d36a2ec3aa26)
Björn Jacke [Wed, 11 Mar 2009 14:32:49 +0000 (15:32 +0100)]
clean up lib64 linking paths the same way as lib
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
066cbb5835feae90e2ce4172e3c58bf50a2b004b)
(cherry picked from commit
4cb1d0eef7155f9beaabd92d5e93d3b7974bc372)
Björn Jacke [Sun, 8 Mar 2009 11:54:04 +0000 (12:54 +0100)]
to be portable, use options first, arguments last
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
da06a345cc290ca29234bc231fc9174d2780cf4f)
(cherry picked from commit
dcff24b20290bd07f962d21b5a9b8bc7172b68d0)
Michael Adam [Mon, 23 Mar 2009 16:36:46 +0000 (17:36 +0100)]
libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGS
This fixes Samba3's double listing of -I options in CFLAGS,
since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS
into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}"
sequence... :-)
Michael
(cherry picked from commit
33d9f46674a270a0715213c17581deef192826e1)
(cherry picked from commit
cf43aadee5cd70597d5dc6750bff4486ed768204)
Jelmer Vernooij [Sat, 14 Mar 2009 22:01:57 +0000 (23:01 +0100)]
Properly strip /usr/lib and /usr/include for the merged build.
(cherry picked from commit
a3d2b77ddd9808b35300446cebca1b403ca56f78)
(cherry picked from commit
d9403162871e5d9fa8e1823139fda1a039d842c2)
Michael Adam [Mon, 23 Mar 2009 13:22:37 +0000 (14:22 +0100)]
s3:build: prevent from setting "-O -g", check for $debug first.
This makes configure actually behave as the comments describe.
The reversal of order was introduced by mistake in
90ea8ae9b1ed3b7ed1c93076517e026e629ea1aa
Michael
(cherry picked from commit
a4cc3e253852794f477ef5d836537b50111d0e42)
(cherry picked from commit
8c98c32b9184b7d67a7fef2526fe73a5afb8a34c)
Björn Jacke [Wed, 18 Mar 2009 21:19:06 +0000 (22:19 +0100)]
don't set -O twice
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
2dc8ce59b28d3a028551ac5087f31cf83d04e064)
(cherry picked from commit
34074d6baa9f667a67aae56e2294b8dabff2b07d)
Volker Lendecke [Wed, 1 Apr 2009 13:29:25 +0000 (15:29 +0200)]
Print an error if trying a merged build without a system kerberos lib
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
ffdc2a3fe8437582ded1c4a3b09a54201519889b)
(cherry picked from commit
e45edef8261f6c77de181cb896aa36987e5a36b4)
Michael Adam [Wed, 1 Apr 2009 10:23:07 +0000 (12:23 +0200)]
s3: fix the fix for bug #6195 - dont let smbd child processes panic
This patch makes sure the original and temporary TDBs are closed
_before_ the rename. Originally, the open TDB was renamed, and so
the name passdb.tdb.tmp stayed around in the db context. Hence
upon client connect, the smbd children died because reinit_after_fork()
calling tdb_reopen_all() would try to reopen passdb.tdb.tmp which
existed no longer...
Michael
(cherry picked from commit
a7bbe8d10835d813a8d528e6e70f5d944ac0f804)
Jeremy Allison [Wed, 1 Apr 2009 01:28:49 +0000 (18:28 -0700)]
Tidy up some convert_string_internal error cases, found by Andrew Bartlett.
Jeremy.
(cherry picked from commit
ee729830b872f1cb760ad91b808bf200bc34773d)
Tim Prouty [Wed, 1 Apr 2009 00:25:57 +0000 (00:25 +0000)]
s3 onefs: Add missing newlines to debug statements in the onefs module
(cherry picked from commit
74246650613cca9ec57c9a0eff75c53a5c15b110)
(cherry picked from commit
23876eba5f22b5953339b23bf25262d53acce994)
Zack Kirsch [Wed, 1 Apr 2009 00:00:40 +0000 (00:00 +0000)]
s3 onefs: Async failures are resulting in SMB_ASSERT->smb_panic while running many of the LOCK torture tests.
Return true from the onefs cancel function if we've errored, which can happen
when the CBRL domain is configured to only give out 1 lock. :)
(cherry picked from commit
bfc7bb49ff0b842a1a372cee7d2affb49c2a0e54)
(cherry picked from commit
1197d4538c716fc0fbf3625f6b8b1a2b566cffaa)
Steven Danneman [Wed, 25 Mar 2009 19:53:06 +0000 (12:53 -0700)]
Add missing newlines to debug statements
(cherry picked from commit
365b5cfcbeb041ce84718717f30ac02183c9af7f)
(cherry picked from commit
2ab9a15f4ae08155474222a857afd70bfdfc4a44)
Michael Adam [Tue, 31 Mar 2009 14:40:18 +0000 (16:40 +0200)]
s3:build: fix build of pam_winbind.so with static linking
Static talloc libs were missing since conversion to talloc.
Michael
(cherry picked from commit
848919e86ee8040aa81b8be2559283ada22cc723)
Björn Jacke [Mon, 23 Mar 2009 17:22:45 +0000 (18:22 +0100)]
s3/ldbtools: don't neddlessly link against wbinbind libs
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
9f68847576c4c5e77f042e97810be4f53574baba)
Björn Jacke [Mon, 23 Mar 2009 18:14:45 +0000 (19:14 +0100)]
s3/cifs: don't link cifs mount helpers agains popt
the mount helpers don't use any popt symbols
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
682ce450c072ad4fd8c23b9f8990f1294254f2aa)
Björn Jacke [Mon, 23 Mar 2009 18:35:53 +0000 (19:35 +0100)]
s3/pam_smbpass: don't link agains KRB5LIBS
pam_smbpass doesn't use the krb5 stuff
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
863c61de4c0a29a0cdad59fa3bebf17963ef6db2)
Michael Adam [Mon, 23 Mar 2009 16:47:26 +0000 (17:47 +0100)]
s3:build: make SHOWFLAGS target phony and add alias showflags
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
3c7f26b5e1e7f2bfd08de27e6e7772b614ef9121)
Björn Jacke [Thu, 19 Mar 2009 00:16:46 +0000 (01:16 +0100)]
remove non standard way to point to ctdb path
we can provide the path to ctdb via the --with-ctdb=... configure flag like we
do it with other packageѕ, too. There is no need for another redundnant
Makefile hack to point the ctdb header location
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
12aba91bacc9c064fa57325d1b1f50afb2eddfaa)
Jeremy Allison [Mon, 30 Mar 2009 22:05:39 +0000 (15:05 -0700)]
Ensure files starting with multiple dots are hidden
if "hide dot files" is set. Thanks to Barry Kelly <bkelly.ie@gmail.com>
for pointing this one out.
Jeremy.
(cherry picked from commit
286d6a404cca02a0d3662f6aa2ddd69d3dcbc17a)
Volker Lendecke [Sat, 28 Mar 2009 23:52:22 +0000 (00:52 +0100)]
Fix a debug msg typo
(cherry picked from commit
2d12e14ad277d28b7b8181525b16992f4cad1370)
Jeremy Allison [Sat, 28 Mar 2009 04:29:37 +0000 (21:29 -0700)]
Fix the problem of 3.0.x passdb databases being version
3 but using a different hash calculation than 3.2.x passwd
databases (also version 3). Introduces a minor version
number.
Jeremy.
(cherry picked from commit
7d3b85999c6d2521ef2f9a5aace52c9a19bf2f42)
Björn Jacke [Fri, 27 Mar 2009 09:24:18 +0000 (10:24 +0100)]
s3: ifdef sendfile code that's only used in other ifdef'ed sendfile code
This fixes a "defined but not used" compile warning.
(cherry picked from commit
1aa65f485b60a80766581e7d3f31565f340aa528)
Derrell Lipman [Fri, 27 Mar 2009 22:01:39 +0000 (18:01 -0400)]
Ensure parameter types match format string
(cherry picked from commit
63d9694d7a0198375fba3a713d6e5d3bbed7a458)
Derrell Lipman [Fri, 27 Mar 2009 21:59:09 +0000 (17:59 -0400)]
[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
Fixed.
It turns out there were a number of places where cli_resolve_path() was called
and the error path upon that function failing did not set errno. There were a
couple of places the failure handling code did set errno to ENOENT, so I made
them all consistent, although I think better errno choices for this condition
exist, e.g. EHOSTUNREACH.
Derrell
(cherry picked from commit
ebc4c0b50db16cdb11222c3d536a211bb86bcdfd)
Volker Lendecke [Fri, 27 Mar 2009 20:11:10 +0000 (21:11 +0100)]
Fix external np read after conversion to tevent_req
(cherry picked from commit
0d7a37be40d7748cb8d685af5412624678b27208)
Jeremy Allison [Fri, 27 Mar 2009 19:12:30 +0000 (12:12 -0700)]
Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly. For the clustering case.
Clustered setups should have only ever used
the unsigned version of TDB_DATA in the
first place so they can't be in this mess :-).
Just do the normal upgrade in the clustered case.
Jeremy.
(cherry picked from commit
ede0f69a97abd4f1cb7870b2da65d9198d20c7ad)
Volker Lendecke [Fri, 20 Mar 2009 15:09:17 +0000 (16:09 +0100)]
Fix the build of nfsv4_acls.c
.. after adding smb_iconv_convenience to ndr_size_security_descriptor()
(cherry picked from commit
9e70a960b78b8c2ca7c308a4ff9af9011804585c)
(cherry picked from commit
d3289c3e7df5951c1634642f026fc7873579b235)
Jeremy Allison [Thu, 26 Mar 2009 22:30:42 +0000 (15:30 -0700)]
Try and fix the build farm RAW-STREAMS errors. Ordering of
modules shouldn't matter, so as vfs_streams_depot doesn't
implement get/setxattrs then call into the full VFS stack
at the top.
Jeremy
(cherry picked from commit
5e77abe108bab07c04f5c7186b63a4c0fef59721)
Jeremy Allison [Thu, 26 Mar 2009 19:21:55 +0000 (12:21 -0700)]
Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run elections
Fix logic bug that causes nmbd to wait 5 minutes before
looking for a master browser. This one is *old* :-). Thanks
for Simo for bugging me on this.
Jeremy.
(cherry picked from commit
21c76accc3cde979844eb622d7a9bafe1d02d9be)
Stefan Metzmacher [Mon, 23 Mar 2009 10:44:00 +0000 (11:44 +0100)]
s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 too.
Otherwise we'll confuse the client signing engine, when we reply an error to each transs2.
metze
(cherry picked from commit
7716ad68a8d859ac3651c4eb559b6e45d98566db)
(cherry picked from commit
1d11417c71ebcb80851c8b77e9f3102ee9b592f8)
Volker Lendecke [Thu, 26 Mar 2009 13:54:18 +0000 (14:54 +0100)]
Fix a talloc/malloc screwup in file_lines_pload
Another bug due to careless merge to /lib :-(((
Volker
(cherry picked from commit
c253e80ad21a24395a973b23993dd211b8e0d482)
Günther Deschner [Thu, 26 Mar 2009 13:51:04 +0000 (14:51 +0100)]
error-codes: add WERR_DS_DRA_SOURCE_DISABLED.
Guenther
(cherry picked from commit
5603c0f2ba9d5b90e5f8b71e779ec037053f04f8)
(cherry picked from commit
a7c80bb70e0153568bc26c0dac044458d47dae0a)
Volker Lendecke [Thu, 26 Mar 2009 11:24:50 +0000 (12:24 +0100)]
Fix a scary "fill_share_mode_lock failed" message
To me "fill_share_mode_lock failed" is a "can't happen" alert. There is
however a perfectly valid case in get_file_infos() when the file is not open.
Change the corresponding debug message to level 10 and explain more.
(cherry picked from commit
66ea221009d9d72868a989c33d48177accc9d924)
Günther Deschner [Thu, 26 Mar 2009 09:26:59 +0000 (10:26 +0100)]
s3-libnetapi: fix creds in libnetapi_open_ipc_connection().
Jeremy, this broke with
8dd1faaa2992851f6852ba7ea4498445af5faadd. Not sure if
other users broke as well with that change.
Guenther
(cherry picked from commit
56d74b62126083dd7e2a60d1b48b03e1b1798c90)
(cherry picked from commit
97c30f557aab49f199df07f2a48ba94ad9cc81c5)
Günther Deschner [Wed, 25 Mar 2009 22:23:06 +0000 (23:23 +0100)]
s3:rpc_parse: remove unused init_unistr().
Guenther
(cherry picked from commit
fe340eb92fd2e5dfef977dc391d2a43ce970e0ea)
(cherry picked from commit
0e845cd6009c8a01eb3d53f558e9872ec4a3ab9f)
Günther Deschner [Thu, 26 Mar 2009 09:11:59 +0000 (10:11 +0100)]
s3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong information.
Guenther
(cherry picked from commit
24d5229a81e1067662930d42f8c59b3a0adac1e0)
(cherry picked from commit
1de41bb8d6b9cbf287bad4152e38402201f966d3)
Volker Lendecke [Thu, 26 Mar 2009 09:03:59 +0000 (10:03 +0100)]
Avahi disables a timer by tv=NULL in avahi_timeout_update(), do not crash
(cherry picked from commit
45726ee52f766350023d85bc38cd803fdd8235a4)
Jeremy Allison [Thu, 26 Mar 2009 04:47:13 +0000 (21:47 -0700)]
Ensure we never enter VFS_CREATE without having initialized
sbuf as invalid (if not already read via stat()). Still trying
to find the build farm RAW-STREAM errors and it's happening
in a openX call....
Jeremy.
(cherry picked from commit
940c84fcc75085ee4f1180d4d2a8e718142e4eb6)
Günther Deschner [Wed, 25 Mar 2009 22:09:52 +0000 (23:09 +0100)]
s3-rpc_parse: remove unused smb_io_domsid().
Guenther
(cherry picked from commit
c86df62b4a51b2813104aece8b3813b1806aeb22)
(cherry picked from commit
62923f9be593d8c7cdcb79c56b9f2c0c36e5dbdd)
Günther Deschner [Wed, 25 Mar 2009 21:38:58 +0000 (22:38 +0100)]
s3: remove unused rpc_parse/parse_sec.c file.
Guenther
(cherry picked from commit
72636db8e5f06e887db6c34b6f88bef567c093dd)
(cherry picked from commit
8ab087da9038f7b80b4488727be49092a7e562cf)
Günther Deschner [Wed, 25 Mar 2009 21:37:21 +0000 (22:37 +0100)]
s3-registry: remove last sec_io_desc() caller.
This is a temporary solution while waiting for the regf merge from s4.
Guenther
(cherry picked from commit
8000479d181347bd6f248309168721fe3a20ad2a)
(cherry picked from commit
a0aea317fad27085377da9c3832f88a178579c3c)
Günther Deschner [Wed, 25 Mar 2009 14:58:20 +0000 (15:58 +0100)]
s3-libnet: Fix Bug #6193: avoid messing with sync_context in libnet_samsync_delta().
We absolutely need to avoid messing with the sync_context as that breaks the
stream of replication data coming from the DC (only replicates ~350 instead of
~4000 groups).
Guenther
(cherry picked from commit
e3f7057b0942793543c215ab45176c4280bd7d51)
(cherry picked from commit
16cba3ec22ca424db0f98185e179c718794bc563)
Günther Deschner [Fri, 20 Mar 2009 15:02:48 +0000 (16:02 +0100)]
s3-spoolss: implement enumprinters_level0.
Guenther
(cherry picked from commit
283e135298767f128c413e0e6df75d21ec8e8e6b)
(cherry picked from commit
54d48c3749981621dd5286ae5c8227f28f5fdc35)
David Kwan [Fri, 20 Mar 2009 16:03:08 +0000 (16:03 +0000)]
s3 onefs: Change error status to NT_ACCESS_DENIED for errors in SET_SECURITY_DESC
(cherry picked from commit
ad98eae02e623a8ca8aa6a1c46d5aedea50e2e4b)
(cherry picked from commit
7d5996e1d5eca454f651ca49a357d28077446309)
Tim Prouty [Wed, 25 Mar 2009 00:05:16 +0000 (17:05 -0700)]
s3: parse_packet can return NULL which is then dereferenced in match_mailslot_name
(cherry picked from commit
db5677d071fc58f38cab4ab800111455a8637edb)
(cherry picked from commit
0f01296bbb08d75ce693a65ea6cb0df80c1b4927)
Volker Lendecke [Tue, 24 Mar 2009 20:57:01 +0000 (21:57 +0100)]
Fix two memleaks in the encryption code
ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.
Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))
Volker
(cherry picked from commit
17616dddfaa26688387f671c870873056896f6b7)
Volker Lendecke [Tue, 24 Mar 2009 10:07:16 +0000 (11:07 +0100)]
Fix bug 6097
A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.
Thanks to Pavel <wylda@volny.cz> for the bug report!
(cherry picked from commit
e4f3d75432dbe372e164962a993b6e882fe44e83)
Günther Deschner [Tue, 24 Mar 2009 10:02:40 +0000 (11:02 +0100)]
s3: add missing prototype for auth_wbc_init().
Guenther
(cherry picked from commit
c388efdbcb9ef1ecd5a81f7731ce56c7f79b2579)
(cherry picked from commit
87cf381dc3bd020dc043419f4ca18a3ff118458d)
Björn Jacke [Mon, 23 Mar 2009 11:26:03 +0000 (12:26 +0100)]
s3:dsgetdcname: use parentheses in if condition to make negation clear
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit
87b428e424e2e3cca975ecd0efed327e72950a1d)
(cherry picked from commit
a2e138419138a2f675f6370426a6caeda0a314b4)
Volker Lendecke [Sun, 22 Mar 2009 14:59:33 +0000 (15:59 +0100)]
Use avahi to register _smb._tcp in smbd
(cherry picked from commit
55b7bf7338c13701944169df02ab8e9def6d43a1)
Volker Lendecke [Fri, 20 Mar 2009 13:55:05 +0000 (14:55 +0100)]
Add tevent avahi binding
(cherry picked from commit
49fc1138b5e4dcf66b84a14ba47cc1da40c764f2)
Volker Lendecke [Fri, 20 Mar 2009 13:53:10 +0000 (14:53 +0100)]
Add avahi detection to configure
(cherry picked from commit
b943e0083f6b0daa226f395158fcf7f467cdacd0)