metze/samba/wip.git
15 years agos3:charcnv Remove unused unistr2 functions
Andrew Bartlett [Thu, 19 Mar 2009 08:14:36 +0000 (19:14 +1100)]
s3:charcnv Remove unused unistr2 functions

Natrually, the hard work to make these unsued was done by GD, not me :-)

Andrew Bartlett

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

15 years agos3:charcnv Remove unused ucs2_to_unistr2()
Andrew Bartlett [Thu, 19 Mar 2009 08:11:15 +0000 (19:11 +1100)]
s3:charcnv Remove unused ucs2_to_unistr2()

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

15 years agos3/docs: Raise version up to 3.4.
Karolin Seeger [Tue, 7 Apr 2009 18:43:28 +0000 (20:43 +0200)]
s3/docs: Raise version up to 3.4.

Karolin

15 years agos3/popt.h: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 18:01:27 +0000 (20:01 +0200)]
s3/popt.h: Fix typo.

Karolin
(cherry picked from commit 8da2fa36b4f4241d7d4cdbe254a2374dd373fe40)

15 years agos3/loadparm: Fiy typos.
Karolin Seeger [Tue, 7 Apr 2009 18:00:47 +0000 (20:00 +0200)]
s3/loadparm: Fiy typos.

Karolin
(cherry picked from commit 4458809597ff4362a653ea5469c5237bbe2a0531)

15 years agos3/gpo_ldap: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:58:47 +0000 (19:58 +0200)]
s3/gpo_ldap: Fix typo.

Karolin
(cherry picked from commit a103222e0b679d68684681c871ac912f279afc1b)

15 years agos3/smbconf_reg: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:58:14 +0000 (19:58 +0200)]
s3/smbconf_reg: Fix typo.

Karolin
(cherry picked from commit 6343cab3086f5795c8428eddcb966ba8b72d3511)

15 years agos3/docs: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:55:45 +0000 (19:55 +0200)]
s3/docs: Fix typo.

Karolin
(cherry picked from commit c002c1d776bc62bafe62e29a91e05100c5025890)

15 years agos3 onefs: Fix case-insensitivity for mangled names
Tim Prouty [Tue, 7 Apr 2009 00:56:50 +0000 (00:56 +0000)]
s3 onefs: Fix case-insensitivity for mangled names

onefs_get_real_filename needs to demangle the filename before doing
the case-insensitive estat
(cherry picked from commit 161bd7f78fd10e4f850dc3ef1ba3df53c43eae30)

15 years agos3 oplocks: Add back procid_str to debug message
Tim Prouty [Tue, 7 Apr 2009 16:49:55 +0000 (09:49 -0700)]
s3 oplocks: Add back procid_str to debug message

15 years agos3:smbldap convert the easy cases to push_utf8_talloc()
Andrew Bartlett [Wed, 18 Mar 2009 07:04:35 +0000 (18:04 +1100)]
s3:smbldap convert the easy cases to push_utf8_talloc()

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

15 years agos3:kerberos Rework smb_krb5_unparse_name() to take a talloc context
Andrew Bartlett [Wed, 18 Mar 2009 05:23:27 +0000 (16:23 +1100)]
s3:kerberos Rework smb_krb5_unparse_name() to take a talloc context

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

15 years agos3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()
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)

15 years agos3-libads: avoid NULL talloc context with ads_get_dn().
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)

15 years agos3: re-run make samba3-idl.
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)

15 years agosvcctl: Fix svcctl_ControlsAccepted bitmask.
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)

15 years agos3-svcctl: Fix _svcctl_EnumServicesStatusW() crash bug on too small buffer.
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)

15 years agos3 onefs: Simplify level 2 oplock self-contention
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)

15 years agos3 oplocks: Refactor level II oplock contention
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)

15 years agos3-samr: add support for _samr_Connect3() while planning to pass a s4 smbtorture...
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)

15 years agos3-samr: add support for setting password hashes via samr_SetUserInfo level 21.
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)

15 years agos3:libads Make ads_get_dn() take a talloc context
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)

15 years agos3:printing Convert nt_printer_publish_ads() to use talloc better
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)

15 years agos3:smbldap Remove smbldap_get_dn
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)

15 years agoMake some functions static to vfs_gpfs.c
Volker Lendecke [Sun, 5 Apr 2009 05:32:03 +0000 (07:32 +0200)]
Make some functions static to vfs_gpfs.c

15 years agoAdd prototype for smbd_gpfs_get_realfilename_path
Volker Lendecke [Sun, 5 Apr 2009 05:31:47 +0000 (07:31 +0200)]
Add prototype for smbd_gpfs_get_realfilename_path

15 years agoFix two c++ warnings in vfs_gpfs.c
Volker Lendecke [Sun, 5 Apr 2009 05:31:30 +0000 (07:31 +0200)]
Fix two c++ warnings in vfs_gpfs.c

15 years agos3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.
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)

15 years agoFix smbd crash for close_on_completion
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.

15 years agoKeep the forked-smbd stdout reader around longer
Volker Lendecke [Thu, 12 Feb 2009 11:12:04 +0000 (12:12 +0100)]
Keep the forked-smbd stdout reader around longer

15 years agoEnsure 0-termination for the forked-smbd debug output
Volker Lendecke [Thu, 12 Feb 2009 11:11:16 +0000 (12:11 +0100)]
Ensure 0-termination for the forked-smbd debug output

15 years agoPass the current debuglevel down to the forked smbd
Volker Lendecke [Thu, 12 Feb 2009 19:41:49 +0000 (20:41 +0100)]
Pass the current debuglevel down to the forked smbd

15 years agoUse recv instead of read in read_packet_handler
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 :-)

15 years agos3-nsswitch: Fix Bug #6238 2nd part. zero blob pointer in wbcLogoffUserParams.
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)

15 years agoUse cluster-aware procid_is_me instead of comparing pid's
Volker Lendecke [Fri, 3 Apr 2009 08:43:13 +0000 (10:43 +0200)]
Use cluster-aware procid_is_me instead of comparing pid's

15 years agoUse procid_str in debug messages for better cluster-debuggability
Volker Lendecke [Fri, 3 Apr 2009 08:42:43 +0000 (10:42 +0200)]
Use procid_str in debug messages for better cluster-debuggability

15 years agos3-nsswitch: Fix Bug #6238. Make sure wbcLogoffUserParams are properly
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)

15 years agos3-lsa: use LSA_ROLE definitions in _lsa_QueryInfoPolicy().
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)

15 years agos3-lsa: don't SAFE_FREE talloced structs.
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)

15 years agos3-spoolss: implement _spoolss_GetPrinterDriver2 level 101 (Bug #5140).
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)

15 years agoAllow pdbedit to change a user rid/sid. Based on a fix from Alexander Zagrebin <alexz...
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.

15 years agos3 onefs: Quiet a log message about oplocks being requested on streams
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)

15 years agos3:net conf: don't store share names as lower case, but as given.
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)

15 years agos3-auth: rename static smb_create_user(). Sorry...
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)

15 years agos3-libnet-samsync: return appropriate error code in fetch_sam_entry().
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)

15 years agos3-libnet-samsync: use smb_create_user().
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)

15 years agos3-passdb: add smb_create_user().
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)

15 years agos3-libnet-samsync: some pure cosmetics.
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)

15 years agos3-libnet-samsync: use parent talloc context for libnet_samsync_passdb.
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)

15 years agos3-libnet: only call libnet_dssync_process() startup and shutdown callbacks when...
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)

15 years agos3:build: add targets to show how libraries will be built / linked
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)

15 years agos3:build: don't build the static libs unconditionally
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)

15 years agos3:build: add LIBSMBCLIENT_LIBS and LIBSMBSHAREMODES_LIBS to Makefile
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)

15 years agos3:build: no need to set LIBFOO_STATIC to the object collection any more
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)

15 years agos3:build: rename WINBIND_LIBS -> LIBWBCLIENT_LIBS for unification
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)

15 years agos3:build: unify linking of libwbclient with a @LIBWBCLIENT_TARGET@
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)

15 years agos3:build: first cut at fixing linking of shared/static libs internally
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)

15 years agos3:build: add a SHOWCFLAGS target for debugging how CFLAGS are assebled
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)

15 years agos3:build: line-wrap assignment of FLAGS for readability
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)

15 years agoremove needless rpath stuff for default paths as early as possible
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)

15 years agoclean up lib64 linking paths the same way as lib
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)

15 years agoto be portable, use options first, arguments last
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)

15 years agolibreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGS
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)

15 years agoProperly strip /usr/lib and /usr/include for the merged build.
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)

15 years agos3:build: prevent from setting "-O -g", check for $debug first.
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)

15 years agodon't set -O twice
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)

15 years agoPrint an error if trying a merged build without a system kerberos lib
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)

15 years agos3: fix the fix for bug #6195 - dont let smbd child processes panic
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

15 years agoMerge branch 'v3-4-test' of ssh://jra@git.samba.org/data/git/samba into v3-4-test
Jeremy Allison [Wed, 1 Apr 2009 01:30:27 +0000 (18:30 -0700)]
Merge branch 'v3-4-test' of ssh://jra@git.samba.org/data/git/samba into v3-4-test

15 years agoTidy up some convert_string_internal error cases, found by Andrew Bartlett.
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.

15 years agos3 onefs: Add missing newlines to debug statements in the onefs module
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)

15 years agos3 onefs: Async failures are resulting in SMB_ASSERT->smb_panic while running many...
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)

15 years agoAdd missing newlines to debug statements
Steven Danneman [Wed, 25 Mar 2009 19:53:06 +0000 (12:53 -0700)]
Add missing newlines to debug statements
(cherry picked from commit 365b5cfcbeb041ce84718717f30ac02183c9af7f)

15 years agos3:build: fix build of pam_winbind.so with static linking
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

15 years agos3/ldbtools: don't neddlessly link against wbinbind libs
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>
15 years agos3/cifs: don't link cifs mount helpers agains popt
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>
15 years agos3/pam_smbpass: don't link agains KRB5LIBS
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>
15 years agos3:build: make SHOWFLAGS target phony and add alias showflags
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>
15 years agoremove non standard way to point to ctdb path
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>
15 years agoEnsure files starting with multiple dots are hidden
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.

15 years agoFix a debug msg typo
Volker Lendecke [Sat, 28 Mar 2009 23:52:22 +0000 (00:52 +0100)]
Fix a debug msg typo

15 years agoFix the problem of 3.0.x passdb databases being version
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.

15 years agos3: ifdef sendfile code that's only used in other ifdef'ed sendfile code
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.

15 years agoEnsure parameter types match format string
Derrell Lipman [Fri, 27 Mar 2009 22:01:39 +0000 (18:01 -0400)]
Ensure parameter types match format string

15 years ago[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
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

15 years agoFix external np read after conversion to tevent_req
Volker Lendecke [Fri, 27 Mar 2009 20:11:10 +0000 (21:11 +0100)]
Fix external np read after conversion to tevent_req

15 years agoFix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly...
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.

15 years agoFix the build of nfsv4_acls.c
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)

15 years agoTry and fix the build farm RAW-STREAMS errors. Ordering of
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

15 years agoFix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run...
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.

15 years agos3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 too.
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)

15 years agoFix a talloc/malloc screwup in file_lines_pload
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

15 years agoerror-codes: add WERR_DS_DRA_SOURCE_DISABLED.
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)

15 years agoFix a scary "fill_share_mode_lock failed" message
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.

15 years agos3-libnetapi: fix creds in libnetapi_open_ipc_connection().
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)

15 years agos3:rpc_parse: remove unused init_unistr().
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)

15 years agos3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong information.
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)

15 years agoAvahi disables a timer by tv=NULL in avahi_timeout_update(), do not crash
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

15 years agoEnsure we never enter VFS_CREATE without having initialized
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.

15 years agos3-rpc_parse: remove unused smb_io_domsid().
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)