samba.git
7 years agos3:vfs_gpfs: Implement fallocate callback for GPFS
Christof Schmitt [Thu, 8 Mar 2012 21:57:12 +0000 (13:57 -0800)]
s3:vfs_gpfs: Implement fallocate callback for GPFS

GPFS provides the gpfs_prealloc call. Implement the fallocate
callback with mode VFS_FALLOCATE_EXTEND_SIZE using this call.
There is no support for VFS_FALLOCATE_KEEP_SIZE, so report
this mode as not available.

7 years agos3:vfs_gpfs: Report disk space and usage on GPFS share according to quotas
Christof Schmitt [Fri, 2 Mar 2012 21:26:24 +0000 (14:26 -0700)]
s3:vfs_gpfs: Report disk space and usage on GPFS share according to quotas

When a client requests the information about free space and space used,
adjust the reported values according to quotas in the GPFS file system:

- Retrieve quotas for the current user, current group and fileset for
  the top level of the share.
- If the soft block quota grace time has expired, report disk as full.
- If a hard block quota has been exceeded, report disk as full.
- If none of the hard block quotas been exceeded, report
  share size and free space according to the lowest limits found in
  the quotas.
- If no applicable hard block quota has been set, report the
  information from the statfs call.

This feature is disabled by default and has to be enabled by setting the
option gpfs:dfreequota.

7 years agos3:vfs_gpfs: add GPFS api calls for quota and free space reporting
Christof Schmitt [Fri, 2 Mar 2012 21:26:19 +0000 (14:26 -0700)]
s3:vfs_gpfs: add GPFS api calls for quota and free space reporting

Add the GPFS api calls for reporting the quotas and free space:
- get_gpfs_quota for querying a quota
- get_gpfs_fset_id for mapping a path to a fileset id

7 years agos3:vfs_gpfs: Export disk_norm function
Christof Schmitt [Fri, 2 Mar 2012 21:26:10 +0000 (14:26 -0700)]
s3:vfs_gpfs: Export disk_norm function

vfs modules implementing the disk_free callback need access
to the function disk_norm for normalizing the data if the parameter
small query is true.

7 years agos3:client correct a wording
Christian Ambach [Thu, 22 Mar 2012 15:49:30 +0000 (16:49 +0100)]
s3:client correct a wording

7 years agos3: Fix smbd -i
Volker Lendecke [Thu, 22 Mar 2012 13:23:11 +0000 (14:23 +0100)]
s3: Fix smbd -i

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104

7 years agos3: Remove an unused structure field
Volker Lendecke [Thu, 22 Mar 2012 13:18:13 +0000 (14:18 +0100)]
s3: Remove an unused structure field

7 years agos3: Add "notify" cmd to smbclient
Volker Lendecke [Thu, 22 Mar 2012 11:17:26 +0000 (12:17 +0100)]
s3: Add "notify" cmd to smbclient

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar 22 13:51:50 CET 2012 on sn-devel-104

7 years agos3: Add sync cli_notify
Volker Lendecke [Thu, 22 Mar 2012 11:17:14 +0000 (12:17 +0100)]
s3: Add sync cli_notify

7 years agos3: Add FILE_NOTIFY_CHANGE_ALL #define
Volker Lendecke [Thu, 22 Mar 2012 11:16:52 +0000 (12:16 +0100)]
s3: Add FILE_NOTIFY_CHANGE_ALL #define

7 years agos3-libsmb: Fix parsing a notify response
Volker Lendecke [Thu, 22 Mar 2012 11:16:17 +0000 (12:16 +0100)]
s3-libsmb: Fix parsing a notify response

7 years agos3: rename "len"->"next", according to wireshark
Volker Lendecke [Thu, 22 Mar 2012 11:09:05 +0000 (12:09 +0100)]
s3: rename "len"->"next", according to wireshark

7 years agolib/tdb2: fix -Wcast-qual warnings.
Rusty Russell [Thu, 22 Mar 2012 00:17:27 +0000 (10:47 +1030)]
lib/tdb2: fix -Wcast-qual warnings.

We use tdb_mkdata() to get rid of many of them from the tests, and
explicit cast_const() in a few places.

tlist_for_each() still causes a warning, but that needs to be fixed in
CCAN.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Thu Mar 22 03:29:32 CET 2012 on sn-devel-104

7 years agolib/tdb2: fix -Wshadow warnings.
Rusty Russell [Thu, 22 Mar 2012 00:17:27 +0000 (10:47 +1030)]
lib/tdb2: fix -Wshadow warnings.

These warnings clutter things up, even though they're of marginal
utility.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/tdb2: fix OpenBSD incoherent mmap (tdb2 version)
Rusty Russell [Thu, 22 Mar 2012 00:17:27 +0000 (10:47 +1030)]
lib/tdb2: fix OpenBSD incoherent mmap (tdb2 version)

This handles incoherent mmaps for TDB2 native databases, by forcing
mmap on for such systems, just like we did for tdb1.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/tdb2: fix OpenBSD incoherent mmap (tdb1 version)
Rusty Russell [Thu, 22 Mar 2012 00:17:26 +0000 (10:47 +1030)]
lib/tdb2: fix OpenBSD incoherent mmap (tdb1 version)

This is a direct port of the previous patch, to the TDB2 codebase.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/tdb: fix OpenBSD incoherent mmap.
Rusty Russell [Thu, 22 Mar 2012 00:17:26 +0000 (10:47 +1030)]
lib/tdb: fix OpenBSD incoherent mmap.

This comment appears in two places in the code (commit
4c6a8273c6dd3e2aeda5a63c4a62aa55bc133099 from 2001):

/*
 * We must ensure the file is unmapped before doing this
 * to ensure consistency with systems like OpenBSD where
 * writes and mmaps are not consistent.
 */

But this doesn't help, because if one process is using mmap and another
using pwrite, we get incoherent results.  As demonstrated by OpenBSD's
failure on the tdb unit tests.

Rather than disable mmap on OpenBSD, we test for this issue and force mmap
to be enabled.  This means that we will fail on very large TDBs on 32-bit
systems, but it's better than the horrendous performance penalty on every
OpenBSD system.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/replace: test for incoherent mmap.
Rusty Russell [Thu, 22 Mar 2012 00:17:24 +0000 (10:47 +1030)]
lib/replace: test for incoherent mmap.

We test for other mmap features here, and both tdb1 and tdb2 want this check.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/ccan/failtest: compile fix for OpenBSD
Rusty Russell [Wed, 21 Mar 2012 00:50:06 +0000 (11:20 +1030)]
lib/ccan/failtest: compile fix for OpenBSD

OpenBSD doesn't idempotent-wrap sys/mman.h, so when we #define mmap to
an alternative, it fails to compile when sys/mman.h is included again.

Workaround is not to #define mmap to add arguments on Open BSD.

(Imported from CCAN commit e18e80fe175422d26efe689addc0f67bdba0e097)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/ccan: namespacize ccan/list to avoid conflict with OpenIndiana's sys/list.h
Rusty Russell [Tue, 20 Mar 2012 14:28:14 +0000 (00:58 +1030)]
lib/ccan: namespacize ccan/list to avoid conflict with OpenIndiana's sys/list.h

CCAN includes a little utility called "namespacize" which prepends ccan_ to
all public methods of a module, and fixes up any dependencies it finds.  It's
a little primitive, but it works here.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agolib/tdb: fix up run-die-during-transaction test cases on Solaris.
Rusty Russell [Tue, 20 Mar 2012 14:27:14 +0000 (00:57 +1030)]
lib/tdb: fix up run-die-during-transaction test cases on Solaris.

By using a different include order, we end up with a different version of
FILE_OFFSET_BITS (and probably other things) in parts of the test.  The
different variants get linked together, and the result is weird: the stat
returns 0 size.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years agodocs:man:vfs_gpfs: fix formatting of values for gpfs:syncio
Michael Adam [Wed, 21 Mar 2012 23:03:08 +0000 (00:03 +0100)]
docs:man:vfs_gpfs: fix formatting of values for gpfs:syncio

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 22 01:56:08 CET 2012 on sn-devel-104

7 years agodocs:man:vfs_gpfs: Fix documented values for gpfs:hsm
Michael Adam [Wed, 21 Mar 2012 23:01:24 +0000 (00:01 +0100)]
docs:man:vfs_gpfs: Fix documented values for gpfs:hsm

7 years agos3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-comment
Michael Adam [Wed, 21 Mar 2012 22:40:44 +0000 (23:40 +0100)]
s3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-comment

The module uses "tsmsm:dmapi attribute" instead of "tsmsm:attribute name".

7 years agos3-selftest: Remove some unnecessary comma
Björn Baumbach [Wed, 9 Nov 2011 12:19:59 +0000 (13:19 +0100)]
s3-selftest: Remove some unnecessary comma

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3-selftest: Add samba3.blackbox.net.registry.check to test list
Björn Baumbach [Wed, 9 Nov 2011 12:19:22 +0000 (13:19 +0100)]
s3-selftest: Add samba3.blackbox.net.registry.check to test list

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3-selftest: introduce new net registry check check
Björn Baumbach [Wed, 9 Nov 2011 12:24:42 +0000 (13:24 +0100)]
s3-selftest: introduce new net registry check check

Add a new check which checks for defects in the net registry
check tool.

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agoFix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.
Jeremy Allison [Wed, 21 Mar 2012 21:34:34 +0000 (14:34 -0700)]
Fix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.

Based on code from Richard Sharpe. Move to talloc from malloc.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 22 00:20:41 CET 2012 on sn-devel-104

7 years agos4-samba-tool: add password verification in change user pass
Björn Baumbach [Mon, 19 Mar 2012 13:48:43 +0000 (14:48 +0100)]
s4-samba-tool: add password verification in change user pass

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Mar 21 17:43:35 CET 2012 on sn-devel-104

7 years agos4-samba-tool: add password verification in add user
Björn Baumbach [Thu, 8 Mar 2012 14:40:58 +0000 (15:40 +0100)]
s4-samba-tool: add password verification in add user

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos4-provision: don't ask only 3 times for passwd in interactive mode
Björn Baumbach [Tue, 20 Mar 2012 10:10:44 +0000 (11:10 +0100)]
s4-provision: don't ask only 3 times for passwd in interactive mode

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos4-provision: add password verification in interactive mode
Björn Baumbach [Thu, 8 Mar 2012 14:27:05 +0000 (15:27 +0100)]
s4-provision: add password verification in interactive mode

Since we do not print the password out (anymore), it is necessary to
verify the entered password.

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agos3: Move the notify_ctx to the smbd_server_connection
Volker Lendecke [Wed, 21 Mar 2012 11:18:09 +0000 (12:18 +0100)]
s3: Move the notify_ctx to the smbd_server_connection

We only need one notify_ctx per smbd. The notify_array can become quite large.
It's based on absolute paths, so there's no point in having a copy of the
complete array in memory multiple times.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Mar 21 14:26:07 CET 2012 on sn-devel-104

7 years agos3: Remove "conn" param from notify_init()
Volker Lendecke [Wed, 21 Mar 2012 10:59:27 +0000 (11:59 +0100)]
s3: Remove "conn" param from notify_init()

7 years agos3: Remove "conn" param from sys_notify_context_create
Volker Lendecke [Wed, 21 Mar 2012 10:55:55 +0000 (11:55 +0100)]
s3: Remove "conn" param from sys_notify_context_create

7 years agos3: Remove "conn" from sys_notify_context
Volker Lendecke [Wed, 21 Mar 2012 10:52:27 +0000 (11:52 +0100)]
s3: Remove "conn" from sys_notify_context

7 years agos3: Pass "conn" to sys_notify_watch()
Volker Lendecke [Wed, 21 Mar 2012 10:47:50 +0000 (11:47 +0100)]
s3: Pass "conn" to sys_notify_watch()

7 years agos3: Pass "conn" to notify_add()
Volker Lendecke [Wed, 21 Mar 2012 10:47:50 +0000 (11:47 +0100)]
s3: Pass "conn" to notify_add()

7 years agos3: Pass "path" through vfs_notify_watch
Volker Lendecke [Mon, 19 Mar 2012 20:57:50 +0000 (21:57 +0100)]
s3: Pass "path" through vfs_notify_watch

7 years agowaf: Add autoconf --target support.
Andreas Schneider [Thu, 15 Mar 2012 16:04:00 +0000 (17:04 +0100)]
waf: Add autoconf --target support.

This is needed on some platforms so that you can set it and it is not
automagically transformed into --targets. The --target option is
normally set by the RPM %configure macro.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Mar 21 11:54:02 CET 2012 on sn-devel-104

7 years agos4-upgradedns: Add DNS partitions in msDS-hasMasterNCs in NTDS settings
Amitay Isaacs [Wed, 14 Mar 2012 08:34:54 +0000 (19:34 +1100)]
s4-upgradedns: Add DNS partitions in msDS-hasMasterNCs in NTDS settings

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar 21 03:16:22 CET 2012 on sn-devel-104

7 years agos4-rpc: dnsserver: Fix IPv6 reverse zone handling
Amitay Isaacs [Tue, 13 Mar 2012 01:05:10 +0000 (12:05 +1100)]
s4-rpc: dnsserver: Fix IPv6 reverse zone handling

Thanks to Marcel Ritter <marcel.ritter@rrze.fau.de> for the patch.

7 years agos4-upgradedns: Allow fixing of dns provision after domain join
Amitay Isaacs [Tue, 13 Mar 2012 00:51:02 +0000 (11:51 +1100)]
s4-upgradedns: Allow fixing of dns provision after domain join

This change allows samba_upgradedns script to be run even on existing
dns provision (DLZ_BIND9 or SAMBA_INTERNAL) without any side effects.
This allows to "fix" dns provision after samba-tool domain join for
running BIND with DLZ plugin.

7 years agolibrpc/wscript_build: Fix formatting.
Jelmer Vernooij [Tue, 20 Mar 2012 12:50:18 +0000 (13:50 +0100)]
librpc/wscript_build: Fix formatting.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Mar 20 15:26:14 CET 2012 on sn-devel-104

7 years agoMove NS_GUID_string and NS_GUID_from_string to dsdb-common.
Jelmer Vernooij [Sun, 18 Mar 2012 17:46:18 +0000 (18:46 +0100)]
Move NS_GUID_string and NS_GUID_from_string to dsdb-common.

7 years agolibndr: Define trivial is_valid_policy_hnd as macro.
Jelmer Vernooij [Sun, 18 Mar 2012 17:04:17 +0000 (18:04 +0100)]
libndr: Define trivial is_valid_policy_hnd as macro.

This makes the NDR namespace a bit clearer, in preparation of ABI checking.

7 years agolibndr: Rename policy_handle_empty to ndr_policy_handle_empty.
Jelmer Vernooij [Sun, 18 Mar 2012 16:44:24 +0000 (17:44 +0100)]
libndr: Rename policy_handle_empty to ndr_policy_handle_empty.

This makes the NDR namespace a bit clearer, in preparation of ABI checking.

7 years agolibndr: Rename policy_handle_equal to ndr_policy_handle_equal.
Jelmer Vernooij [Sun, 18 Mar 2012 15:54:21 +0000 (16:54 +0100)]
libndr: Rename policy_handle_equal to ndr_policy_handle_equal.

This makes the NDR namespace a bit clearer, in preparation of ABI checking.

7 years agolibndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.
Jelmer Vernooij [Sun, 18 Mar 2012 15:46:57 +0000 (16:46 +0100)]
libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.

This makes the NDR namespace a bit clearer, in preparation of ABI checking.

7 years agolibrpc/wscript_build: Santizize formatting.
Jelmer Vernooij [Sun, 18 Mar 2012 01:21:24 +0000 (02:21 +0100)]
librpc/wscript_build: Santizize formatting.

7 years agos3-winbindd Only use SamLogonEx when we can get unencrypted session keys
Andrew Bartlett [Wed, 14 Dec 2011 23:00:36 +0000 (10:00 +1100)]
s3-winbindd Only use SamLogonEx when we can get unencrypted session keys

This ensures that we have some check on the session keys being returned
as the RC4 cipher is not checksumed.

The check comes from the fact that the credentials chain is tied to
the session key, and so if the credentials check passes then the
netlogon session key will be correct, and so the user session key
will be correctly decrypted.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar 19 21:31:46 CET 2012 on sn-devel-104

7 years agos4:selftest: add test for "samba-tool group list"
Michael Adam [Sun, 18 Mar 2012 22:40:18 +0000 (23:40 +0100)]
s4:selftest: add test for "samba-tool group list"

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Mar 19 02:30:39 CET 2012 on sn-devel-104

7 years agos4:samba-tool: add simple command "group list"
Michael Adam [Thu, 8 Mar 2012 21:39:24 +0000 (22:39 +0100)]
s4:samba-tool: add simple command "group list"

7 years agos4:selftest: add a new testsuite for the "samba-tool group" command
Michael Adam [Sun, 18 Mar 2012 21:19:46 +0000 (22:19 +0100)]
s4:selftest: add a new testsuite for the "samba-tool group" command

7 years agoupgrade provision didn't run findprovisionrange anymore
Matthieu Patou [Sat, 17 Mar 2012 07:19:40 +0000 (00:19 -0700)]
upgrade provision didn't run findprovisionrange anymore

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Mar 17 09:51:46 CET 2012 on sn-devel-104

7 years agoRewrite findprovisionrange to use factorized functions
Matthieu Patou [Sat, 17 Mar 2012 07:19:09 +0000 (00:19 -0700)]
Rewrite findprovisionrange to use factorized functions

7 years agoFactorize code from findprovisionusnranges in order to solve bug #8504
Matthieu Patou [Sat, 17 Mar 2012 07:18:39 +0000 (00:18 -0700)]
Factorize code from findprovisionusnranges in order to solve bug #8504

7 years agos3:gse: fix debug message in gse_get_server_auth_token()
Stefan Metzmacher [Fri, 2 Mar 2012 20:41:51 +0000 (21:41 +0100)]
s3:gse: fix debug message in gse_get_server_auth_token()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Mar 17 03:21:06 CET 2012 on sn-devel-104

7 years agoFix second part of bug #8811 - sd_has_inheritable_components segfaults on an SD that...
Jeremy Allison [Fri, 16 Mar 2012 22:26:57 +0000 (15:26 -0700)]
Fix second part of bug #8811 - sd_has_inheritable_components segfaults on an SD that se_access_check accepts.

This fixes a coredump with a NULL DACL in add_directory_inheritable_components().

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Mar 17 01:05:57 CET 2012 on sn-devel-104

7 years agos4:samba-tool: remove remains of patch conflict resolution
Michael Adam [Fri, 16 Mar 2012 14:25:38 +0000 (15:25 +0100)]
s4:samba-tool: remove remains of patch conflict resolution

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Mar 16 19:13:32 CET 2012 on sn-devel-104

7 years agoStop installing popt_common.h as its symbols are in a private library.
Jelmer Vernooij [Fri, 16 Mar 2012 14:02:20 +0000 (15:02 +0100)]
Stop installing popt_common.h as its symbols are in a private library.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 17:39:31 CET 2012 on sn-devel-104

7 years agobuild: Do not use --export-dynamic flag on OpenBSD 5.x
Amitay Isaacs [Fri, 16 Mar 2012 11:57:09 +0000 (22:57 +1100)]
build: Do not use --export-dynamic flag on OpenBSD 5.x

With --export-dynamic flag on OpenBSD 5.x, extra symbols get added in the
data segment which causes ABI generation script to fail.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar 16 16:04:31 CET 2012 on sn-devel-104

7 years agos3-notify: Lift "/." handling up one level
Volker Lendecke [Thu, 15 Mar 2012 12:02:15 +0000 (13:02 +0100)]
s3-notify: Lift "/." handling up one level

This slightly simplifies the code

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Mar 16 14:28:44 CET 2012 on sn-devel-104

7 years agos3-notify: Simplify if-expressions
Volker Lendecke [Thu, 15 Mar 2012 11:22:50 +0000 (12:22 +0100)]
s3-notify: Simplify if-expressions

7 years agos3-dbwrap: Move "lock_order" initialization to db_open_xx
Volker Lendecke [Thu, 15 Mar 2012 10:10:35 +0000 (11:10 +0100)]
s3-dbwrap: Move "lock_order" initialization to db_open_xx

7 years agobuild: Fix build issue on OpenBSD 5.x
Amitay Isaacs [Fri, 16 Mar 2012 02:34:05 +0000 (13:34 +1100)]
build: Fix build issue on OpenBSD 5.x

Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0)

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104

7 years agoRemove more unnecessary shebang lines in python files.
Jelmer Vernooij [Thu, 15 Mar 2012 15:03:57 +0000 (16:03 +0100)]
Remove more unnecessary shebang lines in python files.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 02:48:52 CET 2012 on sn-devel-104

7 years agosamba.tests.source: Verify that only executable python files (and only executable...
Jelmer Vernooij [Thu, 15 Mar 2012 15:03:36 +0000 (16:03 +0100)]
samba.tests.source: Verify that only executable python files (and only executable files) have a shebang line.

7 years agowafsamba: Remove shebang lines from non-executable files.
Jelmer Vernooij [Thu, 15 Mar 2012 14:56:27 +0000 (15:56 +0100)]
wafsamba: Remove shebang lines from non-executable files.

7 years agoMake reinit_after_fork_pipe_handler code with reads being interrupted by a signal.
Jeremy Allison [Thu, 15 Mar 2012 20:24:57 +0000 (13:24 -0700)]
Make reinit_after_fork_pipe_handler code with reads being interrupted by a signal.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 15 23:29:47 CET 2012 on sn-devel-104

7 years agos3:smbd: call file_close_user() before removing tree connects in conn_close_all()
Stefan Metzmacher [Mon, 12 Mar 2012 17:04:01 +0000 (18:04 +0100)]
s3:smbd: call file_close_user() before removing tree connects in conn_close_all()

This will help later if we have to handle a SMB2TreeDisconnect different
compared to a SMB2SessionLogoff and a TCPDisconnect.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 15 21:56:09 CET 2012 on sn-devel-104

7 years agos4:selftest: make the use of writetimeupdatedelay consistent across all tests
Michael Adam [Thu, 15 Mar 2012 16:32:51 +0000 (17:32 +0100)]
s4:selftest: make the use of writetimeupdatedelay consistent across all tests

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

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 20:20:13 CET 2012 on sn-devel-104

7 years agos3:selftest: reactivate the writetimeupdatedelay speed-up
Michael Adam [Thu, 15 Mar 2012 16:28:38 +0000 (17:28 +0100)]
s3:selftest: reactivate the writetimeupdatedelay speed-up

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

7 years agos3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died.
Michael Adam [Thu, 15 Mar 2012 15:29:27 +0000 (16:29 +0100)]
s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died.

This applies to all child processes making use of reinit_after_fork().
It is implemented by establishing a pipe between parent and child.
The child watches for EOF on the read end of the pipe, indidcating
an exited parent.

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

7 years agoidl: add offload data transfer ioctl types
David Disseldorp [Thu, 15 Mar 2012 13:43:26 +0000 (14:43 +0100)]
idl: add offload data transfer ioctl types

For future use in handling FSCTL_OFFLOAD_READ, FSCTL_OFFLOAD_WRITE and
IOCTL_STORAGE_QUERY_PROPERTY requests new to Windows 8.

Based on preliminary data structure documentation from:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh451101%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/hardware/hh451122%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/hh449428%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/hardware/hh451469%28v=vs.85%29.aspx

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Lars Müller <lars@samba.org>
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Thu Mar 15 18:40:11 CET 2012 on sn-devel-104

7 years agos4:selftest: remove python shebang accidentially re-added to the "samba-tool user...
Michael Adam [Thu, 15 Mar 2012 13:37:04 +0000 (14:37 +0100)]
s4:selftest: remove python shebang accidentially re-added to the "samba-tool user" test

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 16:17:54 CET 2012 on sn-devel-104

7 years agos4:selftest: fix message typo in test for "samba-tool user list"
Michael Adam [Thu, 15 Mar 2012 06:59:30 +0000 (07:59 +0100)]
s4:selftest: fix message typo in test for "samba-tool user list"

Spotted by kukks - thanks.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 14:24:29 CET 2012 on sn-devel-104

7 years agos3: Use talloc_tos() in notify_send()
Volker Lendecke [Wed, 14 Mar 2012 10:30:28 +0000 (11:30 +0100)]
s3: Use talloc_tos() in notify_send()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 15 12:43:41 CET 2012 on sn-devel-104

7 years agos3: Fix lock ordering in notify_add
Volker Lendecke [Wed, 14 Mar 2012 09:52:03 +0000 (10:52 +0100)]
s3: Fix lock ordering in notify_add

It's not necessary to keep the global notify record locked during
the inotify and notify_onelevel.tdb operations.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3: properly free the notify_onelevel record
Volker Lendecke [Wed, 14 Mar 2012 12:19:22 +0000 (13:19 +0100)]
s3: properly free the notify_onelevel record

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3: Replace some callers of cluster_id_equal
Volker Lendecke [Wed, 14 Mar 2012 09:33:53 +0000 (10:33 +0100)]
s3: Replace some callers of cluster_id_equal

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3: Remove the separate server_id arg to notify_init
Volker Lendecke [Wed, 14 Mar 2012 09:31:13 +0000 (10:31 +0100)]
s3: Remove the separate server_id arg to notify_init

The server_id is tied to the messaging_context

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3: Fix blank line endings
Volker Lendecke [Sat, 10 Mar 2012 23:01:51 +0000 (00:01 +0100)]
s3: Fix blank line endings

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu Mar 15 10:59:46 CET 2012 on sn-devel-104

7 years agoauth/gensec_gssapi: gss_krb5_lucid_context_v1_t is not shared with the gse code anymore
Stefan Metzmacher [Fri, 2 Mar 2012 21:01:48 +0000 (22:01 +0100)]
auth/gensec_gssapi: gss_krb5_lucid_context_v1_t is not shared with the gse code anymore

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 15 09:16:16 CET 2012 on sn-devel-104

7 years agos4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send()
Stefan Metzmacher [Tue, 13 Mar 2012 14:18:54 +0000 (15:18 +0100)]
s4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send()

metze

7 years agos4:librpc/rpc: pass a mem_ctx to dcerpc_request_send()
Stefan Metzmacher [Tue, 13 Mar 2012 14:18:08 +0000 (15:18 +0100)]
s4:librpc/rpc: pass a mem_ctx to dcerpc_request_send()

metze

7 years agos4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_alter_context_*
Stefan Metzmacher [Tue, 13 Mar 2012 14:41:16 +0000 (15:41 +0100)]
s4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_alter_context_*

metze

7 years agos4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_bind_*
Stefan Metzmacher [Tue, 13 Mar 2012 14:14:33 +0000 (15:14 +0100)]
s4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_bind_*

metze

7 years agos4:librpc/rpc: convert dcerpc_alter_context_send/recv to tevent_req
Stefan Metzmacher [Tue, 13 Mar 2012 14:37:49 +0000 (15:37 +0100)]
s4:librpc/rpc: convert dcerpc_alter_context_send/recv to tevent_req

Many thanks to Andrew Bartlett <abartlet@samba.org> for the
debugging, which lead to the following line:

       talloc_steal(state, raw_packet->data);

metze

7 years agos4:librpc/rpc: convert dcerpc_bind_send/recv to tevent_req
Stefan Metzmacher [Tue, 13 Mar 2012 13:52:40 +0000 (14:52 +0100)]
s4:librpc/rpc: convert dcerpc_bind_send/recv to tevent_req

Many thanks to Andrew Bartlett <abartlet@samba.org> for the
debugging, which lead to the following line:

       talloc_steal(state, raw_packet->data);

metze

7 years agos4:librpc/rpc: also notify requests which are not shipped about a dead connection
Stefan Metzmacher [Wed, 14 Mar 2012 13:59:45 +0000 (14:59 +0100)]
s4:librpc/rpc: also notify requests which are not shipped about a dead connection

metze

7 years agos4:librpc/rpc: ship requests via an immediate event
Stefan Metzmacher [Wed, 14 Mar 2012 13:57:32 +0000 (14:57 +0100)]
s4:librpc/rpc: ship requests via an immediate event

Deep inside dcerpc_ship_next_request() some code path
could trigger dcerpc_connection_dead(), which means
it's not safe to do any processing after calling dcerpc_ship_next_request().

metze

7 years agos4:librpc/rpc: if the connecion is dead we're done
Stefan Metzmacher [Wed, 14 Mar 2012 13:25:48 +0000 (14:25 +0100)]
s4:librpc/rpc: if the connecion is dead we're done

There's no point in doing anymore processing,
it can just lead to crashes.

metze

7 years agos4:librpc/rpc: if the connection is dead we don't want to be called recursivly.
Stefan Metzmacher [Wed, 14 Mar 2012 13:24:54 +0000 (14:24 +0100)]
s4:librpc/rpc: if the connection is dead we don't want to be called recursivly.

metze

7 years agos3: Update waf build to include missed dependancy on Lion.
Ira Cooper [Thu, 15 Mar 2012 00:43:46 +0000 (20:43 -0400)]
s3: Update waf build to include missed dependancy on Lion.

Autobuild-User: Ira Cooper <ira@samba.org>
Autobuild-Date: Thu Mar 15 07:34:43 CET 2012 on sn-devel-104

7 years agoutil: Add --disable-fault-handling.
Ira Cooper [Wed, 14 Mar 2012 16:56:02 +0000 (12:56 -0400)]
util: Add --disable-fault-handling.

On some platforms you can not debug coredumps after the default signal handler
gets done dumping core.  This allows waf to have an option to disable our
default signal handler.

7 years agolibsmbclient-raw: Install smb_composite.h.
Jelmer Vernooij [Wed, 14 Mar 2012 22:20:07 +0000 (23:20 +0100)]
libsmbclient-raw: Install smb_composite.h.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Mar 15 02:57:59 CET 2012 on sn-devel-104

7 years agobuild: Do not build with utmp when we do not have utmp.h
Andrew Bartlett [Wed, 14 Mar 2012 11:37:33 +0000 (22:37 +1100)]
build: Do not build with utmp when we do not have utmp.h

This matches the autoconf build, and should partially address bug #8709.

Andrew Bartlett

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

7 years agobuild: param must require cups to get the cups headers path in -I
Andrew Bartlett [Wed, 14 Mar 2012 11:28:38 +0000 (22:28 +1100)]
build: param must require cups to get the cups headers path in -I

7 years agos3-krb5: Remove GSS_WRAP_IOV conditional
Andrew Bartlett [Sat, 10 Mar 2012 19:44:17 +0000 (06:44 +1100)]
s3-krb5: Remove GSS_WRAP_IOV conditional

We already confirm that we have this functionality before we set HAVE_KRB5 at
configure time.

Andrew Bartlett