ira/wip.git
12 years agolibcli:smb: define DH2Q and DH2C tags for smb2 extra create blobs
Michael Adam [Mon, 27 Feb 2012 01:17:20 +0000 (02:17 +0100)]
libcli:smb: define DH2Q and DH2C tags for smb2 extra create blobs

These are the tags for the SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2
and SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2, the second version
of the SMB2_CREATE_DURABLE_HANDLE_REQUEST (DHnQ) and
SMB2_CREATE_DURABLE_HANDLE_RECONNECT (DHnC), which are only
available for SMB 2.2 (and newer).

12 years agos4:torture:smb2: rename some of the durable-handle subtests more systematically
Michael Adam [Wed, 29 Feb 2012 22:19:59 +0000 (23:19 +0100)]
s4:torture:smb2: rename some of the durable-handle subtests more systematically

12 years agos4:torture:smb2:durable_open: update (C)
Michael Adam [Wed, 29 Feb 2012 21:59:35 +0000 (22:59 +0100)]
s4:torture:smb2:durable_open: update (C)

12 years agos4:torture:smb2:durable-open: skip the open-with-lease test on servers without lease...
Stefan Metzmacher [Thu, 23 Feb 2012 08:16:55 +0000 (09:16 +0100)]
s4:torture:smb2:durable-open: skip the open-with-lease test on servers without lease support

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos4:torture:smb2: durable-open: make tables static
Michael Adam [Tue, 28 Feb 2012 02:07:51 +0000 (03:07 +0100)]
s4:torture:smb2: durable-open: make tables static

12 years agos4:test:smb2:durable_open: skip lease tests when the server does not support leases
Stefan Metzmacher [Thu, 23 Feb 2012 08:16:55 +0000 (09:16 +0100)]
s4:test:smb2:durable_open: skip lease tests when the server does not support leases

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos4:torture:smb2:durable_open: remove unused lease variables in the open-oplock test
Stefan Metzmacher [Thu, 23 Feb 2012 08:16:37 +0000 (09:16 +0100)]
s4:torture:smb2:durable_open: remove unused lease variables in the open-oplock test

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbd:smb2_write: improve logging in the error case
Michael Adam [Sat, 3 Mar 2012 06:14:35 +0000 (07:14 +0100)]
s3:smbd:smb2_write: improve logging in the error case

12 years agos4:samba-tool domain level raise command - reference SAMDB object correctly
Matthias Dieter Wallnöfer [Fri, 2 Mar 2012 19:00:04 +0000 (20:00 +0100)]
s4:samba-tool domain level raise command - reference SAMDB object correctly

https://bugzilla.samba.org/show_bug.cgi?id=8787

Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Mar  3 12:54:21 CET 2012 on sn-devel-104

12 years agosmb2_constants: fix a typo
Christian Ambach [Sat, 3 Mar 2012 05:35:22 +0000 (21:35 -0800)]
smb2_constants: fix a typo

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Sat Mar  3 09:04:40 CET 2012 on sn-devel-104

12 years agos3:smb2_server: use SMB2_WATCH_TREE
Christian Ambach [Sat, 3 Mar 2012 05:34:32 +0000 (21:34 -0800)]
s3:smb2_server: use SMB2_WATCH_TREE

it makes the code easier to understand if it uses the names specified in MS-SMB2 instead
of just the underlying values

12 years agosmb2_constants: add SMB2_WATCH_TREE
Christian Ambach [Sat, 3 Mar 2012 05:33:28 +0000 (21:33 -0800)]
smb2_constants: add SMB2_WATCH_TREE

12 years agos3:smb2_server fix a typo
Christian Ambach [Tue, 28 Feb 2012 01:52:21 +0000 (17:52 -0800)]
s3:smb2_server fix a typo

12 years agos3: Fix some blank line endings
Volker Lendecke [Sat, 3 Mar 2012 00:23:44 +0000 (01:23 +0100)]
s3: Fix some blank line endings

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar  3 03:41:03 CET 2012 on sn-devel-104

12 years agoexamples: Make examples/VFS/Makefile.in FreeBSD-friendly
Volker Lendecke [Fri, 2 Mar 2012 19:02:35 +0000 (20:02 +0100)]
examples: Make examples/VFS/Makefile.in FreeBSD-friendly

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Mar  3 00:53:43 CET 2012 on sn-devel-104

12 years agoSEGV in acl_validate_spn_value: dnsHostName NULL
Arvid Requate [Fri, 2 Mar 2012 12:59:30 +0000 (13:59 +0100)]
SEGV in acl_validate_spn_value: dnsHostName NULL

This patch addresses a segfault in acl_validate_spn_value which occurs
when the "dnsHostName" attribute is missing. This seems to be the case
in domains migrated with samba3upgrade. Looks similar to MS KB 817543.

Signed-off-by: Nadezhda Ivanova <nivanova@drizzit.(none)>
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Fri Mar  2 21:26:40 CET 2012 on sn-devel-104

12 years agoselftest: Rework samba4.blackbox.bogusdomain to use a temporary user
Andrew Bartlett [Fri, 2 Mar 2012 11:28:59 +0000 (22:28 +1100)]
selftest: Rework samba4.blackbox.bogusdomain to use a temporary user

This avoids leaving an account in the test environment after the test is run
and therefore avoids issues with interations with other tests.

Also, we now use the local administrator account in the member server to
add the test account.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar  2 14:44:36 CET 2012 on sn-devel-104

12 years agoselftest: close stdin and wait with waitpid() for a safer exit
Andrew Bartlett [Fri, 2 Mar 2012 07:20:45 +0000 (18:20 +1100)]
selftest: close stdin and wait with waitpid() for a safer exit

This avoids timelimit sending kill -9 after 1 second, which may
disrupt the writing of gcov data.

Andrew Bartlett

12 years agoselftest: Put stdin pipe on the environment
Andrew Bartlett [Fri, 2 Mar 2012 07:01:13 +0000 (18:01 +1100)]
selftest: Put stdin pipe on the environment

This seems to help us close the right pipe at cleanup time.

Andrew Bartlett

12 years agos3: Test for statfs before statfs64
Volker Lendecke [Fri, 2 Mar 2012 01:10:52 +0000 (02:10 +0100)]
s3: Test for statfs before statfs64

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Mar  2 12:04:35 CET 2012 on sn-devel-104

12 years agos3: Further fix for bug 8777
Brad Smith [Fri, 2 Mar 2012 00:34:16 +0000 (01:34 +0100)]
s3: Further fix for bug 8777

12 years agos3: Enable statvfs usage on NetBSD
Volker Lendecke [Thu, 1 Mar 2012 23:45:51 +0000 (00:45 +0100)]
s3: Enable statvfs usage on NetBSD

linux_statvfs is pretty much what you use when you have susv4.

No real code change, this moves linux_statvfs to the bottom of the
(LINUX) to #ifdef (STAT_STAVFS).

12 years agos4-rpc: dnsserver: Fix the typo in comparing two DNS records
Amitay Isaacs [Fri, 2 Mar 2012 06:56:24 +0000 (17:56 +1100)]
s4-rpc: dnsserver: Fix the typo in comparing two DNS records

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar  2 10:27:41 CET 2012 on sn-devel-104

12 years agos3:rpc_server: initialize struct schannel_state to zero
Stefan Metzmacher [Mon, 27 Feb 2012 14:20:45 +0000 (15:20 +0100)]
s3:rpc_server: initialize struct schannel_state to zero

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  2 08:48:23 CET 2012 on sn-devel-104

12 years agos3:rpc_client: initialize struct schannel_state to zero
Stefan Metzmacher [Mon, 27 Feb 2012 14:20:45 +0000 (15:20 +0100)]
s3:rpc_client: initialize struct schannel_state to zero

metze

12 years agos4:auth/gensec/schannel: initialize struct schannel_state to zero
Stefan Metzmacher [Mon, 27 Feb 2012 14:20:45 +0000 (15:20 +0100)]
s4:auth/gensec/schannel: initialize struct schannel_state to zero

metze

12 years agos4:auth/gensec/schannel: make a copy of netlogon_creds_CredentialState in the client
Stefan Metzmacher [Mon, 27 Feb 2012 14:18:56 +0000 (15:18 +0100)]
s4:auth/gensec/schannel: make a copy of netlogon_creds_CredentialState in the client

This is really a copy for the lifetime of the rpc connection.

metze

12 years agos3-selftest: Add tests for ntlm_auth gss-spnego client and server
Andrew Bartlett [Thu, 1 Mar 2012 06:26:32 +0000 (17:26 +1100)]
s3-selftest: Add tests for ntlm_auth gss-spnego client and server

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar  2 07:05:44 CET 2012 on sn-devel-104

12 years agos3-rpcclient: Ensure interfaces are loaded after smb.conf
Andrew Bartlett [Fri, 2 Mar 2012 02:07:09 +0000 (13:07 +1100)]
s3-rpcclient: Ensure interfaces are loaded after smb.conf

This ensures that the interfaces line in the smb.conf is honoured.

Andrew Bartlett

12 years agopyldb: Fix some more long lines, fix formatting.
Jelmer Vernooij [Fri, 2 Mar 2012 02:46:13 +0000 (03:46 +0100)]
pyldb: Fix some more long lines, fix formatting.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar  2 05:26:56 CET 2012 on sn-devel-104

12 years agoselftest: Move manual page into a separate file.
Jelmer Vernooij [Fri, 2 Mar 2012 02:30:51 +0000 (03:30 +0100)]
selftest: Move manual page into a separate file.

(Generated using pod2man from selftest.pl itself)

12 years agoselftest: Establish a registry of socket wrapper IPs
Andrew Bartlett [Fri, 2 Mar 2012 00:44:56 +0000 (11:44 +1100)]
selftest: Establish a registry of socket wrapper IPs

This fixes a bug where chgdcpass was on the same IP as localsubdc, and
will avoid similar mistakes in future.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar  2 03:48:05 CET 2012 on sn-devel-104

12 years agos3-libsmb: Initialise ticket to ensure we do not invalid memory
Andrew Bartlett [Thu, 1 Mar 2012 05:55:04 +0000 (16:55 +1100)]
s3-libsmb: Initialise ticket to ensure we do not invalid memory

The free is however a talloc_free(), which has additional protection against
freeing the wrong thing.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Mar  2 01:45:19 CET 2012 on sn-devel-104

12 years agoMove to talloc from malloc.
Jeremy Allison [Thu, 1 Mar 2012 20:35:27 +0000 (12:35 -0800)]
Move to talloc from malloc.

12 years agoFix mixup between talloc/malloc.
Jeremy Allison [Thu, 1 Mar 2012 18:57:17 +0000 (10:57 -0800)]
Fix mixup between talloc/malloc.

12 years agopyldb: Avoid using PyErr_LDB_ERROR_IS_ERR_RAISE where PyErr_SetLdbError suffices.
Jelmer Vernooij [Thu, 1 Mar 2012 20:26:27 +0000 (21:26 +0100)]
pyldb: Avoid using PyErr_LDB_ERROR_IS_ERR_RAISE where PyErr_SetLdbError suffices.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Mar  1 23:06:55 CET 2012 on sn-devel-104

12 years agodlz_bind9: Match PTR records as DNS names and not just strings
Amitay Isaacs [Thu, 1 Mar 2012 13:23:00 +0000 (00:23 +1100)]
dlz_bind9: Match PTR records as DNS names and not just strings

This fixes the dynamic update of PTR records.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Mar  1 15:58:05 CET 2012 on sn-devel-104

12 years agos4-dns: Fix handling of TXT DNS Record
Amitay Isaacs [Tue, 28 Feb 2012 06:01:27 +0000 (17:01 +1100)]
s4-dns: Fix handling of TXT DNS Record

12 years agoupgradedns: Fix import of TXT DNS records
Amitay Isaacs [Tue, 28 Feb 2012 07:27:04 +0000 (18:27 +1100)]
upgradedns: Fix import of TXT DNS records

12 years agos4-rpc: dnsserver: Update data type for TXT DNS records
Amitay Isaacs [Tue, 28 Feb 2012 05:35:39 +0000 (16:35 +1100)]
s4-rpc: dnsserver: Update data type for TXT DNS records

12 years agosamba-tool: dns: Add support for handling TXT records
Amitay Isaacs [Tue, 28 Feb 2012 04:14:49 +0000 (15:14 +1100)]
samba-tool: dns: Add support for handling TXT records

12 years agosamba-tool: dns: Copy string data when creating DNS_RPC_RECORD
Amitay Isaacs [Tue, 28 Feb 2012 04:12:44 +0000 (15:12 +1100)]
samba-tool: dns: Copy string data when creating DNS_RPC_RECORD

12 years agoprovision: dns: TXT Records need a list of strings as input
Amitay Isaacs [Tue, 28 Feb 2012 03:59:39 +0000 (14:59 +1100)]
provision: dns: TXT Records need a list of strings as input

12 years agondr: dnsserver: Add pull and push functions for DNS_RPC_RECORD_STRING
Amitay Isaacs [Tue, 28 Feb 2012 03:57:23 +0000 (14:57 +1100)]
ndr: dnsserver: Add pull and push functions for DNS_RPC_RECORD_STRING

12 years agoidl: dnsserver: Add DNS_RPC_RECORD_STRING data type for TXT DNS record
Amitay Isaacs [Tue, 28 Feb 2012 03:56:37 +0000 (14:56 +1100)]
idl: dnsserver: Add DNS_RPC_RECORD_STRING data type for TXT DNS record

12 years agodlz_bind9: Fix handling of TXT records with multiple quoted strings
Amitay Isaacs [Tue, 28 Feb 2012 03:14:07 +0000 (14:14 +1100)]
dlz_bind9: Fix handling of TXT records with multiple quoted strings

12 years agondr: Add NDR pull, push, print functions for dnsp_string_list
Amitay Isaacs [Tue, 28 Feb 2012 04:07:10 +0000 (15:07 +1100)]
ndr: Add NDR pull, push, print functions for dnsp_string_list

12 years agoidl: dnsp: Add dnsp_string_list data type for TXT DNS record
Amitay Isaacs [Tue, 28 Feb 2012 04:06:12 +0000 (15:06 +1100)]
idl: dnsp: Add dnsp_string_list data type for TXT DNS record

12 years agondr: Fix NDR push function for dnsp_string
Amitay Isaacs [Tue, 28 Feb 2012 02:58:48 +0000 (13:58 +1100)]
ndr: Fix NDR push function for dnsp_string

Push the actual length of the string not including null-termination.

12 years agondr: Fix the error messages, add correct data type name
Amitay Isaacs [Tue, 28 Feb 2012 03:58:16 +0000 (14:58 +1100)]
ndr: Fix the error messages, add correct data type name

12 years agodlz_bind9: This fixes the problem with adding/deleting rdataset
Amitay Isaacs [Mon, 27 Feb 2012 06:09:10 +0000 (17:09 +1100)]
dlz_bind9: This fixes the problem with adding/deleting rdataset

Fix commit 169db333033b72b6f9ac1e7b23f0f2c151218c1f. This change
allowed for LDB records without dnsRecord attribute to exist to
prevent large number of deleted records.

This change fixes the handling of missing dnsRecord attribute
and correctly deleting dnsRecord attribute.

12 years agos4-libnet: Remove set but unused variables
Andrew Bartlett [Thu, 1 Mar 2012 10:04:19 +0000 (21:04 +1100)]
s4-libnet: Remove set but unused variables

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Mar  1 13:40:12 CET 2012 on sn-devel-104

12 years agos4-libnet: Move to talloc_get_type_abort()
Andrew Bartlett [Thu, 1 Mar 2012 10:02:24 +0000 (21:02 +1100)]
s4-libnet: Move to talloc_get_type_abort()

The NULL pointer dereference from talloc_get_type() might be free, but the
information on the actual and expected types from talloc_get_type_abort()
is priceless! :-)

Andrew Bartlett

12 years agos4:torture/smb2/ioctl.c - quiet format specifier warnings on 32 bit
Matthias Dieter Wallnöfer [Sat, 25 Feb 2012 17:24:37 +0000 (18:24 +0100)]
s4:torture/smb2/ioctl.c - quiet format specifier warnings on 32 bit

Achieve this by using platform independent casts.

12 years agos3-selftest: make ntlm_auth test more robust to bad input
Andrew Bartlett [Thu, 1 Mar 2012 06:44:48 +0000 (17:44 +1100)]
s3-selftest: make ntlm_auth test more robust to bad input

If we do not know the helper protocol, make sure to error.

Andrew Bartlett

12 years agos3-selftest: Add more tests for ntlm_auth
Andrew Bartlett [Thu, 1 Mar 2012 05:57:46 +0000 (16:57 +1100)]
s3-selftest: Add more tests for ntlm_auth

12 years agos3-ntlm_auth fix up gss-spnego-client so as to work with gss-spnego
Andrew Bartlett [Thu, 1 Mar 2012 05:57:04 +0000 (16:57 +1100)]
s3-ntlm_auth fix up gss-spnego-client so as to work with gss-spnego

The SPNEGO code changed since this was last tested.

Andrew Bartlett

12 years agos3-ntlm_auth: Wrap kerberos token in GSSAPI
Andrew Bartlett [Sat, 25 Feb 2012 03:17:23 +0000 (14:17 +1100)]
s3-ntlm_auth: Wrap kerberos token in GSSAPI

While windows will accept this ticket without the wrapping, it is
nicer to follow the standard and wrap it up in GSSAPI.

This should allow the ntlm_auth gss-spnego-client to talk to
the ntlm_auth gss-spengo server.

Reported by Christof Schmitt <christof.schmitt@us.ibm.com>

Andrew Bartlett

12 years agos3-ntlm_auth: Add --target-service and --target-hostname options
Andrew Bartlett [Sat, 25 Feb 2012 03:15:17 +0000 (14:15 +1100)]
s3-ntlm_auth: Add --target-service and --target-hostname options

This will allow the gss-spnego-client protocol to work with modern
SPNEGO servers that do not send the principal in the mechListMIC.

Andrew Bartlett

12 years agobuild: look for backtrace_symbols in libexec
Andrew Bartlett [Thu, 1 Mar 2012 01:57:12 +0000 (12:57 +1100)]
build: look for backtrace_symbols in libexec

12 years agobuild: link heimdal krb5 against execinfo if found
Andrew Bartlett [Thu, 1 Mar 2012 07:13:28 +0000 (18:13 +1100)]
build: link heimdal krb5 against execinfo if found

This is for FreeBSD, where backtrace symbols are in execinfo

12 years agos4-provision: Use "state directory" from lp, as it is always set
Amitay Isaacs [Thu, 1 Mar 2012 08:37:25 +0000 (19:37 +1100)]
s4-provision: Use "state directory" from lp, as it is always set

This fixes new provisions when --targetdir is not provided.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Mar  1 11:41:02 CET 2012 on sn-devel-104

12 years agoTrivial Comment fix: Supply a missing word in a comment
Richard Sharpe [Thu, 1 Mar 2012 03:45:29 +0000 (19:45 -0800)]
Trivial Comment fix: Supply a missing word in a comment

Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Thu Mar  1 06:55:44 CET 2012 on sn-devel-104

12 years agos3: Fix "make bin/smbtorture4" in the autoconf build
Volker Lendecke [Thu, 1 Mar 2012 01:58:28 +0000 (02:58 +0100)]
s3: Fix "make bin/smbtorture4" in the autoconf build

tdb2 support does not work with a system-supplied libtdb yet

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar  1 05:23:57 CET 2012 on sn-devel-104

12 years agoheimdal: Fix the build on FreeBSD
Volker Lendecke [Thu, 1 Mar 2012 01:56:10 +0000 (02:56 +0100)]
heimdal: Fix the build on FreeBSD

We don't have BACKTRACE_SYMBOLS by default

12 years agoAdd open_dir_with_privilege() to ensure we're opening the correct directory when...
Jeremy Allison [Thu, 1 Mar 2012 00:05:50 +0000 (16:05 -0800)]
Add open_dir_with_privilege() to ensure we're opening the correct directory when doing backup requests.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar  1 03:50:40 CET 2012 on sn-devel-104

12 years agoImplement FLAG_TRANS2_FIND_BACKUP_INTENT for trans2 with privileges.
Jeremy Allison [Wed, 29 Feb 2012 20:15:12 +0000 (12:15 -0800)]
Implement FLAG_TRANS2_FIND_BACKUP_INTENT for trans2 with privileges.

12 years agoAdd accessor functions to set a bool "priv" on a directory handle. Not yet used,...
Jeremy Allison [Wed, 29 Feb 2012 19:42:21 +0000 (11:42 -0800)]
Add accessor functions to set a bool "priv" on a directory handle. Not yet used, but will be part of FLAG_TRANS2_FIND_BACKUP_INTENT code.

12 years agoAdd the implementation of check_reduced_name_with_privilege(). Now to plumb into
Jeremy Allison [Thu, 1 Mar 2012 01:04:08 +0000 (17:04 -0800)]
Add the implementation of check_reduced_name_with_privilege(). Now to plumb into
SMB1 requests.

12 years agoAdd check_reduced_name_with_privilege(), filename_convert_with_privilege() (currently...
Jeremy Allison [Fri, 24 Feb 2012 22:12:05 +0000 (14:12 -0800)]
Add check_reduced_name_with_privilege(), filename_convert_with_privilege() (currently unimplemented) in order to prepare for adding SeBackup/SeRestore code to the main fileserver.

Not yet plumbed into the main SMB1/SMB2 code.

12 years agoselftest: add more tests for plugin_s4_dc
Andrew Bartlett [Wed, 29 Feb 2012 01:48:21 +0000 (12:48 +1100)]
selftest: add more tests for plugin_s4_dc

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb 29 12:14:05 CET 2012 on sn-devel-104

12 years agoselftest: change plugin_dc to test using s3fs
Andrew Bartlett [Thu, 8 Sep 2011 23:03:23 +0000 (09:03 +1000)]
selftest: change plugin_dc to test using s3fs

12 years agoselftest: skip the troublesome samba4.rpc.unixinfo test
Andrew Bartlett [Tue, 28 Feb 2012 23:06:31 +0000 (10:06 +1100)]
selftest: skip the troublesome samba4.rpc.unixinfo test

The issue here is that while the single rpc_server process is stuck in
an nss_winbind getpwuid() call, winbindd cannot contact netlogon to
make the connection to the domain.

nss_winbind comes into play when (for s3fs) the
NSS_WRAPPER_WINBIND_SO_PATH environment variable is set.  In the
medium term, the unixinfo pipe should either be rewritten fully async
or removed.

Andrew Bartlett

12 years agos4:winbind: use ncalrpc for connections to ourself
Stefan Metzmacher [Fri, 24 Feb 2012 14:58:40 +0000 (15:58 +0100)]
s4:winbind: use ncalrpc for connections to ourself

That avoids recursion if "smbd" is used as file server.

metze

12 years agoselftest: Do not run chgdcpass test on the main DC
Andrew Bartlett [Wed, 29 Feb 2012 01:48:21 +0000 (12:48 +1100)]
selftest: Do not run chgdcpass test on the main DC

If winbindd has it's password changed from under it, it becomes
grumpy.

Andrew Bartlett

12 years agos4-winbindd: Do not ask for a tree that we will not use
Andrew Bartlett [Tue, 28 Feb 2012 23:37:40 +0000 (10:37 +1100)]
s4-winbindd: Do not ask for a tree that we will not use

12 years agotestsuite: Replace deprecated bzero with memset
Amitay Isaacs [Wed, 29 Feb 2012 05:05:53 +0000 (16:05 +1100)]
testsuite: Replace deprecated bzero with memset

This fixes build issues on solaris reported in bug #8767.

  https://bugzilla.samba.org/show_bug.cgi?id=8767

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Feb 29 10:39:10 CET 2012 on sn-devel-104

12 years agolibcli/smb/smb2_signing: rename smb2_key_deviration -> smb2_key_derivation
Michael Adam [Wed, 29 Feb 2012 04:49:49 +0000 (05:49 +0100)]
libcli/smb/smb2_signing: rename smb2_key_deviration -> smb2_key_derivation

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb 29 09:01:54 CET 2012 on sn-devel-104

12 years agos3:torture/test_smb2: test path based calls during reauth in SMB2-MULTI-CHANNEL
Stefan Metzmacher [Mon, 27 Feb 2012 12:27:38 +0000 (13:27 +0100)]
s3:torture/test_smb2: test path based calls during reauth in SMB2-MULTI-CHANNEL

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb 29 07:23:14 CET 2012 on sn-devel-104

12 years agos3:torture/test_smb2: test handle based calls during reauth in SMB2-MULTI-CHANNEL
Stefan Metzmacher [Mon, 27 Feb 2012 12:27:38 +0000 (13:27 +0100)]
s3:torture/test_smb2: test handle based calls during reauth in SMB2-MULTI-CHANNEL

metze

12 years agos3:torture/test_smb2: do a reauth over multiple channels in SMB2-MULTI-CHANNEL
Stefan Metzmacher [Mon, 27 Feb 2012 10:19:22 +0000 (11:19 +0100)]
s3:torture/test_smb2: do a reauth over multiple channels in SMB2-MULTI-CHANNEL

metze

12 years agos3:torture/test_smb2: add a 3rd channel to SMB2-MULTI-CHANNEL
Stefan Metzmacher [Mon, 27 Feb 2012 10:50:40 +0000 (11:50 +0100)]
s3:torture/test_smb2: add a 3rd channel to SMB2-MULTI-CHANNEL

metze

12 years agos3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL
Stefan Metzmacher [Wed, 29 Feb 2012 02:57:34 +0000 (03:57 +0100)]
s3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL

metze

12 years agos4:torture/smb2: remove unused var
Stefan Metzmacher [Wed, 29 Feb 2012 02:42:52 +0000 (03:42 +0100)]
s4:torture/smb2: remove unused var

metze

12 years agolibcli/smb/smbXcli: use smb2_key_deviration() to setup SMB 2.24 keys
Stefan Metzmacher [Mon, 27 Feb 2012 08:33:46 +0000 (09:33 +0100)]
libcli/smb/smbXcli: use smb2_key_deviration() to setup SMB 2.24 keys

This uses the key diveration function from "NIST Special Publication 800-108"
in counter mode (section 5.1).

Thanks to Jeremy, Michael and Volker for the debugging!

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Feb 29 04:54:48 CET 2012 on sn-devel-104

12 years agolibcli/smb/smb2_signing: implement aes_cmac_128 based signing for SMB 2.24
Stefan Metzmacher [Mon, 27 Feb 2012 08:32:33 +0000 (09:32 +0100)]
libcli/smb/smb2_signing: implement aes_cmac_128 based signing for SMB 2.24

metze

12 years agolibcli/smb/smb2_signing: add smb2_key_deviration()
Stefan Metzmacher [Wed, 22 Feb 2012 12:13:47 +0000 (13:13 +0100)]
libcli/smb/smb2_signing: add smb2_key_deviration()

This implements a simplified version of "NIST Special Publication 800-108" section 5.1
using hmac-sha256.

Thanks to Jeremy, Michael and Volker for the debugging!

metze

12 years agolib/crypto: add aes_cmac_128_test.c as local.crypto.aes_cmac_128 test
Stefan Metzmacher [Wed, 29 Feb 2012 00:39:31 +0000 (01:39 +0100)]
lib/crypto: add aes_cmac_128_test.c as local.crypto.aes_cmac_128 test

metze

12 years agolib/crypto: add aes_cmac_128* (rfc 4493)
Stefan Metzmacher [Sat, 18 Feb 2012 10:47:31 +0000 (11:47 +0100)]
lib/crypto: add aes_cmac_128* (rfc 4493)

Thanks to Jeremy, Michael and Volker for the debugging!

metze

12 years agos3: Introduce "req" helper var in reply_lockingX_success
Volker Lendecke [Tue, 28 Feb 2012 01:47:46 +0000 (02:47 +0100)]
s3: Introduce "req" helper var in reply_lockingX_success

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 03:08:53 CET 2012 on sn-devel-104

12 years agos3: Fix a const warning
Volker Lendecke [Tue, 28 Feb 2012 02:14:37 +0000 (03:14 +0100)]
s3: Fix a const warning

12 years agos3: Add a test that makes a chained open break an oplock
Volker Lendecke [Tue, 28 Feb 2012 19:28:55 +0000 (20:28 +0100)]
s3: Add a test that makes a chained open break an oplock

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 01:13:03 CET 2012 on sn-devel-104

12 years agos3: More fix for smbd -i
Volker Lendecke [Tue, 28 Feb 2012 21:36:06 +0000 (22:36 +0100)]
s3: More fix for smbd -i

We need a full re-initialize, otherwise we don't re-init the USR1
signal handler

12 years agoFix problem reported by Tom Lee <tlee2951@gmail.com> - when calculating
Jeremy Allison [Tue, 28 Feb 2012 17:47:50 +0000 (09:47 -0800)]
Fix problem reported by Tom Lee <tlee2951@gmail.com> - when calculating
the share security mask, take priviliges into account for the connecting
user.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb 28 20:21:26 CET 2012 on sn-devel-104

12 years agotorture: added samba4-ntvfs target
Andrew Tridgell [Thu, 9 Feb 2012 03:33:09 +0000 (14:33 +1100)]
torture: added samba4-ntvfs target

this will be used for the samba4 server with the ntvfs backend

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Feb 28 13:34:44 CET 2012 on sn-devel-104

12 years agos3fs: when samba is logging to stdout, ask smbd to also do so
Andrew Tridgell [Thu, 9 Feb 2012 03:07:00 +0000 (14:07 +1100)]
s3fs: when samba is logging to stdout, ask smbd to also do so

this prevents make test getting spurious errors about opening log
files in the install prefix

12 years agosmbd: detect EOF on stdin in --foreground mode
Andrew Tridgell [Wed, 30 Nov 2011 03:08:28 +0000 (14:08 +1100)]
smbd: detect EOF on stdin in --foreground mode

if EOF is detected on stdin then exit

12 years agoselftest: added a pipe on stdin in s3 child processes
Andrew Tridgell [Tue, 3 Jan 2012 05:48:29 +0000 (16:48 +1100)]
selftest: added a pipe on stdin in s3 child processes

this adds a pipe for STDIN in smbd, nmbd and winbindd when run in
selftest. This allows those processes to detect when they should exit
by looking for EOF on stdin.

12 years agos3fs: added file_server directory
Andrew Tridgell [Mon, 2 May 2011 23:35:07 +0000 (09:35 +1000)]
s3fs: added file_server directory

this contains a file server backend that forks and starts smbd

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agos4-smb_server Remove inetd-mode samba3 hook
Andrew Bartlett [Tue, 6 Sep 2011 01:34:35 +0000 (11:34 +1000)]
s4-smb_server Remove inetd-mode samba3 hook