ira/tdb.git
12 years agos3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2. master
Alexander Bokovoy [Fri, 2 Mar 2012 14:18:16 +0000 (16:18 +0200)]
s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.

On LSA and SAMR pipes session_key is truncated to 16 byte when doing encryption/decryption.
However, this was not done for trusted domain-related modifying operations.

As result, Samba 4 client libraries do not work against Samba 3 while working
against Windows 2008 r2.

Solved this by introducing "session_extract_session_key()" function that allows to specify
intent of use of the key.

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 12:23:44 CET 2012 on sn-devel-104

12 years agoselftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now
Stefan Metzmacher [Tue, 13 Mar 2012 07:25:58 +0000 (08:25 +0100)]
selftest: samba3.smbtorture_s3.LOCAL-TALLOC-DICT works now

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Mar 13 10:38:20 CET 2012 on sn-devel-104

12 years agos3:torture: fix segfault in LOCAL-TALLOC-DICT
Stefan Metzmacher [Tue, 13 Mar 2012 07:22:03 +0000 (08:22 +0100)]
s3:torture: fix segfault in LOCAL-TALLOC-DICT

talloc_dict_set() expects a pointer to an talloc'ed pointer.

metze

12 years agos3:torture: talloc_dict_traverse() returns the number of entries
Stefan Metzmacher [Tue, 13 Mar 2012 07:21:15 +0000 (08:21 +0100)]
s3:torture: talloc_dict_traverse() returns the number of entries

metze

12 years agoselftest.run: Use subunit version of iso8601.
Jelmer Vernooij [Sun, 11 Mar 2012 22:56:56 +0000 (23:56 +0100)]
selftest.run: Use subunit version of iso8601.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar 12 01:36:25 CET 2012 on sn-devel-104

12 years agoselftest.py: Remove some unnecessary checks.
Jelmer Vernooij [Sun, 11 Mar 2012 20:46:00 +0000 (21:46 +0100)]
selftest.py: Remove some unnecessary checks.

12 years agoselftest.py: Move some infrastructure for running commands to selftest.run, with...
Jelmer Vernooij [Sun, 11 Mar 2012 19:58:00 +0000 (20:58 +0100)]
selftest.py: Move some infrastructure for running commands to selftest.run, with tests.

12 years agoupgradedns: Remove unused import.
Jelmer Vernooij [Sun, 11 Mar 2012 18:58:47 +0000 (19:58 +0100)]
upgradedns: Remove unused import.

12 years agosamba-tool: Write diagnostics to stderr rather than stdout.
Jelmer Vernooij [Sun, 11 Mar 2012 18:58:23 +0000 (19:58 +0100)]
samba-tool: Write diagnostics to stderr rather than stdout.

12 years agos4:upgradeprovision - fix some output messages
Matthias Dieter Wallnöfer [Sun, 11 Mar 2012 09:29:10 +0000 (10:29 +0100)]
s4:upgradeprovision - fix some output messages

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Mar 11 21:54:54 CET 2012 on sn-devel-104

12 years agos3: Improve statvfs support
Brad Smith [Sat, 10 Mar 2012 18:16:06 +0000 (19:16 +0100)]
s3: Improve statvfs support

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104

12 years agowaf: Do not use standards.h on darwin
Volker Lendecke [Sat, 10 Mar 2012 09:26:10 +0000 (10:26 +0100)]
waf: Do not use standards.h on darwin

We get a nasty warning every time we include that

12 years agos4 dns: Test deleting records and fix a small bu
Kai Blin [Sat, 10 Mar 2012 23:25:57 +0000 (00:25 +0100)]
s4 dns: Test deleting records and fix a small bu

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun Mar 11 02:27:45 CET 2012 on sn-devel-104

12 years agos4 dns: Be less chatty during tests
Kai Blin [Sat, 10 Mar 2012 23:25:05 +0000 (00:25 +0100)]
s4 dns: Be less chatty during tests

12 years agos4 dns: Clean up tests a bit
Kai Blin [Sat, 10 Mar 2012 22:49:18 +0000 (23:49 +0100)]
s4 dns: Clean up tests a bit

12 years agos4 dns: Support TXT updates, add tests
Kai Blin [Sat, 10 Mar 2012 22:48:44 +0000 (23:48 +0100)]
s4 dns: Support TXT updates, add tests

12 years agos4 dns: Support TXT queries
Kai Blin [Sat, 10 Mar 2012 22:47:29 +0000 (23:47 +0100)]
s4 dns: Support TXT queries

12 years agos3 selftest: Allow DNS updates during testing
Kai Blin [Sat, 10 Mar 2012 22:43:44 +0000 (23:43 +0100)]
s3 selftest: Allow DNS updates during testing

12 years agotdb_wrap: Move to specific directory.
Jelmer Vernooij [Sat, 10 Mar 2012 20:33:11 +0000 (21:33 +0100)]
tdb_wrap: Move to specific directory.

It's a bit confusing to mix low-level and high-level libraries.  We had
multiple libraries in one directory, and there were have circular
dependencies with other libraries outside that directory (in this case,
samba-hostconfig).

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104

12 years agosamba.tests.blackbox.samba_tool_drs: Remove unused import.
Jelmer Vernooij [Wed, 7 Mar 2012 09:30:34 +0000 (10:30 +0100)]
samba.tests.blackbox.samba_tool_drs: Remove unused import.

12 years agowscript: Include talloc, tdb and ldb in pydoctor output.
Jelmer Vernooij [Tue, 6 Mar 2012 22:40:39 +0000 (23:40 +0100)]
wscript: Include talloc, tdb and ldb in pydoctor output.

12 years agosamba.samdb: Fix formatting of arguments in docstring.
Jelmer Vernooij [Tue, 6 Mar 2012 22:31:55 +0000 (23:31 +0100)]
samba.samdb: Fix formatting of arguments in docstring.

12 years agopydoctor: Specify --project-name.
Jelmer Vernooij [Tue, 6 Mar 2012 22:21:44 +0000 (23:21 +0100)]
pydoctor: Specify --project-name.

12 years agopython: samba: Use relative import for _glue.
Jelmer Vernooij [Tue, 6 Mar 2012 22:20:12 +0000 (23:20 +0100)]
python: samba: Use relative import for _glue.

For some reason, using an absolute import breaks pydoctor.

12 years agotevent: Install tevent.py into PYTHONARCHDIR rather than PYTHONDIR for consistency...
Jelmer Vernooij [Tue, 6 Mar 2012 17:07:20 +0000 (18:07 +0100)]
tevent: Install tevent.py into PYTHONARCHDIR rather than PYTHONDIR for consistency with other Samba scripts.

12 years agoselftest: fix running additional smbclient test for non-spnego session setup
Andrew Bartlett [Sat, 10 Mar 2012 17:45:05 +0000 (04:45 +1100)]
selftest: fix running additional smbclient test for non-spnego session setup

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Mar 10 20:46:05 CET 2012 on sn-devel-104

12 years agos3: fix build on AIX
Björn Jacke [Sat, 10 Mar 2012 10:15:12 +0000 (11:15 +0100)]
s3: fix build on AIX

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Sat Mar 10 19:07:20 CET 2012 on sn-devel-104

12 years agos3: Add smb_request_done
Volker Lendecke [Sun, 4 Mar 2012 11:10:04 +0000 (12:10 +0100)]
s3: Add smb_request_done

This is used to enable async chained command sequences. A synchronous
reply_xxx command does not need to take are anymore about and_x
chaining. The async commands (pipe r/w at this moment) must do so
however. When finished, they must inform the main chain engine that
they are finished with a smb_request_done call.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104

12 years agos3: Remove unused smb_request->done
Volker Lendecke [Fri, 2 Mar 2012 23:59:56 +0000 (00:59 +0100)]
s3: Remove unused smb_request->done

12 years agos3: Remove unused smb_request->chain_outbuf
Volker Lendecke [Fri, 2 Mar 2012 23:34:27 +0000 (00:34 +0100)]
s3: Remove unused smb_request->chain_outbuf

12 years agos3: Remove "req_wct_ofs()"
Volker Lendecke [Fri, 2 Mar 2012 23:33:15 +0000 (00:33 +0100)]
s3: Remove "req_wct_ofs()"

This is fixed up in construct_reply_chain

12 years agos3: Fix the read&x offset within a chain
Volker Lendecke [Wed, 29 Feb 2012 22:44:36 +0000 (23:44 +0100)]
s3: Fix the read&x offset within a chain

12 years agos3: Remove chain_reply
Volker Lendecke [Tue, 28 Feb 2012 00:21:44 +0000 (01:21 +0100)]
s3: Remove chain_reply

<insert your favourite tombstone ascii art here>

12 years agos3: Replace chain_reply
Volker Lendecke [Mon, 27 Feb 2012 23:56:10 +0000 (00:56 +0100)]
s3: Replace chain_reply

This is a new implementation of our andx handling code. The old
code was quite involved in that it was called from within the reply_
handlers. This leads to pretty complex faking of smb_request
structures to give them the same environment, independent of whether
they are called directly or from within chain_reply.

chain_reply needs to go because it blocks really async handling of
chained requests.

12 years agos3: Add a new set of andx chain handling routines
Volker Lendecke [Mon, 27 Feb 2012 23:19:48 +0000 (00:19 +0100)]
s3: Add a new set of andx chain handling routines

This is in preparation of getting rid of chain_reply.

12 years agos3: Make sure the andX chains are ended correctly
Volker Lendecke [Sun, 26 Feb 2012 15:49:09 +0000 (16:49 +0100)]
s3: Make sure the andX chains are ended correctly

Normally chain_reply took care of this. This will go away soon.

12 years agos3: Fix a 64-bit warning
Volker Lendecke [Sat, 10 Mar 2012 12:45:41 +0000 (13:45 +0100)]
s3: Fix a 64-bit warning

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar 10 15:27:09 CET 2012 on sn-devel-104

12 years agolib/tdb: fix tests for standalone out-of-tree.
Rusty Russell [Sat, 10 Mar 2012 03:38:48 +0000 (14:08 +1030)]
lib/tdb: fix tests for standalone out-of-tree.

Commit 4d58d0fa8f936e7efdc02e31c053d42a47b3e62a didn't work for lib/tdb
outside the build tree: symlink was pointing to wrong place.

Copy simplification from lib/tdb2, and fix the build farm.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Sat Mar 10 07:07:45 CET 2012 on sn-devel-104

12 years agosamba.tests.samba_tool.base: Avoid unnecessary call to testtools.matchers.Contains.
Jelmer Vernooij [Fri, 9 Mar 2012 23:23:40 +0000 (00:23 +0100)]
samba.tests.samba_tool.base: Avoid unnecessary call to testtools.matchers.Contains.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 05:27:51 CET 2012 on sn-devel-104

12 years agosamba.tests.samba_tool.user: Remove unused imports.
Jelmer Vernooij [Fri, 9 Mar 2012 23:23:18 +0000 (00:23 +0100)]
samba.tests.samba_tool.user: Remove unused imports.

12 years agoEnsure the right tsocket.h is included.
Jeremy Allison [Sat, 10 Mar 2012 01:08:36 +0000 (17:08 -0800)]
Ensure the right tsocket.h is included.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104

12 years agoFix up Christian Ambach's multi-credit code - the CreditCharge field is a 16-bit...
Jeremy Allison [Sat, 10 Mar 2012 00:47:21 +0000 (16:47 -0800)]
Fix up Christian Ambach's multi-credit code - the CreditCharge field is a 16-bit int read, not a 32-bit one.

12 years agos3:smb2_server validate message ids with largemtu
Christian Ambach [Tue, 28 Feb 2012 01:53:04 +0000 (17:53 -0800)]
s3:smb2_server validate message ids with largemtu

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server verify creditcharge
Christian Ambach [Tue, 28 Feb 2012 01:51:40 +0000 (17:51 -0800)]
s3:smb2_server verify creditcharge

for all requests that have max_???? checks, also do a check of the
creditcharge the client has sent (when using largemtu)

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server add function to verify creditcharge
Christian Ambach [Tue, 28 Feb 2012 01:49:12 +0000 (17:49 -0800)]
s3:smb2_server add function to verify creditcharge

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server: announce LargeMTU for SMB2.1
Christian Ambach [Mon, 27 Feb 2012 13:57:47 +0000 (05:57 -0800)]
s3:smb2_server: announce LargeMTU for SMB2.1

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server increase defaults for read/write/trans sizes to 1MB
Christian Ambach [Tue, 28 Feb 2012 05:33:13 +0000 (21:33 -0800)]
s3:smb2_server increase defaults for read/write/trans sizes to 1MB

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server: add supports_multicredit to sconn
Christian Ambach [Tue, 28 Feb 2012 01:45:09 +0000 (17:45 -0800)]
s3:smb2_server: add supports_multicredit to sconn

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3:smb2_server use the correct variables for max read/write
Christian Ambach [Mon, 27 Feb 2012 13:56:57 +0000 (05:56 -0800)]
s3:smb2_server use the correct variables for max read/write

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agoFix bug #8797 - Samba does not correctly handle DENY ACEs when privileges apply.
Richard Sharpe [Fri, 9 Mar 2012 22:54:38 +0000 (14:54 -0800)]
Fix bug #8797 - Samba does not correctly handle DENY ACEs when privileges apply.
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Mar 10 01:33:45 CET 2012 on sn-devel-104

12 years agos3: asprintf->talloc_asprintf
Volker Lendecke [Fri, 9 Mar 2012 13:47:43 +0000 (14:47 +0100)]
s3: asprintf->talloc_asprintf

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Mar  9 19:01:06 CET 2012 on sn-devel-104

12 years agos3: Replace a SMB_ASSERT with an error return
Volker Lendecke [Fri, 9 Mar 2012 13:45:21 +0000 (14:45 +0100)]
s3: Replace a SMB_ASSERT with an error return

12 years agos3: Remove some superfluous ()
Volker Lendecke [Fri, 9 Mar 2012 15:24:56 +0000 (16:24 +0100)]
s3: Remove some superfluous ()

12 years agos4 dns: Add support for PTR queries.
Kai Blin [Fri, 9 Mar 2012 09:43:27 +0000 (10:43 +0100)]
s4 dns: Add support for PTR queries.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Fri Mar  9 12:27:38 CET 2012 on sn-devel-104

12 years agos4-librpc: Remove unused new_ev
Andrew Bartlett [Fri, 9 Mar 2012 04:30:00 +0000 (15:30 +1100)]
s4-librpc: Remove unused new_ev

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar  9 07:18:45 CET 2012 on sn-devel-104

12 years agoauth/ntlmssp: Remove reference to struct ntlmssp_state
Andrew Bartlett [Fri, 9 Mar 2012 03:29:55 +0000 (14:29 +1100)]
auth/ntlmssp: Remove reference to struct ntlmssp_state

12 years agoauth/ntlmssp: Remove gensec_security element from gensec_ntlmssp_state
Andrew Bartlett [Fri, 9 Mar 2012 03:28:46 +0000 (14:28 +1100)]
auth/ntlmssp: Remove gensec_security element from gensec_ntlmssp_state

This just means there is one less pointer to ensure we initialise.

Andrew Bartlett

12 years agoselftest: mark samba3.smb2.session tests as knownfail instead of skip
Stefan Metzmacher [Thu, 8 Mar 2012 13:22:15 +0000 (14:22 +0100)]
selftest: mark samba3.smb2.session tests as knownfail instead of skip

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

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  9 02:34:38 CET 2012 on sn-devel-104

12 years agos4:torture/smb2: avoid hanging in smb2.session.reconnect against samba
Stefan Metzmacher [Thu, 8 Mar 2012 13:15:19 +0000 (14:15 +0100)]
s4:torture/smb2: avoid hanging in smb2.session.reconnect against samba

Now we fail the test directly instead of waiting for oplocks to timeout.

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

metze

12 years agoauth/kerberos: Fall back to gsskrb5_get_subkey if we did not get the key type
Andrew Bartlett [Thu, 8 Mar 2012 05:16:12 +0000 (16:16 +1100)]
auth/kerberos: Fall back to gsskrb5_get_subkey if we did not get the key type

The key type OID is optional, but we require that information to determine if
we should use NEW_SPNEGO.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar  8 11:53:57 CET 2012 on sn-devel-104

12 years agoauth/kerberos: Ensure we do not print invalid memory in failure case
Andrew Bartlett [Thu, 8 Mar 2012 05:15:09 +0000 (16:15 +1100)]
auth/kerberos: Ensure we do not print invalid memory in failure case

This codeblock may not have any set->elements, so we should not print them.  Copy&paste in the original code.

Andrew Bartlett

12 years agowintest: continue turning over VMs...
Andrew Bartlett [Thu, 8 Mar 2012 03:57:07 +0000 (14:57 +1100)]
wintest: continue turning over VMs...

12 years agodlz_bind9: Log Samba DEBUG() messages to the bind9 logs
Andrew Bartlett [Thu, 8 Mar 2012 01:21:56 +0000 (12:21 +1100)]
dlz_bind9: Log Samba DEBUG() messages to the bind9 logs

12 years agolib/util: Add a callback facility for debug messages
Andrew Bartlett [Thu, 8 Mar 2012 01:21:26 +0000 (12:21 +1100)]
lib/util: Add a callback facility for debug messages

This will allow dlz_bind9 to put log messages somewhere useful, which
may make it easier to debug.

Andrew Bartlett

12 years agos3-auth: Remove single-implementation plugin layer
Andrew Bartlett [Fri, 3 Feb 2012 10:58:44 +0000 (21:58 +1100)]
s3-auth: Remove single-implementation plugin layer

The ->get_ntlm_challenge and ->check_ntlm_password elements of struct auth_context
were only ever initialised to a single value.  Make it easier to follow by
just calling the function directly.

Andrew Bartlett

12 years agos3-auth: Follow auth_ntlmssp and use auth4_context for Session Setup
Andrew Bartlett [Fri, 3 Feb 2012 06:09:37 +0000 (17:09 +1100)]
s3-auth: Follow auth_ntlmssp and use auth4_context for Session Setup

This patch ensures consistency in behaviour between NTLMSSP and NTLM
session setup handlers.  By calling the same layer that auth_ntlmssp
calls, we can not only allow redirection of all authentication to the
AD DC, we ensure that map to guest and username map handling is
consistent, even in the file server alone.

Andrew Bartlett

12 years agoselftest: add more tests for different authentication codepaths
Andrew Bartlett [Thu, 8 Mar 2012 04:37:29 +0000 (15:37 +1100)]
selftest: add more tests for different authentication codepaths

12 years agoautobuild: Enable standalone tdb2 tests
Amitay Isaacs [Wed, 7 Mar 2012 02:32:22 +0000 (13:32 +1100)]
autobuild: Enable standalone tdb2 tests

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Mar  8 09:32:24 CET 2012 on sn-devel-104

12 years agofailtest: don't assume FD_SETSIZE is maximum runtime fd.
Rusty Russell [Thu, 8 Mar 2012 03:44:22 +0000 (14:14 +1030)]
failtest: don't assume FD_SETSIZE is maximum runtime fd.

This breaks when rlimit is less.  Unfortunately, valgrind (32 bit x86,
3.7.0.SVN, Ubuntu) fails to set the file limit properly on the test:
reducing it to the obvious getrlimit/setrlimit/getrlimit works fine,
so leaving diagnostics for another day.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit a85a809bb17af6b6cf6fa31b300c6622f64ee700)

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Thu Mar  8 06:30:48 CET 2012 on sn-devel-104

12 years agos4-selftest: create the st/provision if it didn't exists already
Matthieu Patou [Wed, 7 Mar 2012 07:22:54 +0000 (23:22 -0800)]
s4-selftest: create the st/provision if it didn't exists already

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Mar  8 00:25:24 CET 2012 on sn-devel-104

12 years agos4-upgradeprovision: Add options to do a DB backup only and not to fix acls in sysvol
Matthieu Patou [Wed, 7 Mar 2012 05:44:45 +0000 (21:44 -0800)]
s4-upgradeprovision: Add options to do a DB backup only and not to fix acls in sysvol

12 years agoChange default protocol to SMB2_02.
Jeremy Allison [Wed, 7 Mar 2012 19:58:51 +0000 (11:58 -0800)]
Change default protocol to SMB2_02.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Mar  7 22:41:21 CET 2012 on sn-devel-104

12 years agos3: piddir creation fix part 2.
Ira Cooper [Wed, 7 Mar 2012 01:58:37 +0000 (20:58 -0500)]
s3: piddir creation fix part 2.

Since the piddir got moved from the lockdir by default, the default piddir
wasn't getting created, stopping some configurations from running.

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agoaddns: Fix the Solaris/Illumos build.
Ira Cooper [Wed, 7 Mar 2012 00:22:46 +0000 (19:22 -0500)]
addns: Fix the Solaris/Illumos build.

uuid_t is not defined without including sys/uuid.h, configure+waf checks added.

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos3: piddir creation fix.
Ira Cooper [Wed, 7 Mar 2012 00:25:16 +0000 (19:25 -0500)]
s3: piddir creation fix.

Since the piddir got moved from the lockdir by default, the default piddir
wasn't getting created stopping some configurations from running.

Signed-off-by: Jeremy Allison <jra@samba.org>
12 years agos4:librpc/rpc: make dcerpc_bh_raw_call_* more robust against disconnects and timeouts
Stefan Metzmacher [Wed, 7 Mar 2012 15:54:18 +0000 (16:54 +0100)]
s4:librpc/rpc: make dcerpc_bh_raw_call_* more robust against disconnects and timeouts

Using tevent_req_defer_callback() should make the situation a bit better,
until we have a common robust low level dcerpc library.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  7 18:44:24 CET 2012 on sn-devel-104

12 years agos4:librpc/rpc: make dcerpc_bh_is_connected() more robust
Stefan Metzmacher [Wed, 7 Mar 2012 15:52:57 +0000 (16:52 +0100)]
s4:librpc/rpc: make dcerpc_bh_is_connected() more robust

metze

12 years agos3-rpc_server: Do not register embedded ncacn_np endpoints by default
Andrew Bartlett [Wed, 7 Mar 2012 10:39:14 +0000 (21:39 +1100)]
s3-rpc_server: Do not register embedded ncacn_np endpoints by default

The end point mapper is primarily in support of lsasd, and the key
SAMR, LSA and NETLOGON services being accessed over TCP/IP.  The end
point mapper does not appear to be used for the well-known mappings to
named pipes, and we have a problem with how to safely register the
embedded pipes.  For now, disable this to avoid re-registration storms
in production, until we sort out a better way.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar  7 14:27:38 CET 2012 on sn-devel-104

12 years agos3-rpc_server: Register embedded RPC services after starting lsasd and spoolssd
Andrew Bartlett [Wed, 7 Mar 2012 10:24:01 +0000 (21:24 +1100)]
s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssd

This ensures that these services are not accidentally registered in
these child processes.

Andrew Bartlett

12 years agos4-smb_server: Put error from share_get_config() into the logs
Andrew Bartlett [Mon, 5 Mar 2012 20:34:16 +0000 (07:34 +1100)]
s4-smb_server: Put error from share_get_config() into the logs

12 years agos3-rpc_server: Do not setup ncalrpc pipes and TCP for embedded rpc servers
Andrew Bartlett [Tue, 6 Mar 2012 11:11:06 +0000 (22:11 +1100)]
s3-rpc_server: Do not setup ncalrpc pipes and TCP for embedded rpc servers

Embedded RPC services are those not launched in the preforked lsasd
and spoolssd children.

The reason that these child processes were created is that is is not
possible to correctly listen for ncalrpc and TCP connections without
creating a child process.  Therefore, we should not have these
embedded RPC services to listen on these sockets just because the
endpoint mapper has been enabled.

Andrew Bartlett

12 years agoselftest: Only run s3dc with a forked lsasd
Andrew Bartlett [Tue, 6 Mar 2012 11:04:55 +0000 (22:04 +1100)]
selftest: Only run s3dc with a forked lsasd

This ensures that we run ktest, member and s3member in the default
configuration, to try and cover both code paths.

(This does not change the tests being run, but at least the
initialisation code will be checked, plus whatever the rpcclient test
can cover).

Andrew Bartlett

12 years agos3-smbd make change_to_user_by_session static
Andrew Bartlett [Tue, 6 Mar 2012 11:25:50 +0000 (22:25 +1100)]
s3-smbd make change_to_user_by_session static

12 years agoselftest: mark samba4.smb2.getinfo.getinfo as knownfail
Stefan Metzmacher [Tue, 6 Mar 2012 20:23:52 +0000 (21:23 +0100)]
selftest: mark samba4.smb2.getinfo.getinfo as knownfail

Samba4 seems to have problems with streams on directories.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  7 12:44:10 CET 2012 on sn-devel-104

12 years agos4:torture: smb2.getinfo test return status of stream creation
Gregor Beck [Tue, 6 Mar 2012 10:48:52 +0000 (11:48 +0100)]
s4:torture: smb2.getinfo test return status of stream creation

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:torture/smb2: add simple smb2.session.reauth test
Gregor Beck [Tue, 6 Mar 2012 14:46:48 +0000 (15:46 +0100)]
s4:torture/smb2: add simple smb2.session.reauth test

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:libcli/smb2: allow smb2_session_setup_spnego to handle reauth
Gregor Beck [Tue, 6 Mar 2012 14:45:37 +0000 (15:45 +0100)]
s4:libcli/smb2: allow smb2_session_setup_spnego to handle reauth

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-libcli: pysmb: Fix typo in secinfo_flags
Amitay Isaacs [Wed, 7 Mar 2012 05:40:23 +0000 (16:40 +1100)]
s4-libcli: pysmb: Fix typo in secinfo_flags

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar  7 10:56:09 CET 2012 on sn-devel-104

12 years agolib/tdb2: add --valgrind, --valgrind-log options.
Rusty Russell [Wed, 22 Feb 2012 06:51:13 +0000 (17:21 +1030)]
lib/tdb2: add --valgrind, --valgrind-log options.

Not used by default, since it slows down testing (on my laptop) from
22 seconds to 2 minutes 30 seconds.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar  7 04:57:21 CET 2012 on sn-devel-104

12 years agolib/tdb2: wire up unit tests.
Rusty Russell [Wed, 22 Feb 2012 06:51:04 +0000 (17:21 +1030)]
lib/tdb2: wire up unit tests.

The tests are ccan-style, so the names tell how to link them.  This
logic is generic, and could be moved to wafsamba, cleaned up, and used
elsewhere.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agolib/tdb2: adapt unit tests to SAMBA environment.
Rusty Russell [Wed, 22 Feb 2012 04:33:37 +0000 (15:03 +1030)]
lib/tdb2: adapt unit tests to SAMBA environment.

This means changing headers, implementing a simple tap-like wrapper,
and also splitting out the helpers into those which are linked with
the api* tests (which can't use non-public tdb2 functions) and those
linked with the run* tests (which can).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agolib/ccan: import failtest and required ccan modules for TDB2 unit tests.
Rusty Russell [Wed, 22 Feb 2012 04:29:32 +0000 (14:59 +1030)]
lib/ccan: import failtest and required ccan modules for TDB2 unit tests.

New modules: failtest, list, time, read_write_all and tlist.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agos3:selftest: ask smbtorture4 for smb2 tests
Gregor Beck [Thu, 2 Feb 2012 11:02:00 +0000 (12:02 +0100)]
s3:selftest: ask smbtorture4 for smb2 tests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Mar  7 01:34:05 CET 2012 on sn-devel-104

12 years agoselftest: skip samba3.smb2.scan because they are no tests
Gregor Beck [Fri, 2 Mar 2012 11:15:00 +0000 (12:15 +0100)]
selftest: skip samba3.smb2.scan because they are no tests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agoselftest: remove samba3.smb2.*scan from knownfail
Gregor Beck [Fri, 2 Mar 2012 11:12:58 +0000 (12:12 +0100)]
selftest: remove samba3.smb2.*scan from knownfail

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:torture make a suite for smb2.*scan
Gregor Beck [Thu, 1 Mar 2012 14:59:41 +0000 (15:59 +0100)]
s4:torture make a suite for smb2.*scan

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:torture: print ntstatus on failure of setup complex file in smb2 setinfo/getinfo...
Gregor Beck [Fri, 2 Mar 2012 11:05:59 +0000 (12:05 +0100)]
s4:torture: print ntstatus on failure of setup complex file in smb2 setinfo/getinfo scan

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:torture: use different filenames for smb2 setinfo and getinfo scan
Gregor Beck [Fri, 2 Mar 2012 11:02:18 +0000 (12:02 +0100)]
s4:torture: use different filenames for smb2 setinfo and getinfo scan

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:torture: cleanup after smb2 setinfo scan
Gregor Beck [Fri, 2 Mar 2012 10:20:18 +0000 (11:20 +0100)]
s4:torture: cleanup after smb2 setinfo scan

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:torture: cleanup after smb2 getinfo scan
Gregor Beck [Fri, 2 Mar 2012 10:19:48 +0000 (11:19 +0100)]
s4:torture: cleanup after smb2 getinfo scan

Signed-off-by: Stefan Metzmacher <metze@samba.org>