ddiss/samba.git
13 years agos3: don't build krb5 locator plugin if we don't build winbind
Björn Jacke [Tue, 21 Sep 2010 17:52:46 +0000 (10:52 -0700)]
s3: don't build krb5 locator plugin if we don't build winbind

this fixes bug #7329
(cherry picked from commit 81d257e8aef096c4f6ef79d20543aaf287dc9e1a)

13 years agos3/winbind: remove unused winbindd_check_cache_size
Björn Jacke [Mon, 20 Sep 2010 05:57:23 +0000 (22:57 -0700)]
s3/winbind: remove unused winbindd_check_cache_size
(cherry picked from commit 1c82ca01c39e24251e59d7be44390baff998f329)

13 years agoReally enable core dumps in Linux
Rusty Russell [Mon, 20 Sep 2010 04:19:19 +0000 (13:49 +0930)]
Really enable core dumps in Linux

commit e1f1ce68e1f685400a8c68bcec14018e3d1fc29d
Author: Rusty Russell <rusty@rustcorp.com.au>
Date:   Mon Sep 20 13:33:30 2010 +0930

    source3: dump core on Linux, even after seteuid/etc.

    The "dumpable" flag is reset on every call to set*uid, so we need to
    reset it to 1 in the signal handler itself.

    This code dates back to commit ac01fda2b97b 6 years ago :(

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit dc192787955542510724541cf23b4d8ed4cc99d4)

13 years agos3-waf: add net.
Günther Deschner [Sun, 19 Sep 2010 20:35:26 +0000 (22:35 +0200)]
s3-waf: add net.

Guenther
(cherry picked from commit c9e17edfc6f9dc7f3ae251102dbb7bfcf08a770d)

13 years agos3-waf: Build libwbclient as dynamic library
Kai Blin [Sun, 19 Sep 2010 22:41:45 +0000 (15:41 -0700)]
s3-waf: Build libwbclient as dynamic library
(cherry picked from commit dbfb42c1b50e9372184ad170f10ba75b87565965)

13 years agos3-waf: add libnetapi
Günther Deschner [Mon, 20 Sep 2010 16:47:21 +0000 (09:47 -0700)]
s3-waf: add libnetapi
(cherry picked from commit 99d898938c7d656d852e4c91f7534e2cba99c5f8)

13 years agos3-waf: fix the file locations of gen_ndr'ed files.
Günther Deschner [Mon, 20 Sep 2010 01:18:49 +0000 (03:18 +0200)]
s3-waf: fix the file locations of gen_ndr'ed files.

Guenther
(cherry picked from commit c1a6820c85334da43ad47fcc1975a9b4c9577479)

13 years agos3-waf: fix the build after reg_api changes.
Günther Deschner [Mon, 20 Sep 2010 01:10:43 +0000 (03:10 +0200)]
s3-waf: fix the build after reg_api changes.

Guenther
(cherry picked from commit ad8533c0b0cffa037f1395d586381d8db642e93a)

13 years agos3-registry: move regf based reg_api calls into own file.
Günther Deschner [Mon, 20 Sep 2010 00:10:43 +0000 (02:10 +0200)]
s3-registry: move regf based reg_api calls into own file.

Guenther
(cherry picked from commit 91e8f8ded2f78bdd5b1db11562a575488a024322)

13 years agos3-registry: add reg_querymultiplevalues to reg_api matching table.
Günther Deschner [Sun, 19 Sep 2010 23:51:54 +0000 (01:51 +0200)]
s3-registry: add reg_querymultiplevalues to reg_api matching table.

Guenther
(cherry picked from commit 323f729df07794da6b79db5e72b1389fb79b8bde)

13 years agos3-waf: add rpcclient to the waf build.
Günther Deschner [Thu, 12 Aug 2010 13:42:16 +0000 (15:42 +0200)]
s3-waf: add rpcclient to the waf build.

Guenther
(cherry picked from commit 3f55c2ee7ac89f96e902b1f1b782e3e033e42f43)

13 years agos3-rpcclient: add some winreg commands.
Günther Deschner [Fri, 17 Sep 2010 11:17:12 +0000 (13:17 +0200)]
s3-rpcclient: add some winreg commands.

Guenther
(cherry picked from commit 9e058c6e7292b628ca08bb34b5930d0f4a77ef27)

13 years agolib/tdb: fix c++ build warning in tdb_header_hash().
Günther Deschner [Mon, 20 Sep 2010 23:01:51 +0000 (16:01 -0700)]
lib/tdb: fix c++ build warning in tdb_header_hash().

Guenther
(cherry picked from commit 1585c4df68a66569524a41def95488666dd827dd)

13 years agos3-build: only link in prs parser where needed.
Günther Deschner [Tue, 14 Sep 2010 21:58:10 +0000 (23:58 +0200)]
s3-build: only link in prs parser where needed.

Guenther
(cherry picked from commit 2d23ddb68d20a7e10297841ff7a550c03a8c6b74)

13 years agos3-waf: only link in prs parser where needed.
Günther Deschner [Wed, 15 Sep 2010 06:22:37 +0000 (08:22 +0200)]
s3-waf: only link in prs parser where needed.

Guenther
(cherry picked from commit f7051250eab1bb3336b3159e3b9a077a0e046263)

13 years agos3-build: use proper RPC_X_OBJ target names.
Günther Deschner [Fri, 10 Sep 2010 09:51:32 +0000 (11:51 +0200)]
s3-build: use proper RPC_X_OBJ target names.

Guenther
(cherry picked from commit 33fdf8dac2dfd843ea10e3703d65b903b253270e)

13 years agos3-waf: use proper RPC_X_SRC names.
Günther Deschner [Fri, 10 Sep 2010 09:49:49 +0000 (11:49 +0200)]
s3-waf: use proper RPC_X_SRC names.

This allows to build using waf without --enable-developer and should also fix
support for rpc server modules.

Guenther
(cherry picked from commit 4577fb3163f3921dfea45ee96c041e549cc84255)

13 years agos3-build: only link LIBNDR_XATTR_OBJ where needed.
Günther Deschner [Fri, 10 Sep 2010 09:28:54 +0000 (11:28 +0200)]
s3-build: only link LIBNDR_XATTR_OBJ where needed.

Guenther
(cherry picked from commit 7b1efc7282ea0a2e2f7ba84c5c2bb3cd0c6f52c5)

13 years agos3-waf: only link LIBNDR_XATTR_SRC where needed.
Günther Deschner [Fri, 10 Sep 2010 09:28:38 +0000 (11:28 +0200)]
s3-waf: only link LIBNDR_XATTR_SRC where needed.

Guenther
(cherry picked from commit 32a1b21f1c65589a142919f85cf78ece169d3d92)

13 years agos3-build: link ndr_notify only where needed.
Günther Deschner [Fri, 10 Sep 2010 09:27:52 +0000 (11:27 +0200)]
s3-build: link ndr_notify only where needed.

Guenther
(cherry picked from commit a1392ee9a04765d849e1d297fb5f156ad169afd0)

13 years agos3-waf: link ndr_notify only where needed.
Günther Deschner [Fri, 10 Sep 2010 09:26:35 +0000 (11:26 +0200)]
s3-waf: link ndr_notify only where needed.

Guenther
(cherry picked from commit b15ac83bda4adbdfc7b7e04ad126cffd8d44efba)

13 years agos3-build: link ndr_named_pipe_auth only where needed.
Günther Deschner [Fri, 10 Sep 2010 09:24:28 +0000 (11:24 +0200)]
s3-build: link ndr_named_pipe_auth only where needed.

Guenther
(cherry picked from commit ed239fc784299e6cfc4417101fdefbc413d6531c)

13 years agos3-waf: link ndr_named_pipe_auth only where needed.
Günther Deschner [Fri, 10 Sep 2010 09:23:59 +0000 (11:23 +0200)]
s3-waf: link ndr_named_pipe_auth only where needed.

Guenther
(cherry picked from commit f8b10a738c5da88a72fa969e217f6c72016d44b0)

13 years agos3-build: further rationalise LIBMSRPC_OBJ and remove RPC_CLIENT_OBJ.
Günther Deschner [Wed, 25 Aug 2010 22:13:55 +0000 (00:13 +0200)]
s3-build: further rationalise LIBMSRPC_OBJ and remove RPC_CLIENT_OBJ.

Guenther
(cherry picked from commit c5ffecb136225dba294327cc3a437e5f17475253)

13 years agos3-waf: further rationalise LIBMSRPC_SRC and remove RPC_CLIENT_SRC.
Günther Deschner [Wed, 25 Aug 2010 22:13:00 +0000 (00:13 +0200)]
s3-waf: further rationalise LIBMSRPC_SRC and remove RPC_CLIENT_SRC.

Guenther
(cherry picked from commit 6a795dd14674bfa2f6fe5206a9237f867c48e875)

13 years agos3-build: remove RPC_CLIENT_OBJ1.
Günther Deschner [Wed, 25 Aug 2010 22:05:34 +0000 (00:05 +0200)]
s3-build: remove RPC_CLIENT_OBJ1.

Guenther
(cherry picked from commit d6949f58fa82196fc67a87e6bf47a5c05698a734)

13 years agos3-waf: remove RPC_CLIENT_SRC1.
Günther Deschner [Wed, 25 Aug 2010 22:05:16 +0000 (00:05 +0200)]
s3-waf: remove RPC_CLIENT_SRC1.

Guenther
(cherry picked from commit 75e55f9535d3a66933c901658c61e1fdaa596515)

13 years agos3-build: use LIBMSRPC_OBJ instead of single files.
Günther Deschner [Wed, 25 Aug 2010 22:03:42 +0000 (00:03 +0200)]
s3-build: use LIBMSRPC_OBJ instead of single files.

Guenther
(cherry picked from commit a52fde4f944bf8cfa2dd69498bdf6da8e39c0139)

13 years agos3-waf: use LIBMSRPC_SRC instead of single files.
Günther Deschner [Wed, 25 Aug 2010 22:03:15 +0000 (00:03 +0200)]
s3-waf: use LIBMSRPC_SRC instead of single files.

Guenther
(cherry picked from commit 1217c4f48490e85ac953a3f285b0d9bacda0f243)

13 years agos3-waf: only link in samr util code where needed.
Günther Deschner [Thu, 19 Aug 2010 22:11:33 +0000 (00:11 +0200)]
s3-waf: only link in samr util code where needed.

Guenther
(cherry picked from commit 0b05e32f92cfc64de1c3ce02d1eb3ab4f8d5a25f)

13 years agos3-build: only link in samr util code where needed.
Günther Deschner [Thu, 19 Aug 2010 22:10:14 +0000 (00:10 +0200)]
s3-build: only link in samr util code where needed.

Guenther
(cherry picked from commit 4991af46d75018c31ec80dc28c3eabd6e541b8ab)

13 years agos3-build: remove RPC_PARSE_OBJ.
Günther Deschner [Thu, 19 Aug 2010 14:18:10 +0000 (16:18 +0200)]
s3-build: remove RPC_PARSE_OBJ.

Guenther
(cherry picked from commit ecf32c851a9b40d1f280e57770f8126420e52f86)

13 years agos3-waf: remove RPC_PARSE_SRC.
Günther Deschner [Thu, 19 Aug 2010 14:25:55 +0000 (16:25 +0200)]
s3-waf: remove RPC_PARSE_SRC.

Guenther
(cherry picked from commit 83dc8314f1a688dc43ae5129fb7b1edb74670202)

13 years agos3-build: only link in epmapper client code where needed.
Günther Deschner [Wed, 25 Aug 2010 21:53:24 +0000 (23:53 +0200)]
s3-build: only link in epmapper client code where needed.

Guenther
(cherry picked from commit 88720f80c5682ae8043f2c0558cc43354ad472b7)

13 years agos3-waf: only link in epmapper client code where needed.
Günther Deschner [Mon, 16 Aug 2010 22:59:23 +0000 (00:59 +0200)]
s3-waf: only link in epmapper client code where needed.

Guenther
(cherry picked from commit 4d78984570223a803353490b1fa39793ba9b98b3)

13 years agos3-build: only link in netlogon client code where needed.
Günther Deschner [Wed, 25 Aug 2010 21:15:52 +0000 (23:15 +0200)]
s3-build: only link in netlogon client code where needed.

Guenther
(cherry picked from commit ff5ab04882b1ae5940b0e9f41174d6e4e4b8f863)

13 years agos3-waf: only link in netlogon client code where needed.
Günther Deschner [Wed, 25 Aug 2010 21:14:33 +0000 (23:14 +0200)]
s3-waf: only link in netlogon client code where needed.

Guenther
(cherry picked from commit 13cff589178fdb03dfa35113930e85c50e368494)

13 years agos3: separate out cli schannel functions that depend on cli_netlogon.
Günther Deschner [Mon, 16 Aug 2010 22:46:25 +0000 (00:46 +0200)]
s3: separate out cli schannel functions that depend on cli_netlogon.

Guenther
(cherry picked from commit 0ed16e94c374efb06650f741827bcbed85f1af59)

13 years agos3-build: only link in samr client code where needed.
Günther Deschner [Fri, 13 Aug 2010 10:32:53 +0000 (12:32 +0200)]
s3-build: only link in samr client code where needed.

Guenther
(cherry picked from commit 064826c4d17f71e30386ff775935f86dd426f124)

13 years agos3-waf: only link in samr client code where needed.
Günther Deschner [Fri, 13 Aug 2010 10:27:20 +0000 (12:27 +0200)]
s3-waf: only link in samr client code where needed.

Guenther
(cherry picked from commit 6810ead40dc216c17c6ba1a9731d2598bf342c6d)

13 years agos3-build: only link in lsa client code where needed.
Günther Deschner [Thu, 12 Aug 2010 17:13:16 +0000 (19:13 +0200)]
s3-build: only link in lsa client code where needed.

Guenther
(cherry picked from commit 1895d669c260dfd0632d8ff88759bfd407286fa1)

13 years agos3-waf: only link in lsa client code where needed.
Günther Deschner [Thu, 12 Aug 2010 17:06:57 +0000 (19:06 +0200)]
s3-waf: only link in lsa client code where needed.

Guenther
(cherry picked from commit c107c662030d8874d4e359a1ec5075b4bfa6c39a)

13 years agos3-build: only link in srvsvc client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:58:49 +0000 (18:58 +0200)]
s3-build: only link in srvsvc client code where needed.

Guenther
(cherry picked from commit 562c5999ec636227a3b66bba314481f8367df90a)

13 years agos3-waf: only link in srvsvc client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:52:23 +0000 (18:52 +0200)]
s3-waf: only link in srvsvc client code where needed.

Guenther
(cherry picked from commit 0d0deba7bc8a8b1d7cdfa54f25111d9002ca50ee)

13 years agos3-build: only link in wkssvc client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:47:51 +0000 (18:47 +0200)]
s3-build: only link in wkssvc client code where needed.

Guenther
(cherry picked from commit 0ae0ca062bb040cc317cc767f37bfa693fb498a1)

13 years agos3-waf: only link in wkssvc client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:47:38 +0000 (18:47 +0200)]
s3-waf: only link in wkssvc client code where needed.

Guenther
(cherry picked from commit cfca94656a182522e1c36feda3455a05277cf486)

13 years agos3-build: only link in svcctl client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:42:06 +0000 (18:42 +0200)]
s3-build: only link in svcctl client code where needed.

Guenther
(cherry picked from commit 2190386518d9f10f754f91785b1f78b584f3cf4b)

13 years agos3-waf: only link in svcctl client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:41:45 +0000 (18:41 +0200)]
s3-waf: only link in svcctl client code where needed.

Guenther
(cherry picked from commit 03269d678351ea14cfede4d30291ca1bde294ff8)

13 years agos3-build: only link in dssetup client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:36:16 +0000 (18:36 +0200)]
s3-build: only link in dssetup client code where needed.

Guenther
(cherry picked from commit 9a195fd2330c13b3e9cb4029d41f640e85738d14)

13 years agos3-waf: only link in dssetup client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:36:06 +0000 (18:36 +0200)]
s3-waf: only link in dssetup client code where needed.

Guenther
(cherry picked from commit 2d72cab5d088fb87e23eebe45cea6735a2770712)

13 years agos3-build: only link in initshutdown client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:30:57 +0000 (18:30 +0200)]
s3-build: only link in initshutdown client code where needed.

Guenther
(cherry picked from commit 5c8b54820bf8b57977c38536a5a3e6c76c21dfe2)

13 years agos3-waf: only link in initshutdown client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:30:46 +0000 (18:30 +0200)]
s3-waf: only link in initshutdown client code where needed.

Guenther
(cherry picked from commit e25e9bec2489fe9ac13b59747ec1786969166889)

13 years agos3-build: only link in echo client code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:22:31 +0000 (18:22 +0200)]
s3-build: only link in echo client code where needed.

Guenther
(cherry picked from commit f97ff9d440316416eb91e30a48bffdf2aa207610)

13 years agos3-waf: only link in eventlog echo code where needed.
Günther Deschner [Thu, 12 Aug 2010 16:22:19 +0000 (18:22 +0200)]
s3-waf: only link in eventlog echo code where needed.

Guenther
(cherry picked from commit 3b24db6bf8fd0e9e8ff21cf4578256f8462d26ef)

13 years agos3-build: only link in dfs client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:50:37 +0000 (17:50 +0200)]
s3-build: only link in dfs client code where needed.

Guenther
(cherry picked from commit 0f10349f14e2439dedc2448d3649a5fea53c9dd4)

13 years agos3-waf: only link in dfs client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:47:48 +0000 (17:47 +0200)]
s3-waf: only link in dfs client code where needed.

Guenther
(cherry picked from commit 09b973f6bb9801c75cf623019b4b6b830ec8fae0)

13 years agos3-build: only link in drsuapi client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:45:54 +0000 (17:45 +0200)]
s3-build: only link in drsuapi client code where needed.

Guenther
(cherry picked from commit a66bb0d8ec40208020b4ce8cf80e110ec8e2a5e2)

13 years agos3-waf: only link in drsuapi client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:42:59 +0000 (17:42 +0200)]
s3-waf: only link in drsuapi client code where needed.

Guenther
(cherry picked from commit bd22ef79c2a8167da0783f9759fd7df63554a146)

13 years agos3-build: only link in ntsvcs client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:40:18 +0000 (17:40 +0200)]
s3-build: only link in ntsvcs client code where needed.

Guenther
(cherry picked from commit 4dbb682bc5ee9b1893ad815b710aac46d5bf94db)

13 years agos3-waf: only link in ntsvcs client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:38:09 +0000 (17:38 +0200)]
s3-waf: only link in ntsvcs client code where needed.

Guenther
(cherry picked from commit 1a00dd4aa7372e9ca9066b28f1ff7aaa7ce3d3a4)

13 years agos3-build: only link in winreg client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:35:24 +0000 (17:35 +0200)]
s3-build: only link in winreg client code where needed.

Guenther
(cherry picked from commit 50df1c6f8726f5f34c6031c70ae3df7026f949f4)

13 years agos3-waf: only link in winreg client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:31:40 +0000 (17:31 +0200)]
s3-waf: only link in winreg client code where needed.

Guenther
(cherry picked from commit ad855c0970c939da7bfe719a4707cf7f39eff330)

13 years agos3-build: only link in eventlog client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:28:48 +0000 (17:28 +0200)]
s3-build: only link in eventlog client code where needed.

Guenther
(cherry picked from commit 2af95fc88b95e0c251ef6df8084ac55ad73ade1a)

13 years agos3-build: only link in spoolss client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:19:59 +0000 (17:19 +0200)]
s3-build: only link in spoolss client code where needed.

Shrinks a lot of binaries by 1 MB each.

Guenther
(cherry picked from commit dc663295d19357773a0c5d990f50be831a1e76e8)

13 years agos3-waf: only link in spoolss client code where needed.
Günther Deschner [Thu, 12 Aug 2010 15:19:24 +0000 (17:19 +0200)]
s3-waf: only link in spoolss client code where needed.

Shrinks a lot of binaries by 1 MB each.

Guenther
(cherry picked from commit 72f30e82e406ae3690c0d324b844fc6b3a4c02c4)

13 years agos3-waf: Try to fix the idl build.
Andreas Schneider [Mon, 16 Aug 2010 19:30:26 +0000 (21:30 +0200)]
s3-waf: Try to fix the idl build.
(cherry picked from commit 1b022d1d3d613d2299350f9c8cea8cec4510d0b2)

13 years agos3-waf: Create a variable for LIBNDR_NTPRINTING_SRC.
Andreas Schneider [Mon, 16 Aug 2010 18:35:31 +0000 (20:35 +0200)]
s3-waf: Create a variable for LIBNDR_NTPRINTING_SRC.
(cherry picked from commit 5af3177dbd79c3fe494ae82509a37368c8caf204)

13 years agoRevert "s4:RPC-SPOOLSS-NOTIFY: skip test_RFFPCNEx() for now, as the test is broken"
Günther Deschner [Mon, 16 Aug 2010 10:11:19 +0000 (12:11 +0200)]
Revert "s4:RPC-SPOOLSS-NOTIFY: skip test_RFFPCNEx() for now, as the test is broken"

This reverts commit 8ca8250443319e0f19f05aab2014118fd03eaa8a.
(cherry picked from commit dba68d845200bb4416a87c5777de2b554110d20b)

13 years agos3-selftest: move make test to selftest.
Günther Deschner [Tue, 10 Aug 2010 09:33:03 +0000 (11:33 +0200)]
s3-selftest: move make test to selftest.

The old "make test" can be still called as "make oldtest".

Guenther
(cherry picked from commit f00b61c7d4611802c66495824c97af6cad69704e)

13 years agos3-waf: Fixed the build.
Andreas Schneider [Mon, 16 Aug 2010 18:18:20 +0000 (20:18 +0200)]
s3-waf: Fixed the build.
(cherry picked from commit f036b449db07c17d04b7f47b1defedef2c2a0970)

13 years agos3-waf: Fixed the rpc_client build.
Andreas Schneider [Mon, 16 Aug 2010 18:35:16 +0000 (20:35 +0200)]
s3-waf: Fixed the rpc_client build.
(cherry picked from commit 45c7f83ccb2822564ec8df3c41b5c0a9dead6e9c)

13 years agos3-waf: fix the build.
Günther Deschner [Thu, 12 Aug 2010 14:51:24 +0000 (16:51 +0200)]
s3-waf: fix the build.

Guenther
(cherry picked from commit 73a69e2d0f011327dddf2d0086e13b7b05397af7)

13 years agos4:auth Move struct auth_usersupplied_info to a common location
Andrew Bartlett [Tue, 4 May 2010 06:44:08 +0000 (16:44 +1000)]
s4:auth Move struct auth_usersupplied_info to a common location

This also changes the calling convention slightly - we should always
allocate this with talloc_zero() to allow some elements to be
optional.  Some elements may only make sense in Samba3, which I hope
will use this common structure.

Andrew Bartlett
(cherry picked from commit 272e49e85c47d88ef0a84bce88e6f8d984f2eae4)

13 years agos4:ntlmssp Merge more aspects of the source3/ NTLMSSP layer
Andrew Bartlett [Sat, 7 Aug 2010 08:56:35 +0000 (18:56 +1000)]
s4:ntlmssp Merge more aspects of the source3/ NTLMSSP layer

This changes the talloc treatment of the session keys to avoid
memory duplication - the session key has always been allocated
onto the ntlmssp_context by the auth subsystem callback.

The remainder of the changes are cosmetics, such as avoiding
using lm_session_key as a pointer (and avoiding then doing an
if statement on something that is always true).

Andrew Bartlett
(cherry picked from commit 4b47245a9d7292255a5dca8286283b5519de12e6)

13 years agos4:ntlmssp Re-add gensec_ntlmssp wrapper to allow merge with source3/
Andrew Bartlett [Fri, 6 Aug 2010 07:53:44 +0000 (17:53 +1000)]
s4:ntlmssp Re-add gensec_ntlmssp wrapper to allow merge with source3/

By re-adding this wrapper, the actual guts of these functions are now very
similar to that found in source3/libsmb/ntlmssp.c

This should make it easier to merge the implementations.

Andrew Bartlett
(cherry picked from commit 6644f48d724085f839da86ef75bd814a46359ea5)

13 years agos4:ntlmssp Always setup the session keys and signing state
Andrew Bartlett [Fri, 6 Aug 2010 07:51:34 +0000 (17:51 +1000)]
s4:ntlmssp Always setup the session keys and signing state

While it would save some CPU to only setup the session key when
requested (like windows does), this instead matches the
implementation in source3/libsmb/ntlmssp.c

We could re-add this later after the codebase is merged.

Andrew Bartlett
(cherry picked from commit 1979486c8ea9125cb8b16782acc0dcea9c6f552e)

13 years agos4:ntlmssp Adjust Samba4 ntlmssp code to look more like the code in Samba3.
Andrew Bartlett [Fri, 6 Aug 2010 06:14:11 +0000 (16:14 +1000)]
s4:ntlmssp Adjust Samba4 ntlmssp code to look more like the code in Samba3.

This does not change behaviour, and some of the whitespace isn't ideal, but
at the moment making this code more similar, even in cosmetics, will assist
later merge efforts.

Andrew Bartlett
(cherry picked from commit a2607a62f3ff359715e49fed93ec23f744e861b5)

13 years agos4-smbtorture: print SVCCTL security descriptor in test_QueryServiceObjectSecurity().
Günther Deschner [Tue, 21 Sep 2010 00:41:18 +0000 (17:41 -0700)]
s4-smbtorture: print SVCCTL security descriptor in test_QueryServiceObjectSecurity().

Guenther
(cherry picked from commit c201e494c476e3245f887c4491a909126d1c3333)

13 years agos4-smbtorture: add NetRemoteTOD libnetapi torture test.
Günther Deschner [Mon, 20 Sep 2010 20:53:09 +0000 (13:53 -0700)]
s4-smbtorture: add NetRemoteTOD libnetapi torture test.

Guenther
(cherry picked from commit 58c79b828baa15ba1619574c8277c455364676e8)

13 years agos3-libnetapi: Fix Bug #7665, memory leak in netapi connection manager.
Günther Deschner [Tue, 21 Sep 2010 04:05:37 +0000 (21:05 -0700)]
s3-libnetapi: Fix Bug #7665, memory leak in netapi connection manager.

Guenther
(cherry picked from commit 6f47a24bc55be0ea907594a748774675a105b5e3)

13 years agos3-dsgetdcname: cleanup receive_getdc_response a little.
Günther Deschner [Wed, 3 Dec 2008 09:40:04 +0000 (10:40 +0100)]
s3-dsgetdcname: cleanup receive_getdc_response a little.

Guenther
(cherry picked from commit c59961dd814965e1dedd172b5e11c31310b80cc7)

13 years agos3-spoolss: Fix _spoolss_GetPrinter().
Günther Deschner [Fri, 10 Sep 2010 14:55:23 +0000 (16:55 +0200)]
s3-spoolss: Fix _spoolss_GetPrinter().

In the error case, we need to TALLOC_FREE(r->out.info), don't ask :-)

Guenther
(cherry picked from commit bf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f)

13 years agos4-smbtorture: fill in trust_domain_passwords_check_in in NDR lsa test.
Günther Deschner [Fri, 16 Jul 2010 02:07:01 +0000 (04:07 +0200)]
s4-smbtorture: fill in trust_domain_passwords_check_in in NDR lsa test.

Guenther
(cherry picked from commit df7c7185fd61646efcbb506557078547c58f7b97)

13 years agos4-trusts: fix trustDomainPasswords drsblobs IDL and server side support.
Günther Deschner [Fri, 16 Jul 2010 02:06:48 +0000 (04:06 +0200)]
s4-trusts: fix trustDomainPasswords drsblobs IDL and server side support.

Also remove bogus trustCurrentPasswords struct which we just had because our IDL
was incorrect.

Guenther
(cherry picked from commit e2f15d2a25302ee529006b2d1d6b99993c7102e8)

13 years agos4-smbtorture: add test_SetServiceObjectSecurity() to RPC-SVCCTL.
Günther Deschner [Fri, 24 Apr 2009 11:44:54 +0000 (13:44 +0200)]
s4-smbtorture: add test_SetServiceObjectSecurity() to RPC-SVCCTL.

Guenther
(cherry picked from commit f12756b5acac3fad4178f009865f8bcc5b6934a2)

13 years agos4-smbtorture: add LOCAL-NDR-NTLMSSP.
Günther Deschner [Tue, 14 Sep 2010 15:27:55 +0000 (17:27 +0200)]
s4-smbtorture: add LOCAL-NDR-NTLMSSP.

Guenther
(cherry picked from commit 55f465576c4602e74a6bc5c194adb27231c520f8)

13 years agos3-nltest: add dsregdns command to nltest.
Günther Deschner [Fri, 17 Sep 2010 11:16:26 +0000 (13:16 +0200)]
s3-nltest: add dsregdns command to nltest.

Guenther
(cherry picked from commit 1d8094172c69ec8d64701b70a87ddf31b0d8f4f9)

13 years agos3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().
Günther Deschner [Fri, 17 Sep 2010 11:15:35 +0000 (13:15 +0200)]
s3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().

Guenther
(cherry picked from commit 8e73826b3c2323c6e81a285f49c6b9d606cb7a53)

13 years agolibnetapi: deal with NULL data in I_NetLogonControl2().
Günther Deschner [Fri, 17 Sep 2010 11:14:50 +0000 (13:14 +0200)]
libnetapi: deal with NULL data in I_NetLogonControl2().

Guenther
(cherry picked from commit 47a7a5830c145dd12e200fa12fec41bc745046d3)

13 years agotestprogs: skip two tests in spoolss tester.
Günther Deschner [Fri, 17 Sep 2010 08:06:16 +0000 (10:06 +0200)]
testprogs: skip two tests in spoolss tester.

Guenther
(cherry picked from commit b772f4cdffda7f7e1bd0a7951bec0304102606d2)

13 years agos3-nltest: add dsgetdc command.
Günther Deschner [Fri, 10 Sep 2010 07:56:36 +0000 (09:56 +0200)]
s3-nltest: add dsgetdc command.

Guenther
(cherry picked from commit c35629cbb2e5f7c6743c8c15e0b3bb424e611931)

13 years agos3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().
Günther Deschner [Wed, 15 Sep 2010 08:11:38 +0000 (10:11 +0200)]
s3-libnetapi: try using netr_DsRGetDCNameEx() in DsGetDcName().

Guenther
(cherry picked from commit bbdbb0cbcc3de9a3188b77c2d34cf46a33bbe980)

13 years agos3-libnetapi: add DS request flags to public header.
Günther Deschner [Fri, 10 Sep 2010 23:23:01 +0000 (01:23 +0200)]
s3-libnetapi: add DS request flags to public header.

Guenther
(cherry picked from commit 3fe966d28003f8a09a29c9a9051672e0e066e7b6)

13 years agos3-libnetapi: add DS_X_FLAGs to public header.
Günther Deschner [Fri, 10 Sep 2010 23:19:07 +0000 (01:19 +0200)]
s3-libnetapi: add DS_X_FLAGs to public header.

Guenther
(cherry picked from commit 26672e228a6eb327f5810ee1b6adb8b4bb39d5ec)

13 years agolibnetapi: add DOMAIN_CONTROLLER_INFO_FLAGS.
Günther Deschner [Fri, 10 Sep 2010 23:18:04 +0000 (01:18 +0200)]
libnetapi: add DOMAIN_CONTROLLER_INFO_FLAGS.

Guenther
(cherry picked from commit 45d772e0e616186cd8b45c81d7c775e07ab0d7ae)

13 years agos3-nltest: convert server input argument into --server.
Günther Deschner [Tue, 14 Sep 2010 15:39:45 +0000 (17:39 +0200)]
s3-nltest: convert server input argument into --server.

Guenther
(cherry picked from commit 5901e81acff9b6da965782276e457069bf2be55d)

13 years agos3-nltest: rename print_result to print_netlogon_info_result.
Günther Deschner [Fri, 10 Sep 2010 07:56:02 +0000 (09:56 +0200)]
s3-nltest: rename print_result to print_netlogon_info_result.

Guenther
(cherry picked from commit a609c03956843b11d335b7f3b0f8d5a330588711)

13 years agos4-smbtorture: try to fix spoolss winreg Form tests on bigendian machines.
Günther Deschner [Tue, 14 Sep 2010 13:23:45 +0000 (15:23 +0200)]
s4-smbtorture: try to fix spoolss winreg Form tests on bigendian machines.

Guenther
(cherry picked from commit 73edd661eaec3b1f0d8705d545160ff4a2d97948)

13 years agos3-spoolss: allow a short printername w/o servername.
Günther Deschner [Thu, 2 Sep 2010 11:19:02 +0000 (13:19 +0200)]
s3-spoolss: allow a short printername w/o servername.

Verified with RPC-SPOOLSS-PRINTSERVER-enumprinters_old test.

Guenther
(cherry picked from commit 26ea51c7ab59f54f0b88f1367a0982404b9be18b)

13 years agos3-selftest: rename printer "print4" to "lp".
Günther Deschner [Thu, 2 Sep 2010 11:39:12 +0000 (13:39 +0200)]
s3-selftest: rename printer "print4" to "lp".

This should trigger a false error condition in our code.

Guenther
(cherry picked from commit 9962462278e250f4ad2aa068bb6afb8015270e81)