garming/samba-autobuild/.git
12 years agopkg: add comments to the systemd sysconfig file
David Disseldorp [Thu, 3 Nov 2011 11:54:00 +0000 (12:54 +0100)]
pkg: add comments to the systemd sysconfig file

Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Thu Nov  3 15:11:27 CET 2011 on sn-devel-104

12 years agos3-build: add bin/dbwrap_tool to the BIN_PROGS2 dependencies
Björn Baumbach [Wed, 2 Nov 2011 14:27:30 +0000 (15:27 +0100)]
s3-build: add bin/dbwrap_tool to the BIN_PROGS2 dependencies

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Nov  3 11:52:53 CET 2011 on sn-devel-104

12 years agos3-registry: fix upgrade code
Björn Baumbach [Wed, 2 Nov 2011 12:40:36 +0000 (13:40 +0100)]
s3-registry: fix upgrade code

Assume REGDB_VERSION_V1 if no version key found in registry.tdb

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-utils: net - Fix one error/usage message
Björn Baumbach [Wed, 2 Nov 2011 12:38:18 +0000 (13:38 +0100)]
s3-utils: net - Fix one error/usage message

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-printing: fix typo
Björn Baumbach [Fri, 28 Oct 2011 12:29:56 +0000 (14:29 +0200)]
s3-printing: fix typo

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:torture: let SMB2-BASICS work against w2k8r2 and win8pre0
Stefan Metzmacher [Wed, 2 Nov 2011 13:38:08 +0000 (14:38 +0100)]
s3:torture: let SMB2-BASICS work against w2k8r2 and win8pre0

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov  3 09:44:59 CET 2011 on sn-devel-104

12 years agos4-sites: Document, fix under optimal coding, use exceptions
Matthieu Patou [Wed, 2 Nov 2011 19:24:20 +0000 (20:24 +0100)]
s4-sites: Document, fix under optimal coding, use exceptions

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov  2 22:35:00 CET 2011 on sn-devel-104

12 years agosamba.netcmd: Pass in outf/errf.
Jelmer Vernooij [Wed, 2 Nov 2011 15:39:47 +0000 (16:39 +0100)]
samba.netcmd: Pass in outf/errf.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov  2 20:09:40 CET 2011 on sn-devel-104

12 years agopyldb: Remove duplicate definition of SYNTAX_DN.
Jelmer Vernooij [Wed, 2 Nov 2011 15:33:56 +0000 (16:33 +0100)]
pyldb: Remove duplicate definition of SYNTAX_DN.

12 years agos4-python: samba.provision: Require schema to be passed in - code path which handles...
Jelmer Vernooij [Wed, 2 Nov 2011 15:23:06 +0000 (16:23 +0100)]
s4-python: samba.provision: Require schema to be passed in - code path which handles schema not being specified is broken anyway.

12 years agosamba.common: Fix formatting of docstring (trips up pydoctor).
Jelmer Vernooij [Wed, 2 Nov 2011 15:22:16 +0000 (16:22 +0100)]
samba.common: Fix formatting of docstring (trips up pydoctor).

12 years agos3-waf: convert libcli_netlogon3 into a private library.
Günther Deschner [Wed, 2 Nov 2011 15:58:53 +0000 (16:58 +0100)]
s3-waf: convert libcli_netlogon3 into a private library.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov  2 18:34:55 CET 2011 on sn-devel-104

12 years agos3-lsa: Let passdb backend handle the DOMAIN$ user
Sumit Bose [Wed, 2 Nov 2011 11:06:07 +0000 (12:06 +0100)]
s3-lsa: Let passdb backend handle the DOMAIN$ user

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-waf: move trusts_util.c code into a private library.
Günther Deschner [Wed, 2 Nov 2011 12:06:45 +0000 (13:06 +0100)]
s3-waf: move trusts_util.c code into a private library.

Guenther

12 years agos3-trustdomcache: make enumerate_domain_trusts() static.
Günther Deschner [Wed, 2 Nov 2011 11:50:34 +0000 (12:50 +0100)]
s3-trustdomcache: make enumerate_domain_trusts() static.

Guenther

12 years agos3-waf: convert libnet_keytab into a private library.
Günther Deschner [Wed, 2 Nov 2011 11:04:46 +0000 (12:04 +0100)]
s3-waf: convert libnet_keytab into a private library.

Guenther

12 years agos3-libnet: add ads forward declaration in libnet keytab code.
Günther Deschner [Wed, 2 Nov 2011 11:03:53 +0000 (12:03 +0100)]
s3-libnet: add ads forward declaration in libnet keytab code.

Guenther

12 years agos3-waf: fix libgpo.so library name.
Günther Deschner [Wed, 2 Nov 2011 09:45:33 +0000 (10:45 +0100)]
s3-waf: fix libgpo.so library name.

Guenther

12 years agoldb: fix compiler warning
David Disseldorp [Wed, 2 Nov 2011 13:53:20 +0000 (14:53 +0100)]
ldb: fix compiler warning

Mixed declarations and code.

Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Wed Nov  2 16:51:24 CET 2011 on sn-devel-104

12 years agos3:smb2_server: remove unused outhdr variables
David Disseldorp [Wed, 2 Nov 2011 13:51:51 +0000 (14:51 +0100)]
s3:smb2_server: remove unused outhdr variables

12 years agosamba-tool: add subcommand for sites manipulation
Matthieu Patou [Wed, 2 Nov 2011 12:32:33 +0000 (13:32 +0100)]
samba-tool: add subcommand for sites manipulation

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov  2 15:14:32 CET 2011 on sn-devel-104

12 years agos4-selftest: add unit tests for sites's function in python
Matthieu Patou [Wed, 2 Nov 2011 12:31:40 +0000 (13:31 +0100)]
s4-selftest: add unit tests for sites's function in python

12 years agos4-python: add function to manipulate sites in python
Matthieu Patou [Wed, 2 Nov 2011 12:30:59 +0000 (13:30 +0100)]
s4-python: add function to manipulate sites in python

12 years agos4-resolver: make it work back with ipv4 only DNS records
Matthieu Patou [Wed, 2 Nov 2011 08:39:23 +0000 (09:39 +0100)]
s4-resolver: make it work back with ipv4 only DNS records

It turns out that if there is no AAAA record the dns server (bind and MS
windows at least) do not return the A record when just asked for AAAA.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Nov  2 11:15:34 CET 2011 on sn-devel-104

12 years agotdb2: don't be fascist when TDB_VERSION1 is specified.
Rusty Russell [Tue, 1 Nov 2011 23:38:32 +0000 (10:08 +1030)]
tdb2: don't be fascist when TDB_VERSION1 is specified.

We currently insist that a tdb file be a version1 file if tdb_open() is
passed the TDB_VERSION1 flag; we fail if it's actually a tdb2.

But that makes generic wrappers harder, and is unlikely to be what the
user wants: if they do, they can check tdb_get_flags() & TDB_VERSION1
after opening.

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

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Nov  2 08:38:38 CET 2011 on sn-devel-104

12 years agodsdb: Handle the case when extended rights string is NULL
Amitay Isaacs [Wed, 2 Nov 2011 03:34:41 +0000 (14:34 +1100)]
dsdb: Handle the case when extended rights string is NULL

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Nov  2 07:03:40 CET 2011 on sn-devel-104

12 years agos4-drepl: Search for application partitions in addition to main ones
Amitay Isaacs [Tue, 25 Oct 2011 04:06:07 +0000 (15:06 +1100)]
s4-drepl: Search for application partitions in addition to main ones

To replicate application partitions (e.g. DNS partitions) consult
msDs-hasMasterNCs attribute as well. Also, make sure we don't add
same partition twice in the list. hasMasterNCs and msDs-hasMasterNCs
have domain, configuration and schema partitions common.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-dnsserver: Check the raised exception with assertRaises
Amitay Isaacs [Mon, 24 Oct 2011 06:37:24 +0000 (17:37 +1100)]
s4-dnsserver: Check the raised exception with assertRaises

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-dnsserver: Handle the case when the dns name is NULL
Amitay Isaacs [Mon, 24 Oct 2011 06:22:21 +0000 (17:22 +1100)]
s4-dnsserver: Handle the case when the dns name is NULL

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-dnsserver: Build a dns name tree for correct enumeration
Amitay Isaacs [Mon, 24 Oct 2011 06:20:46 +0000 (17:20 +1100)]
s4-dnsserver: Build a dns name tree for correct enumeration

The result of EnumRecords/EnumRecords2 RPC calls, is a list of
dns records that are one level below in the name hierarchy starting
from the search name. This patch builds a tree of names to get
the list of records one level below the search names and correctly
count the number of child records for each of those.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-dnsserver: List dns zones matching the search filter
Amitay Isaacs [Mon, 24 Oct 2011 06:15:27 +0000 (17:15 +1100)]
s4-dnsserver: List dns zones matching the search filter

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-dnsserver: Compare two dns names using last uncommon name components
Amitay Isaacs [Mon, 24 Oct 2011 06:07:45 +0000 (17:07 +1100)]
s4-dnsserver: Compare two dns names using last uncommon name components

When search_name is not NULL, use the second last component of name
instead of the last name.

e.g. To compare following two names,
   _ldap._tcp.gc, and
   _ldap._tcp.Default-First-Site-Name._sites.gc

with search_name=NULL, it is gc and gc
with search_name=gc, it is _tcp and _sites

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4-dnsserver: Set DNS_DP_AUTOCREATED flag for the zone information
Amitay Isaacs [Mon, 24 Oct 2011 05:54:16 +0000 (16:54 +1100)]
s4-dnsserver: Set DNS_DP_AUTOCREATED flag for the zone information

This make the zone information similar to windows (W2K8r2).

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agosamba-tool: Improve the description of dns subcommands.
Amitay Isaacs [Fri, 21 Oct 2011 00:27:28 +0000 (11:27 +1100)]
samba-tool: Improve the description of dns subcommands.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agosamba-tool: Enable comparison of DNS naming contexts in ldapcmp
Amitay Isaacs [Tue, 20 Sep 2011 07:31:24 +0000 (17:31 +1000)]
samba-tool: Enable comparison of DNS naming contexts in ldapcmp

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoRemove opendir() VFS code from ACL modules.
Jeremy Allison [Mon, 31 Oct 2011 19:38:36 +0000 (12:38 -0700)]
Remove opendir() VFS code from ACL modules.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov  2 02:13:51 CET 2011 on sn-devel-104

12 years agoCall check_parent_access() on readdir.
Jeremy Allison [Mon, 31 Oct 2011 19:38:20 +0000 (12:38 -0700)]
Call check_parent_access() on readdir.

12 years agoChange function signature of check_parent_access() to take char * instead of struct...
Jeremy Allison [Mon, 31 Oct 2011 19:37:39 +0000 (12:37 -0700)]
Change function signature of check_parent_access() to take char * instead of struct smb_filename.

Expose it so it can be called from directory code.

12 years agos4-socket: do not segfault if the socket is NULL
Matthieu Patou [Wed, 26 Oct 2011 21:58:15 +0000 (23:58 +0200)]
s4-socket: do not segfault if the socket is NULL

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Nov  1 19:02:52 CET 2011 on sn-devel-104

12 years agos4-join: Send ReplicaUpdateRefs at the end of the join
Matthieu Patou [Tue, 25 Oct 2011 18:16:38 +0000 (20:16 +0200)]
s4-join: Send ReplicaUpdateRefs at the end of the join

12 years agos4-domain-join: do not add DFSR entries when joining, this should be done in the...
Matthieu Patou [Sun, 23 Oct 2011 20:27:08 +0000 (22:27 +0200)]
s4-domain-join: do not add DFSR entries when joining, this should be done in the code handling DFSR replication

12 years agos4-vampire: Fix the output of fetched object for the schema-dn
Matthieu Patou [Sun, 23 Oct 2011 13:01:29 +0000 (15:01 +0200)]
s4-vampire: Fix the output of fetched object for the schema-dn

12 years agoSimplify handling of user add command.
Jelmer Vernooij [Tue, 1 Nov 2011 11:29:16 +0000 (12:29 +0100)]
Simplify handling of user add command.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov  1 14:25:39 CET 2011 on sn-devel-104

12 years agos4: samba-tool subcommand rename - change samba-tool user add to samba-tool user...
Theresa Halloran [Sun, 23 Oct 2011 22:23:28 +0000 (15:23 -0700)]
s4: samba-tool subcommand rename - change samba-tool user add to samba-tool user create

Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
12 years agos4-dsdb Remove LDAP backend credentials support
Andrew Bartlett [Tue, 1 Nov 2011 01:11:57 +0000 (12:11 +1100)]
s4-dsdb Remove LDAP backend credentials support

The error message from this causes confusion, for a feature
that we have never finished and have agreed to remove.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov  1 06:32:52 CET 2011 on sn-devel-104

12 years agos4:torture:smb2: add a new durable-open.upgrade2 test to test all upgrade combinations
Michael Adam [Tue, 1 Nov 2011 00:50:52 +0000 (01:50 +0100)]
s4:torture:smb2: add a new durable-open.upgrade2 test to test all upgrade combinations

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Nov  1 04:58:03 CET 2011 on sn-devel-104

12 years agos4:torture:smb2: expand durable-open.open2 test matrix by all share-modes
Michael Adam [Mon, 31 Oct 2011 23:56:29 +0000 (00:56 +0100)]
s4:torture:smb2: expand durable-open.open2 test matrix by all share-modes

12 years agos4:torture:smb2: expand durable-open.open1 test matrix by all share-modes
Michael Adam [Mon, 31 Oct 2011 23:55:48 +0000 (00:55 +0100)]
s4:torture:smb2: expand durable-open.open1 test matrix by all share-modes

12 years agos4:torture:smb2: rename the durable-open.basic2 test to durable-open.open2 for clarity
Michael Adam [Mon, 31 Oct 2011 23:01:31 +0000 (00:01 +0100)]
s4:torture:smb2: rename the durable-open.basic2 test to durable-open.open2 for clarity

12 years agos4:torture:smb2: rename the durable-open.basic1 test to durable-open.open1 for clarity
Michael Adam [Mon, 31 Oct 2011 22:54:06 +0000 (23:54 +0100)]
s4:torture:smb2: rename the durable-open.basic1 test to durable-open.open1 for clarity

12 years agotdb2: use HAVE_LIBREPLACE instead of _SAMBA_BUILD_.
Rusty Russell [Mon, 31 Oct 2011 20:41:25 +0000 (07:11 +1030)]
tdb2: use HAVE_LIBREPLACE instead of _SAMBA_BUILD_.

This is what lib/tdb2 really wants: to know if it should use normal
headers or replace.h.  It currently uses _SAMBA_BUILD_, which is wrong
for ldb, for example.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Nov  1 03:19:58 CET 2011 on sn-devel-104

12 years agos4:torture/smb2: fix compound.invalid2 against windows
Stefan Metzmacher [Thu, 27 Oct 2011 19:41:11 +0000 (21:41 +0200)]
s4:torture/smb2: fix compound.invalid2 against windows

Tested against w2k8r2 with signing and win8pre0 without signing.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 31 21:40:25 CET 2011 on sn-devel-104

12 years agos4:smb_server/smb2: correctly implement related compound requests
Stefan Metzmacher [Mon, 31 Oct 2011 14:23:00 +0000 (15:23 +0100)]
s4:smb_server/smb2: correctly implement related compound requests

We need to remember the session id and tree id.

metze

12 years agos4:smb_server/smb2: always grant the requested credits
Stefan Metzmacher [Mon, 31 Oct 2011 12:43:01 +0000 (13:43 +0100)]
s4:smb_server/smb2: always grant the requested credits

At least one credit, if the client asked for 0.

metze

12 years agos4:smb_server/smb2: echo back more header fields
Stefan Metzmacher [Thu, 27 Oct 2011 18:46:12 +0000 (20:46 +0200)]
s4:smb_server/smb2: echo back more header fields

metze

12 years agos3:smb2_server: FLAG_CHAINED means we always use the last session_id and tid
Stefan Metzmacher [Thu, 27 Oct 2011 14:35:28 +0000 (16:35 +0200)]
s3:smb2_server: FLAG_CHAINED means we always use the last session_id and tid

metze

12 years agos3:smb2_server: don't reset the tid and session id in the out hdr of compound requests
Stefan Metzmacher [Thu, 27 Oct 2011 11:01:22 +0000 (13:01 +0200)]
s3:smb2_server: don't reset the tid and session id in the out hdr of compound requests

Windows also leaves tid (0xFFFFFFFF) and session id (0xFFFFFFFFFFFFFFFF)
as the client requested them.

metze

12 years agos3:smb2_server: echo the SMB2_HDR_CREDIT_CHARGE and SMB2_HDR_SIGNATURE fields
Stefan Metzmacher [Thu, 27 Oct 2011 14:42:44 +0000 (16:42 +0200)]
s3:smb2_server: echo the SMB2_HDR_CREDIT_CHARGE and SMB2_HDR_SIGNATURE fields

Windows just echos back the given values by default.

metze

12 years agos4-torture: smb2 copychunk data integrity checks
David Disseldorp [Tue, 11 Oct 2011 09:44:03 +0000 (11:44 +0200)]
s4-torture: smb2 copychunk data integrity checks

Perform simple integrity checks on destination file data following
a successful copychunk request.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Mon Oct 31 19:28:20 CET 2011 on sn-devel-104

12 years agos4-torture: add smb2 copychunk ioctl tests
David Disseldorp [Fri, 30 Sep 2011 12:33:36 +0000 (14:33 +0200)]
s4-torture: add smb2 copychunk ioctl tests

test_ioctl_copy_chunk_multi: Issue a copychunk request with multiple
chunk descriptors.
test_ioctl_copy_chunk_over: Issue a copychunk request with overlapping
chunks.
test_ioctl_copy_chunk_append: append data as part of a copy chunk
test_ioctl_copy_chunk_tiny: issue request with sub FS block size chunk
descriptors.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-torture: split common copychunk ioctl test code into helpers
David Disseldorp [Fri, 30 Sep 2011 10:50:36 +0000 (12:50 +0200)]
s4-torture: split common copychunk ioctl test code into helpers

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-torture: Add tests for the smb2 copychunk ioctl
David Disseldorp [Tue, 27 Sep 2011 14:40:20 +0000 (16:40 +0200)]
s4-torture: Add tests for the smb2 copychunk ioctl

Add idls for parsing of copychunk ioctl args.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agoidl: add copychunk and request_resume_key ioctl definitions
David Disseldorp [Tue, 27 Sep 2011 22:37:54 +0000 (00:37 +0200)]
idl: add copychunk and request_resume_key ioctl definitions

12 years agos3:smbd: also the parent smbd needs FLAG_MSG_PRINT_GENERAL (bug #8553)
Stefan Metzmacher [Mon, 31 Oct 2011 14:52:37 +0000 (15:52 +0100)]
s3:smbd: also the parent smbd needs FLAG_MSG_PRINT_GENERAL (bug #8553)

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 31 17:37:34 CET 2011 on sn-devel-104

12 years agos4:nbt_server/dgram: higher debug level for NBT_MAILSLOT_NETLOGON requests
Stefan Metzmacher [Mon, 31 Oct 2011 11:15:18 +0000 (12:15 +0100)]
s4:nbt_server/dgram: higher debug level for NBT_MAILSLOT_NETLOGON requests

This matches the log level of the CLDAP case.

metze

12 years agos4:lib/socket: don't pass -1 to close()
Stefan Metzmacher [Mon, 31 Oct 2011 08:34:13 +0000 (09:34 +0100)]
s4:lib/socket: don't pass -1 to close()

metze

12 years agos3: fix typo in net ads join output
David Disseldorp [Mon, 31 Oct 2011 12:47:15 +0000 (13:47 +0100)]
s3: fix typo in net ads join output

Space missing from "DNS update in aclustered setup".

Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Mon Oct 31 16:01:35 CET 2011 on sn-devel-104

12 years agos3: Fix some nonempty blank lines
Volker Lendecke [Mon, 31 Oct 2011 11:41:09 +0000 (12:41 +0100)]
s3: Fix some nonempty blank lines

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Oct 31 14:25:14 CET 2011 on sn-devel-104

12 years agos3: Fix a comment
Volker Lendecke [Mon, 31 Oct 2011 11:40:58 +0000 (12:40 +0100)]
s3: Fix a comment

12 years agos3: Remove some leftovers of old ctdb tdb2 code
Volker Lendecke [Mon, 31 Oct 2011 11:37:09 +0000 (12:37 +0100)]
s3: Remove some leftovers of old ctdb tdb2 code

12 years agos4:torture:smb2: add durable_open_basic2 test: test durable open against all lease...
Michael Adam [Sat, 29 Oct 2011 15:28:38 +0000 (17:28 +0200)]
s4:torture:smb2: add durable_open_basic2 test: test durable open against all lease types

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Oct 30 20:17:16 CET 2011 on sn-devel-104

12 years agos4:torture:smb2: add a new durable_open_basic1 test: test open against all oplock...
Michael Adam [Sat, 29 Oct 2011 15:26:53 +0000 (17:26 +0200)]
s4:torture:smb2: add a new durable_open_basic1 test: test open against all oplock types

12 years agos4:torture:smb2: check wheter open was durable in existing tests
Michael Adam [Sat, 29 Oct 2011 15:25:00 +0000 (17:25 +0200)]
s4:torture:smb2: check wheter open was durable in existing tests

12 years agos4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE buffer smb2_c...
Michael Adam [Sat, 29 Oct 2011 11:18:05 +0000 (13:18 +0200)]
s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE buffer smb2_create.out.durable_open

12 years agosource4/libcli: add bool durable_open to smb2_create.out.
Michael Adam [Sat, 29 Oct 2011 11:16:07 +0000 (13:16 +0200)]
source4/libcli: add bool durable_open to smb2_create.out.

The server gives indication whether the open was durable
we should record this.

12 years agos4:torture: test also break semantics between batch-oplocks and leases
Michael Adam [Sat, 29 Oct 2011 12:48:58 +0000 (14:48 +0200)]
s4:torture: test also break semantics between batch-oplocks and leases

This must have been a typo (listing EXCLUSIVE twice).
But BATCH and EXCLUSIVE oplocks apparently share the
same break semantics with respect to leases.

12 years agos4:torture:smb2: adapt comment in durable-open.lease test according to current inform...
Michael Adam [Sun, 30 Oct 2011 17:40:00 +0000 (18:40 +0100)]
s4:torture:smb2: adapt comment in durable-open.lease test according to current information.

12 years agos4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2
Michael Adam [Sat, 29 Oct 2011 09:56:48 +0000 (11:56 +0200)]
s4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2

When a first client that has a durable open with share read/write/delete
and a read-write-handle lease on the file disconnects, a second
client will succeed in opening the file and the new client will be
given a RWH-lease if requested, not only a RH-lease, as was previously
checked in the test.

This might have been a bug in win7 build 7000, which is what the
comments in the test give as reference.

12 years agoFix bug #8548 - winbind_samlogon_retry_loop ignores logon_parameters flags.
Jeremy Allison [Fri, 28 Oct 2011 19:29:54 +0000 (12:29 -0700)]
Fix bug #8548 - winbind_samlogon_retry_loop ignores logon_parameters flags.

Fix confirmed by reporter.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 28 23:04:47 CEST 2011 on sn-devel-104

12 years agoThe xcopy test is used in unusual ways (via a different uid). Ensure we can cope...
Jeremy Allison [Fri, 28 Oct 2011 19:15:51 +0000 (12:15 -0700)]
The xcopy test is used in unusual ways (via a different uid). Ensure we can cope with this.

12 years agoRemove the order dependency in parent_override_delete(), just check for & not ==.
Jeremy Allison [Thu, 27 Oct 2011 23:48:13 +0000 (16:48 -0700)]
Remove the order dependency in parent_override_delete(), just check for & not ==.

12 years agoThe xcopy test requires "dos filemode=yes" as it opens with WRITE_OWNER.
Jeremy Allison [Thu, 27 Oct 2011 23:41:18 +0000 (16:41 -0700)]
The xcopy test requires "dos filemode=yes" as it opens with WRITE_OWNER.

12 years agoRemove the mkdir and open functions from the ACL modules - main code paths now handle...
Jeremy Allison [Wed, 26 Oct 2011 23:02:40 +0000 (16:02 -0700)]
Remove the mkdir and open functions from the ACL modules - main code paths now handle this.

12 years agoRemove unused "struct security_descriptor" parameter from check_parent_access()
Jeremy Allison [Wed, 26 Oct 2011 22:30:00 +0000 (15:30 -0700)]
Remove unused "struct security_descriptor" parameter from check_parent_access()

12 years agoFinally do all the open checks inside open_file(). Checks inside
Jeremy Allison [Wed, 26 Oct 2011 22:03:28 +0000 (15:03 -0700)]
Finally do all the open checks inside open_file(). Checks inside
vfs_acl_common can now be removed.

12 years agoSimplify smbd_check_open_rights() and move all the special casing inside it.
Jeremy Allison [Wed, 26 Oct 2011 21:58:32 +0000 (14:58 -0700)]
Simplify smbd_check_open_rights() and move all the special casing inside it.

12 years agoMove parent_override_delete() to before I need to use it.
Jeremy Allison [Wed, 26 Oct 2011 21:47:52 +0000 (14:47 -0700)]
Move parent_override_delete() to before I need to use it.

12 years agoMake smbd_check_open_rights() static.
Jeremy Allison [Wed, 26 Oct 2011 21:06:41 +0000 (14:06 -0700)]
Make smbd_check_open_rights() static.

12 years agos3-net: Make sure to always re-use the "good" dc for the DNS updates as well.
Günther Deschner [Fri, 28 Oct 2011 10:03:58 +0000 (12:03 +0200)]
s3-net: Make sure to always re-use the "good" dc for the DNS updates as well.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 28 19:13:49 CEST 2011 on sn-devel-104

12 years agolib/util Add ABI to the samba-module library
Andrew Bartlett [Tue, 25 Oct 2011 00:39:47 +0000 (11:39 +1100)]
lib/util Add ABI to the samba-module library

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Oct 28 14:42:43 CEST 2011 on sn-devel-104

12 years agolib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystem
Andrew Bartlett [Mon, 24 Oct 2011 23:34:13 +0000 (10:34 +1100)]
lib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystem

This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

12 years agolib/util Rename samba_init_module -> samba_module_init
Andrew Bartlett [Mon, 24 Oct 2011 23:30:14 +0000 (10:30 +1100)]
lib/util Rename samba_init_module -> samba_module_init

This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

12 years agolib/util Rename samba_init_module_fns_run -> samba_module_init_fns_run
Andrew Bartlett [Mon, 24 Oct 2011 23:11:06 +0000 (10:11 +1100)]
lib/util Rename samba_init_module_fns_run -> samba_module_init_fns_run

This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

12 years agolib/util Rename samba_init_module_fn -> samba_module_init_fn
Andrew Bartlett [Mon, 24 Oct 2011 20:43:06 +0000 (07:43 +1100)]
lib/util Rename samba_init_module_fn -> samba_module_init_fn

This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

12 years agolib/util Split samba-modules library into public and private parts
Andrew Bartlett [Mon, 24 Oct 2011 08:39:53 +0000 (19:39 +1100)]
lib/util Split samba-modules library into public and private parts

This will allow OpenChange to get at the symbols it needs, without
exposing any more of this as a public API than we must.

Andrew Bartlett

12 years agolib/util Rename load_samba_modules -> samba_modules_load
Andrew Bartlett [Mon, 24 Oct 2011 08:07:12 +0000 (19:07 +1100)]
lib/util Rename load_samba_modules -> samba_modules_load

This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

12 years agolib/util Rename run_init_functions -> samba_init_module_fns_run
Andrew Bartlett [Mon, 24 Oct 2011 08:01:16 +0000 (19:01 +1100)]
lib/util Rename run_init_functions -> samba_init_module_fns_run

This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

12 years agolib/util Rename init_module_fn to samba_init_module_fn
Andrew Bartlett [Sun, 23 Oct 2011 22:49:26 +0000 (09:49 +1100)]
lib/util Rename init_module_fn to samba_init_module_fn

This prepares for making the samba_module.h header public again, for OpenChange.

I am keen to avoid too much API namespace pollution if we can.

12 years agogensec: Add parinoia about integer wrapping
Andrew Bartlett [Sat, 22 Oct 2011 00:48:30 +0000 (11:48 +1100)]
gensec: Add parinoia about integer wrapping

12 years agos3-selftest Add all the LOCAL-* smbtorture tests to make test
Andrew Bartlett [Wed, 26 Oct 2011 06:59:47 +0000 (17:59 +1100)]
s3-selftest Add all the LOCAL-* smbtorture tests to make test

The extra knownfail and skip entries are for tests the currently do
not pass or hang.  We need to work out why this happens, and fix the
test or the test invocation.

Andrew Bartlett