samba.git
13 years agoWHATSNEW: Fix date. samba-3.6.0pre2
Karolin Seeger [Tue, 12 Apr 2011 14:01:14 +0000 (16:01 +0200)]
WHATSNEW: Fix date.

Karolin
(cherry picked from commit 30e30abc392c17d16a44eca73e5e4c3f7cda2199)

13 years agoWHATSNEW: Update release notes.
Karolin Seeger [Tue, 12 Apr 2011 13:55:07 +0000 (15:55 +0200)]
WHATSNEW: Update release notes.

Karolin
(cherry picked from commit 21b0bc2449ca30c3ad5570c794b4f56cd243996d)

13 years agoWHATSNEW: Update release notes.
Karolin Seeger [Tue, 12 Apr 2011 12:50:30 +0000 (14:50 +0200)]
WHATSNEW: Update release notes.

I know that it's not 100% complete, but I think it's good
enough to ship (that's even better than delaying again).

Karolin
(cherry picked from commit d4a25642fc1c26245c297c60356fe923fe2a316e)

13 years agos3:WHATSNEW: mention Gregor's "net idmap check" tool
Michael Adam [Tue, 12 Apr 2011 12:55:09 +0000 (14:55 +0200)]
s3:WHATSNEW: mention Gregor's "net idmap check" tool
(cherry picked from commit 9ffc2a90167518fd9de43bf801170012d0842b74)

13 years agos3: Retry the join with the short name
Volker Lendecke [Sat, 26 Feb 2011 16:53:16 +0000 (17:53 +0100)]
s3: Retry the join with the short name

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

13 years agos3: Initialize output in libnet_Join
Volker Lendecke [Sat, 26 Feb 2011 17:12:32 +0000 (18:12 +0100)]
s3: Initialize output in libnet_Join

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

13 years agos3: For net ads join, create a krb5.conf
Volker Lendecke [Sat, 26 Feb 2011 17:12:49 +0000 (18:12 +0100)]
s3: For net ads join, create a krb5.conf

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr 12 14:10:05 CEST 2011 on sn-devel-104
(cherry picked from commit 4edc98eb9e18eff00bb5ce9bdcdffa5b11149dd4)
(cherry picked from commit 4787c32934d885bd0084359a28c33b30bb523124)

13 years agos3-util: separate out cmdline helpers.
Günther Deschner [Fri, 1 Apr 2011 23:00:52 +0000 (01:00 +0200)]
s3-util: separate out cmdline helpers.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr 12 13:06:27 CEST 2011 on sn-devel-104
(cherry picked from commit 7de5b2002d853947bc66fa4dc96773a788dc5248)

13 years agos3: add some forward declarations.
Günther Deschner [Wed, 6 Apr 2011 13:16:53 +0000 (15:16 +0200)]
s3: add some forward declarations.

Guenther
(cherry picked from commit 9c6f78aae195c286818f91405b983b127ae17402)
(cherry picked from commit 897ccdcae91ff4b3a61e6349dd0f7b8ed1ec6fac)

13 years agos3-netapi: use dcerpc_try_samr_connects().
Günther Deschner [Wed, 6 Apr 2011 12:40:50 +0000 (14:40 +0200)]
s3-netapi: use dcerpc_try_samr_connects().

Guenther
(cherry picked from commit 7ea03840fc817b21d7d333aebc6bbaeded9a0485)
(cherry picked from commit 3904e1dbe459ed660201204dcea350982aa0401a)

13 years agos3-netapi: use libnetapi_get_binding_handle().
Günther Deschner [Wed, 6 Apr 2011 12:35:24 +0000 (14:35 +0200)]
s3-netapi: use libnetapi_get_binding_handle().

Guenther
(cherry picked from commit 3acd6bde58ecd68faf8200268cc674a71c57778d)
(cherry picked from commit 1256f75645753830a396d25fdd968843ac58ce0f)

13 years agos3-netapi: add libnetapi_get_binding_handle().
Günther Deschner [Wed, 6 Apr 2011 12:21:30 +0000 (14:21 +0200)]
s3-netapi: add libnetapi_get_binding_handle().

Guenther
(cherry picked from commit 0eece6202c94fdd180f266049e1a3712b9477dc6)
(cherry picked from commit 710b40b5ac731cabb73608577af98e666b13214f)

13 years agos3-librpc: let librpc/rpc/dcerpc.h include ndr and generated dcerpc headers.
Günther Deschner [Wed, 30 Mar 2011 23:01:05 +0000 (01:01 +0200)]
s3-librpc: let librpc/rpc/dcerpc.h include ndr and generated dcerpc headers.

Guenther
(cherry picked from commit f10274806196cbea8d27cc2b1f1fe5087a2ede2b)
(cherry picked from commit 7937e6c9cd112b4f47215168e52d1cbf74786732)

13 years agos3-rpc_client: move rpc_cli_transport structs and protos to rpc_transport.h
Günther Deschner [Wed, 30 Mar 2011 22:34:28 +0000 (00:34 +0200)]
s3-rpc_client: move rpc_cli_transport structs and protos to rpc_transport.h

Guenther
(cherry picked from commit 64b664155b16b0995af7cc87f54c613350127f9e)
(cherry picked from commit a35c24c9a47f947abc992c14c809403e6aa5aa07)

13 years agotalloc/testsuite: avoid memory leak reported by valgrind
Stefan Metzmacher [Mon, 4 Apr 2011 13:53:46 +0000 (15:53 +0200)]
talloc/testsuite: avoid memory leak reported by valgrind

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Apr  8 10:15:41 CEST 2011 on sn-devel-104
(cherry picked from commit eb0e276f3a3b57405cd8cd36c74021350aba9a98)
(cherry picked from commit 6215a7bc8ef7268d6034785b4d887c40475e715e)

13 years agotalloc/testsuite: test more talloc_pool related things
Stefan Metzmacher [Thu, 31 Mar 2011 17:50:47 +0000 (19:50 +0200)]
talloc/testsuite: test more talloc_pool related things

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit f9fdef870e4c49d9e6c23ba085ba6dbd34ec5469)
(cherry picked from commit 722da3df0f59c1ba5d90b598f94bf17a950715a8)

13 years agotalloc: include valgrind headers if available
Stefan Metzmacher [Mon, 4 Apr 2011 14:28:31 +0000 (16:28 +0200)]
talloc: include valgrind headers if available

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 2146ffd764499d67e3f0576a2e78a1575cd52d9c)
(cherry picked from commit fb84f773cf7c74152caeea5d361e9604deeb353b)

13 years agotalloc: add TC_INVALIDATE_POOL marco
Stefan Metzmacher [Mon, 4 Apr 2011 13:08:20 +0000 (15:08 +0200)]
talloc: add TC_INVALIDATE_POOL marco

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 73cc85ac903387f2c7f8ef2d948b40b57887cf17)
(cherry picked from commit 1d11631906efe7b81a237bee73925a032d5d4318)

13 years agotalloc: add TC_UNDEFINE_GROW_CHUNK() marco
Stefan Metzmacher [Mon, 4 Apr 2011 11:29:47 +0000 (13:29 +0200)]
talloc: add TC_UNDEFINE_GROW_CHUNK() marco

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 9c9f208598d34d700bfc2ed7302b206e863a4c9b)
(cherry picked from commit 046dfa2b6807838e787cdcef5eef28f9b660e961)

13 years agotalloc: add TC_INVALIDATE_SHRINK_CHUNK() marco
Stefan Metzmacher [Mon, 4 Apr 2011 11:28:11 +0000 (13:28 +0200)]
talloc: add TC_INVALIDATE_SHRINK_CHUNK() marco

This invalidates the unused bytes if we shrink memory.

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 6126c3506d493cd4836a7539586b74faea8ca0b3)
(cherry picked from commit 31578b94db5f9517ee344260e83362c547511549)

13 years agotalloc: add TC_INVALIDATE_FULL_CHUNK() macro
Stefan Metzmacher [Mon, 4 Apr 2011 09:47:57 +0000 (11:47 +0200)]
talloc: add TC_INVALIDATE_FULL_CHUNK() macro

This makes it easier to mark a talloc pointer as
invalid.

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 4895f55f0604a1851d45c24a8a584a10170d5917)
(cherry picked from commit 81a3c26aa1af783bb3a37a0991d9962cd71fc92f)

13 years agotalloc: use VALGRIND_MAKE_MEM_UNDEFINED() before memmove()
Stefan Metzmacher [Mon, 4 Apr 2011 14:46:21 +0000 (16:46 +0200)]
talloc: use VALGRIND_MAKE_MEM_UNDEFINED() before memmove()

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit efbb35824e3845c3cdefea328dd1bf67d0f9087d)
(cherry picked from commit a21ffe7d5b9a8ec8dae0fe5f123ba4add585821a)

13 years agotalloc: optimize talloc_free() and talloc_realloc() for talloc pools
Stefan Metzmacher [Thu, 31 Mar 2011 14:58:46 +0000 (16:58 +0200)]
talloc: optimize talloc_free() and talloc_realloc() for talloc pools

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 1e70439f770181ca16a0749c2164d0237d3bfd0a)
(cherry picked from commit 6fedf4bfb3251278bff8ef22a879aac8c89e75d5)

13 years agotalloc: add TC_POOL_FIRST_CHUNK() macro
Stefan Metzmacher [Thu, 31 Mar 2011 14:56:18 +0000 (16:56 +0200)]
talloc: add TC_POOL_FIRST_CHUNK() macro

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 73330f8436707b5ab46c0720ea735908948f5d27)
(cherry picked from commit cf12120f98aaab15406654e6acbaf3377a8d0c04)

13 years agotalloc: add TC_POOL_SPACE_LEFT() macro
Stefan Metzmacher [Thu, 31 Mar 2011 14:51:40 +0000 (16:51 +0200)]
talloc: add TC_POOL_SPACE_LEFT() macro

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 13fab67995a0b836b92847536768703dac391b57)
(cherry picked from commit dbb450e2651c2b4e837eb5a2db78d702d0fcc1bf)

13 years agotalloc: add TC_ALIGN16() macro
Stefan Metzmacher [Thu, 31 Mar 2011 14:55:00 +0000 (16:55 +0200)]
talloc: add TC_ALIGN16() macro

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit 4084cb723c4e14898a411fbd1cf8fa878ff290ff)
(cherry picked from commit 3947608d20d725fd56e51d1dac15b08aa2ad8267)

13 years agotalloc: use TC_HDR_SIZE instead of sizeof(struct talloc_chunk)
Stefan Metzmacher [Thu, 31 Mar 2011 13:18:55 +0000 (15:18 +0200)]
talloc: use TC_HDR_SIZE instead of sizeof(struct talloc_chunk)

As this includes the padding to 16 bytes.

metze

Signed-off-By: Andrew Tridgell <tridge@samba.org>
(cherry picked from commit d39940113a24078bd563b0cfce4225648c632544)
(cherry picked from commit c4a4e0943139bdfb183d5000117f383878b11e5d)

13 years agos3-printing: Use become_user_by_session() function.
Andreas Schneider [Fri, 1 Apr 2011 09:55:27 +0000 (11:55 +0200)]
s3-printing: Use become_user_by_session() function.

We create a fake connection here and don't have an vuid. So work with
the session_info directly here.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 11 22:56:12 CEST 2011 on sn-devel-104
(cherry picked from commit e3c3b4daa425fede17203b474fa35493afbda2a9)
(cherry picked from commit 9ac8a582e51ff6949bebeec49f9f6c2627d48fc7)

13 years agos3-smbd: Added a become_user_by_session() function.
Andreas Schneider [Fri, 1 Apr 2011 09:54:49 +0000 (11:54 +0200)]
s3-smbd: Added a become_user_by_session() function.

This uses the provided session_info instead of searching the user via
the vuid. This is useful to work with fake connnection you need to
create if someone connects directly to a rpc service.

Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit b137156acbf7c39c86f306100cccc65b441a3209)
(cherry picked from commit 71885207ea6453f75d383a0265c73195df048dbf)

13 years agos3-smbd: Added a change_to_user_by_session() function.
Andreas Schneider [Tue, 5 Apr 2011 11:54:31 +0000 (13:54 +0200)]
s3-smbd: Added a change_to_user_by_session() function.

Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 27cb378283f2cf072151f1c624837741f40c298a)
(cherry picked from commit fe0882c896030dad91d8fda85a4ed031c68ae1ed)

13 years agos3: Wrap creating the svcctl keys in a transaction
Volker Lendecke [Sat, 9 Apr 2011 16:15:12 +0000 (18:15 +0200)]
s3: Wrap creating the svcctl keys in a transaction

This makes the startup of smbd in make test much quicker and thus more reliable
(cherry picked from commit f1aa38b414e97d8687d0bebf65baa384f75301b4)

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 11 22:09:58 CEST 2011 on sn-devel-104
(cherry picked from commit d1ded271b6e8f8ff7f09c4830411e389d26b1b10)
(cherry picked from commit 4dc58230b1a411a207cb84251e8ffe6d14c9742e)

13 years agos3: Make reg_backend_db.h includable by itself
Volker Lendecke [Sat, 9 Apr 2011 16:13:59 +0000 (18:13 +0200)]
s3: Make reg_backend_db.h includable by itself
(cherry picked from commit 6ba31d3bd29dd11b1b98859f4d8a65d9be7dac60)
(cherry picked from commit a5495e70cc5f7659ab94d8570195edf3bd41072b)
(cherry picked from commit 59ed52d8ab9521466e9f25118336b9e9c42d2344)

13 years agoWHATSNEW: Start to add changes since 3.6.0pre1.
Karolin Seeger [Mon, 11 Apr 2011 19:56:29 +0000 (21:56 +0200)]
WHATSNEW: Start to add changes since 3.6.0pre1.

To be completed...

Karolin
(cherry picked from commit 84b726154ef5cdcb00cbfbf7bc3ae607d6857765)

13 years agos3: Fix Coverity ID 2472, UNINIT
Volker Lendecke [Fri, 8 Apr 2011 09:07:11 +0000 (11:07 +0200)]
s3: Fix Coverity ID 2472, UNINIT

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Apr 11 17:14:35 CEST 2011 on sn-devel-104
(cherry picked from commit 5cd6d93fa1f24b64b449455da40d5c83a18a8cff)
(cherry picked from commit 5a64930c2fee729e13f61ae0cef1a4f88a49e5c2)

13 years agos3: Fix Coverity ID 2473, UNINIT
Volker Lendecke [Fri, 8 Apr 2011 09:07:11 +0000 (11:07 +0200)]
s3: Fix Coverity ID 2473, UNINIT

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

13 years agos3: Fix timeout calculation in event_add_to_poll_args
Volker Lendecke [Mon, 11 Apr 2011 11:37:42 +0000 (13:37 +0200)]
s3: Fix timeout calculation in event_add_to_poll_args

In the initial phase nmbd does not yet have timed events. This led to nmbd
not correctly registering its names in make test and certainly everywhere
else.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 11 14:35:45 CEST 2011 on sn-devel-104
(cherry picked from commit 09586950225e880bbd6d9e147c884c5886c4d0a4)
(cherry picked from commit 246657b06e518674129abc7f0c141c3e85d9cc8b)

13 years agos3-modules: Fix debug message
Björn Baumbach [Mon, 11 Apr 2011 08:27:58 +0000 (10:27 +0200)]
s3-modules: Fix debug message

Print child descriptor instead of parent.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Apr 11 11:48:42 CEST 2011 on sn-devel-104
(cherry picked from commit e6cf92c574fba14132757f141d8b1242fa71be88)
(cherry picked from commit 42ad7630259829f1c40d9d0fcf5376fa007568a3)

13 years agorelease-scripts/create-tarball: also remove the toplevel configure.developer
Stefan Metzmacher [Mon, 11 Apr 2011 09:54:21 +0000 (11:54 +0200)]
release-scripts/create-tarball: also remove the toplevel configure.developer

metze
(cherry picked from commit 7f14129570fe5c61c8eae9550e725e924cb12db4)

13 years agoVERSION: Adapt version string.
Karolin Seeger [Mon, 11 Apr 2011 05:46:48 +0000 (07:46 +0200)]
VERSION: Adapt version string.

Karolin

13 years agoMerge remote branch 'origin/v3-6-test' into v3-6-stable
Karolin Seeger [Mon, 11 Apr 2011 05:44:15 +0000 (07:44 +0200)]
Merge remote branch 'origin/v3-6-test' into v3-6-stable

Karolin

13 years agocreate-tarball: Remove toplevel Makefile and configure.
Karolin Seeger [Sun, 10 Apr 2011 19:15:58 +0000 (21:15 +0200)]
create-tarball: Remove toplevel Makefile and configure.

Karolin

13 years agocreate-tarball: Use full path.
Karolin Seeger [Sun, 10 Apr 2011 19:13:35 +0000 (21:13 +0200)]
create-tarball: Use full path.

Make usage of rm consistent.

Karolin

13 years agoVERSION: Raise version up to 3.6.0pre2.
Karolin Seeger [Sun, 10 Apr 2011 18:47:18 +0000 (20:47 +0200)]
VERSION: Raise version up to 3.6.0pre2.

Karolin

13 years agoFix bug 8072 - PANIC: create_file_acl_common frees handle two times.
Jeremy Allison [Fri, 8 Apr 2011 21:24:44 +0000 (14:24 -0700)]
Fix bug 8072 - PANIC: create_file_acl_common frees handle two times.

Caused by premature optimisation storing the parent ACL on the
module handle instead of (correctly) on the file fsp. Previous
code wasn't reentrant safe. This is less optimal but doesn't
crash in the specific case :-).

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr  9 02:05:15 CEST 2011 on sn-devel-104
(cherry picked from commit af45636166c7a0cb87630105d18ce489e7391525)

13 years agoSubtle change. Microsoft SMB2 tests return different access mask than for SMB1 with...
Jeremy Allison [Fri, 8 Apr 2011 23:18:56 +0000 (16:18 -0700)]
Subtle change. Microsoft SMB2 tests return different access mask than for SMB1 with raw.acls.
(cherry picked from commit c6c17242d23cd03acd5adc29969177881a7d04e1)

13 years agos3:net idmap check: fix output of an invalid record
Michael Adam [Fri, 8 Apr 2011 12:49:43 +0000 (14:49 +0200)]
s3:net idmap check: fix output of an invalid record

Only print the value number for hwm, version and seqnum keys.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Apr  8 17:29:31 CEST 2011 on sn-devel-104

13 years agos3-net: "idmap check" ignore __db_sequence_number__
Gregor Beck [Fri, 8 Apr 2011 12:53:25 +0000 (14:53 +0200)]
s3-net: "idmap check" ignore __db_sequence_number__

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agos3:net rpc trust: fix two C++ implicit void * cast warnings
Michael Adam [Thu, 7 Apr 2011 14:54:12 +0000 (16:54 +0200)]
s3:net rpc trust: fix two C++ implicit void * cast warnings

13 years agos3:passdb:pdb_ipa: fix a C++ implicit void * cast warnings
Michael Adam [Thu, 7 Apr 2011 14:54:12 +0000 (16:54 +0200)]
s3:passdb:pdb_ipa: fix a C++ implicit void * cast warnings

13 years agos3:net idmap check: fix a couple of c++ implicit void * cast warnings
Michael Adam [Thu, 7 Apr 2011 14:54:12 +0000 (16:54 +0200)]
s3:net idmap check: fix a couple of c++ implicit void * cast warnings

13 years agopackaging(RHEL-CTDB): fix configure.rpm (honour additional cmdline parameters)
Michael Adam [Wed, 6 Apr 2011 15:53:14 +0000 (17:53 +0200)]
packaging(RHEL-CTDB): fix configure.rpm (honour additional cmdline parameters)

13 years agoWHATSNEW: Fix typos.
Karolin Seeger [Mon, 4 Apr 2011 19:22:49 +0000 (21:22 +0200)]
WHATSNEW: Fix typos.

Karolin

13 years agos4-smbtorture: fix lsa forest trust test.
Günther Deschner [Thu, 7 Apr 2011 10:05:58 +0000 (12:05 +0200)]
s4-smbtorture: fix lsa forest trust test.

lsa_lsaRSetForestTrustInformation takes a policy handle obtained from
lsaopenpolicy/lsaopenpolicy2 and not a trusted domain handle
(MS-LSAD 3.1.4.7.16 LsarSetForestTrustInformation (Opnum 74)).

Sumit, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr  7 14:52:52 CEST 2011 on sn-devel-104
(cherry picked from commit ead6faab2766b786e124f2086093ef3fa05d115b)

13 years agolsa: use lsa_TrustedAccessMask in some more places in the lsa IDL.
Günther Deschner [Thu, 7 Apr 2011 09:47:44 +0000 (11:47 +0200)]
lsa: use lsa_TrustedAccessMask in some more places in the lsa IDL.

Guenther
(cherry picked from commit 26d67846d47d5d1be54d1a8b045f5293a4a02839)

13 years agos3-net: document "idmap check"
Gregor Beck [Thu, 7 Apr 2011 09:00:41 +0000 (11:00 +0200)]
s3-net: document "idmap check"

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agos3-net: fix the usage output of "net idmap check"
Gregor Beck [Thu, 7 Apr 2011 09:00:41 +0000 (11:00 +0200)]
s3-net: fix the usage output of "net idmap check"

Signed-off-by: Michael Adam <obnox@samba.org>
13 years agoFix bug 6966 - "allow trusted domains = no" not respected in winbind.
Dmitry Butskoy [Wed, 6 Apr 2011 20:52:42 +0000 (13:52 -0700)]
Fix bug 6966 - "allow trusted domains = no" not respected in winbind.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr  6 23:37:27 CEST 2011 on sn-devel-104
(cherry picked from commit 2db094fc32687dc2a869d753b50b2aa1636cdbd6)

13 years agodocs: fix the missing parameter description section in the smb.conf manpage
Michael Adam [Tue, 5 Apr 2011 21:07:01 +0000 (23:07 +0200)]
docs: fix the missing parameter description section in the smb.conf manpage

The smb.conf (5) manpage recently sometimes failed to contain the
contents of the description of each parameter section. The reason
was a unreliable chain of dependencies in the Makefile.

The error can be reproduced by touching manpages-3/smb.conf.5.xml
and then building the manpages.
Then smb.conf.5.xml is newer than any of the smbdotconf/*/*.xml
files and hence the intermediate inexistent parameters.*.xml
don't get generated.

This patch fixes this problem by introducing a phony "parameters"
target referencing the parameters.*.xml targets, so that they
get build unconditionally.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Apr  6 01:22:00 CEST 2011 on sn-devel-104

13 years agopackaging(RHEL-CTDB): Fix debuginfo builds
Michael Adam [Fri, 3 Dec 2010 09:13:46 +0000 (02:13 -0700)]
packaging(RHEL-CTDB): Fix debuginfo builds

At least on RHEL 5.5, we observed broken debuginfo packages
when either old build directories were still present or old
debuginfo packages (of samba) were installed.

This patch removes the debuginfo samba RPMs and old RPM build
directories, giving the user a 10 second chance to quit.

13 years agopackaging(RHEL-CTDB): add BuildRequires to ctdb-devel >= 1.2.25
Michael Adam [Tue, 5 Apr 2011 13:49:39 +0000 (15:49 +0200)]
packaging(RHEL-CTDB): add BuildRequires to ctdb-devel >= 1.2.25

This should make sure we build against ctdb with SCHEDULE_FOR_DELETION control.

13 years agopackaging(RHEL-CTDB): replace Prereq by Requires.
Michael Adam [Thu, 10 Feb 2011 06:33:56 +0000 (07:33 +0100)]
packaging(RHEL-CTDB): replace Prereq by Requires.

In RHEL6, Prereq is deprecated.

13 years agos3: Fix tldap_make_mod_blob_int() debug messages
Sumit Bose [Mon, 4 Apr 2011 11:46:18 +0000 (13:46 +0200)]
s3: Fix tldap_make_mod_blob_int() debug messages

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr  6 13:10:30 CEST 2011 on sn-devel-104
(cherry picked from commit 3626579cc27cb03fba2100be1a2686651bd3f003)

13 years agos3-net: Add delete op for net trust utility
Sumit Bose [Thu, 31 Mar 2011 15:46:56 +0000 (17:46 +0200)]
s3-net: Add delete op for net trust utility

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

13 years agos3-net: Add net trust utility
Sumit Bose [Thu, 24 Mar 2011 11:10:13 +0000 (12:10 +0100)]
s3-net: Add net trust utility

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

13 years agos3-pdb_ipa: Create DN for new object
Sumit Bose [Wed, 23 Mar 2011 11:09:22 +0000 (12:09 +0100)]
s3-pdb_ipa: Create DN for new object

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

13 years agos3-pdb_ipa: Add ipasam_create_dom_group()
Sumit Bose [Fri, 18 Mar 2011 10:39:37 +0000 (11:39 +0100)]
s3-pdb_ipa: Add ipasam_create_dom_group()

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

13 years agos3-net: add IPA provision
Sumit Bose [Fri, 18 Mar 2011 10:37:15 +0000 (11:37 +0100)]
s3-net: add IPA provision

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos3-pdb_ipa: Add ipasam_create_user()
Sumit Bose [Mon, 4 Apr 2011 11:23:05 +0000 (13:23 +0200)]
s3-pdb_ipa: Add ipasam_create_user()

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

13 years agos3-pdb_ipa: Detect IPA server
Sumit Bose [Mon, 4 Apr 2011 11:20:19 +0000 (13:20 +0200)]
s3-pdb_ipa: Detect IPA server

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

13 years agos3-pdb_ipa: Use new smbldap_make_mod_blob() without a return value
Sumit Bose [Mon, 4 Apr 2011 11:14:47 +0000 (13:14 +0200)]
s3-pdb_ipa: Use new smbldap_make_mod_blob() without a return value

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

13 years agos3-smbldap: make octet_strings/DATA_BLOBs const.
Sumit Bose [Mon, 4 Apr 2011 12:16:44 +0000 (14:16 +0200)]
s3-smbldap: make octet_strings/DATA_BLOBs const.

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

13 years agos3-smbldap: support storing octet_strings/DATA_BLOBs.
Günther Deschner [Thu, 29 Oct 2009 22:36:14 +0000 (23:36 +0100)]
s3-smbldap: support storing octet_strings/DATA_BLOBs.

Guenther

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

13 years agos3-ipasam: rename of smbldap_make_mod_blob to _smbldap_make_mod_blob.
Günther Deschner [Wed, 6 Apr 2011 09:33:12 +0000 (11:33 +0200)]
s3-ipasam: rename of smbldap_make_mod_blob to _smbldap_make_mod_blob.

Guenther

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

13 years agos3-pdb_ipa: Fix indentation
Sumit Bose [Mon, 4 Apr 2011 11:07:37 +0000 (13:07 +0200)]
s3-pdb_ipa: Fix indentation

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

13 years agos3/vfs_gpfs: s/syncops/gpfs
Björn Jacke [Sun, 3 Apr 2011 14:19:11 +0000 (16:19 +0200)]
s3/vfs_gpfs: s/syncops/gpfs

as pointed out by Metze in bug #8031

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Apr  5 18:08:42 CEST 2011 on sn-devel-104
(cherry picked from commit dca465fa53f4d16cdce1353685b11010aa8ff0c7)

13 years agos3-net: fix the build of utils/net_idmap_check.c on a variety of platforms.
Günther Deschner [Tue, 5 Apr 2011 21:42:56 +0000 (23:42 +0200)]
s3-net: fix the build of utils/net_idmap_check.c on a variety of platforms.

Gregor, please check.

Guenther

13 years agoFix bug #7080 - Quota only shown when logged as root.
Jeremy Allison [Tue, 5 Apr 2011 18:24:39 +0000 (11:24 -0700)]
Fix bug #7080 - Quota only shown when logged as root.

Remove the final incorrect uses of conn->session_info->utok.uid.
When we're in the "admin users" list, then this value is not set
to zero.

Inspired by the comment on this bug by Dmitry Butskoy <dmitry@butskoy.name>.

I'll create a different fix for 3.5.x.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr  5 21:53:59 CEST 2011 on sn-devel-104
(cherry picked from commit b6a30be70266c07733ddfa2ae08d127e08560868)

13 years agos3-libndr: add ../librpc/ndr/libndr.h include in some places.
Günther Deschner [Wed, 30 Mar 2011 21:47:34 +0000 (23:47 +0200)]
s3-libndr: add ../librpc/ndr/libndr.h include in some places.

Guenther
(cherry picked from commit a730dff78318a0bfe8c6b2b8a2cefed63cc586e8)

13 years agos3-vfs: try to fix build of aio_fork module.
Günther Deschner [Wed, 30 Mar 2011 20:24:18 +0000 (22:24 +0200)]
s3-vfs: try to fix build of aio_fork module.

Guenther
(cherry picked from commit 3800bae260ed3998317ce5e492a8f0a42fb2fd5f)

13 years agos3-smbd: try to fix the irix build.
Günther Deschner [Wed, 30 Mar 2011 14:18:38 +0000 (16:18 +0200)]
s3-smbd: try to fix the irix build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 17:17:58 CEST 2011 on sn-devel-104
(cherry picked from commit 220db5aad629451d24fcf678a5aa2f3637bc5eeb)

13 years agos3-vfs acl modules: more non-linux build fixes.
Günther Deschner [Wed, 30 Mar 2011 13:14:05 +0000 (15:14 +0200)]
s3-vfs acl modules: more non-linux build fixes.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 16:00:02 CEST 2011 on sn-devel-104
(cherry picked from commit 53bdf43acab2f8808fb205a719ff6323543a6440)

13 years agos3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.
Günther Deschner [Wed, 30 Mar 2011 13:09:10 +0000 (15:09 +0200)]
s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.

Guenther
(cherry picked from commit 33082d016ee27537af0514d5eebcdaf0360fa4f7)

13 years agos3-passdb: move some passdb defines to passdb.h
Günther Deschner [Wed, 30 Mar 2011 12:49:37 +0000 (14:49 +0200)]
s3-passdb: move some passdb defines to passdb.h

Guenther
(cherry picked from commit 3253d5ad0515198083b0b185c06b659fc6972830)

13 years agos3-proto: pure cosmetics, remove some generated comments.
Günther Deschner [Wed, 30 Mar 2011 12:48:18 +0000 (14:48 +0200)]
s3-proto: pure cosmetics, remove some generated comments.

Guenther
(cherry picked from commit c8ed33ae9c26a63fd8adffa2041fe46a2542f0ba)

13 years agos3-winbind: try to fix the build on hosts w/o winbind support.
Günther Deschner [Wed, 30 Mar 2011 12:03:13 +0000 (14:03 +0200)]
s3-winbind: try to fix the build on hosts w/o winbind support.

Guenther
(cherry picked from commit 6206156465b32aa565a1f7fbabfc62d668985d68)

13 years agos3-vfs_solarisacl: try to fix the solaris build.
Günther Deschner [Wed, 30 Mar 2011 11:46:59 +0000 (13:46 +0200)]
s3-vfs_solarisacl: try to fix the solaris build.

Guenther
(cherry picked from commit b09b694dddfa4284b2c92d289694013e48b1e3f6)

13 years agos3: try to fix the build on some non-linux buildfarm machines.
Günther Deschner [Wed, 30 Mar 2011 08:50:10 +0000 (10:50 +0200)]
s3: try to fix the build on some non-linux buildfarm machines.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104
(cherry picked from commit fbd0ff69ec07c55a2858f49b1effb40bd871d4a6)

13 years agos3-rpc_server: move access check functions out of samr server.
Günther Deschner [Fri, 25 Mar 2011 13:12:59 +0000 (14:12 +0100)]
s3-rpc_server: move access check functions out of samr server.

Guenther
(cherry picked from commit ab9a29eb638143a93f70bb7880ca24f73bbb2118)

13 years agos3: only include ntioctl.h where needed.
Günther Deschner [Fri, 25 Mar 2011 12:42:42 +0000 (13:42 +0100)]
s3: only include ntioctl.h where needed.

Guenther
(cherry picked from commit b1e3b9d7c118b5ba5260525e87796a98a5037144)

13 years agos3: only include lib/privileges.h where needed.
Günther Deschner [Fri, 25 Mar 2011 10:56:52 +0000 (11:56 +0100)]
s3: only include lib/privileges.h where needed.

This finally removes the global lsa.h inclusion.

Guenther
(cherry picked from commit c2d6260f1042313ecb7540dd6ced1470db3001e9)

13 years agos3: include ../librpc/gen_ndr/lsa.h where needed.
Günther Deschner [Fri, 25 Mar 2011 10:56:10 +0000 (11:56 +0100)]
s3: include ../librpc/gen_ndr/lsa.h where needed.

Guenther
(cherry picked from commit 643b08dd25f9b1891b55d6653d0b04403d9b8ea0)

13 years agos3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.
Günther Deschner [Fri, 25 Mar 2011 10:40:00 +0000 (11:40 +0100)]
s3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.

Guenther
(cherry picked from commit 1d383daf399b08c3833e55d11135796e34cc2689)

13 years agos3-includes: only include ntdomain.h where needed.
Günther Deschner [Thu, 24 Mar 2011 21:33:07 +0000 (22:33 +0100)]
s3-includes: only include ntdomain.h where needed.

Guenther
(cherry picked from commit 6e3f0d28a4c0bc79cdbe4cfb50d105c4fe479d2b)

13 years agopidl: add an include for "ntdomain.h" for s3 server stubs.
Günther Deschner [Thu, 24 Mar 2011 21:32:17 +0000 (22:32 +0100)]
pidl: add an include for "ntdomain.h" for s3 server stubs.

Guenther
(cherry picked from commit 9115615663edf82afde5a3c934b53d53a0e508f0)

13 years agos3-messages: make ndr_messaging.h part of messages.h.
Günther Deschner [Thu, 24 Mar 2011 14:56:32 +0000 (15:56 +0100)]
s3-messages: make ndr_messaging.h part of messages.h.

Guenther
(cherry picked from commit ab36d597e75286cca09abd75c67d8072c0ff64cf)

13 years agos3-messages: only include messages.h where needed.
Günther Deschner [Thu, 24 Mar 2011 14:31:06 +0000 (15:31 +0100)]
s3-messages: only include messages.h where needed.

Guenther
(cherry picked from commit b2af281e508194d9548ea1119c19ee96a0dd1f0a)

13 years agos3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.
Günther Deschner [Thu, 24 Mar 2011 13:16:28 +0000 (14:16 +0100)]
s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.

Guenther
(cherry picked from commit 4bd5f51c43147b74203711764390727bdda17a77)

13 years agos3-includes: finally remove global include of auth.h.
Günther Deschner [Fri, 25 Mar 2011 01:28:17 +0000 (02:28 +0100)]
s3-includes: finally remove global include of auth.h.

Guenther
(cherry picked from commit 3679c0b8c101f9652858ea74a71556cdcdc88cb3)

13 years agos3-auth: vfs modules need auth.h
Günther Deschner [Thu, 24 Mar 2011 13:15:54 +0000 (14:15 +0100)]
s3-auth: vfs modules need auth.h

Guenther
(cherry picked from commit bd471d30047e7053a0accf8b7a3caf0472d06486)

13 years agos3-auth: printing needs auth.h
Günther Deschner [Thu, 24 Mar 2011 13:12:42 +0000 (14:12 +0100)]
s3-auth: printing needs auth.h

Guenther
(cherry picked from commit 3061f44fc9f6cf5b532cd59598d166e52c8cef36)